I am unable to boot my system because I get a Gnome Power Management install error message, i think because i have run out of internal disk space, i do have an external drive.

Asked by Jack Vultaggio

I am unable to boot my system because I get a Gnome Power Management install error message, i think because i have run out of internal disk space, i do have an external drive. From the research I have done it appears that this GPM problem can be a result of no disk space. When I try to move some of my files (using the install disk to boot) I am not granted access. What do I do? Can I move file using the terminal window, will access be allowed?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Hilario J. Montoliu (hjmf)
Solved:
Last query:
Last reply:
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#1

You seem to be right thinking that it is a problem with lack of space.

The fact that the problem arises with gnome power management indicates that the system has boot up correctly and the problem is just with the graphic environment.

When you get to the message error, go to a console (pressing alt-ctrl-F1), log as your user and empty some space:

sudo apt-get clean

As you don't say what is your partition layout lets assume that every thing is in a single partition which have no free space on it and it is not LVM.

Mount your external usb disk as follows (replace sdb1 with the right partition name):

mkdir /mnt/mydisk
mount /dev/sdb1 /mnt/mydisk

Move some user files to your external disk, for example:

mv /home/myuser/Documents/* /mnt/mydisk/

Reboot

HTH

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#2

my external drive is already attached. I can simply try using mv /home/jack/Documents/*/mnt/"disk name" ?

When I boot with LiveCD I do not have permission to move these through the GUI

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you run:

uname -r

You will see your CURRENT kernel, you can then run:

dpkg -l | grep linux-image-2

You can see the INSTALLED kernels, you can then remove unnecessary kernels (NEVER the running kernel) to save ~130Mb per kernel)

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#4

sorry for being ignorant, but how do I make the character between -l and grep "dpkg -l | grep linux-image-2"

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El 05/01/11 16:16, Jack Vultaggio escribió:
> When I boot with LiveCD I do not have permission to move these through
> the GUI

That's because the root partition is mounted as read-only; you can
remount it with

mount -o remount /dev/name-of-the-partition-that-have-the-data

however as I've already told you in my previous post you can boot
normally your system (without the live-cd) and press ctrl-alt-f1 to
access a console.

HTH

- --
Hilario J. Montoliu
hmontoliu <at> ubuntu.com
http://hmontoliu.blogspot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0kjbkACgkQk9xSKJO/Y0GSuwCdGOPaE8jLeAVC/EpEvfI81uHy
jjMAnjnhu26X1ThqcixK9pUE9y+WjsjL
=IsAN
-----END PGP SIGNATURE-----

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#6

mount -o remount,rw /dev/name-of-the-partition-that-have-the-data

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El 05/01/11 16:26, Hilario J. Montoliu escribió:
> El 05/01/11 16:16, Jack Vultaggio escribió:
>> When I boot with LiveCD I do not have permission to move these through
>> the GUI
>
> That's because the root partition is mounted as read-only; you can
> remount it with
>
> mount -o remount /dev/name-of-the-partition-that-have-the-data
>

sorry I meant:

mount -o remount,rw /dev/name-of-the-partition-that-have-the-data

> however as I've already told you in my previous post you can boot
> normally your system (without the live-cd) and press ctrl-alt-f1 to
> access a console.
>
> HTH
>

- --
Hilario J. Montoliu
http://hmontoliu.blogspot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0kjf4ACgkQk9xSKJO/Y0GgTQCffTNYxJ5GCx28OAbd+wLArLYX
4IIAni0J5okvCVuILvVLgJSpw1TivUUg
=dzm/
-----END PGP SIGNATURE-----

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#8

Thank you... I can not get to terminal without LiveCD, however I am having problems with your commands:

mkdir /mnt/mydisk
mount /dev/sdb1 /mnt/mydisk

What is "mydisk"? and my External drive is already connected but when i try and run the mv command I get an error message... sorry but I'm running between two computers, one with internet access and one that I'm working on.... It says "missing desination file"

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#9

i figured out the problem on the commands... needed to use sudo. However, after I tried to move them, I rebooted and still got the same error message regarding gnome power manager. I'm going to check to see if the documents filed was moved right now.

Revision history for this message
Best Hilario J. Montoliu (hjmf) (hmontoliu) said :
#10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El 05/01/11 17:06, Jack Vultaggio escribió:
> Question #140260 on grub2 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub2/+question/140260
>
> Status: Answered => Open
>
> Jack Vultaggio is still having a problem:
> Thank you... I can not get to terminal without LiveCD, however I am
> having problems with your commands:

OK if you have access to your external drive forget my commands. Let's
do it your way :-)

> What is "mydisk"? and my External drive is already connected but when i
> try and run the mv command I get an error message... sorry but I'm
> running between two computers, one with internet access and one that I'm
> working on.... It says "missing desination file"
>

You are getting an error while issuing the mv command because the origin
source its read-only so the move command cannot remove the original file

You need to remount the source partition with read/write permissions

You can do it with

mount -o remount,rw /dev/your-source-partition

if you do not know which is that device run for example

df ./

after changing to the folder where are the source files located

For example for my home I'd do:

hmontoliu@ulises:/home$ cd /home
hmontoliu@ulises:/home$ df ./
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 70968724 58874768 8488976 88% /home

So I see that the partition that owns /home is /dev/sda5, hence I'll do
for remount it in read-write mode:

mount -o remount,rw /dev/sda5

After doing that I'm sure you'll be able to move data to your external
drive. Also check that that external drive is also mounted in read-write
mode

HTH

- --
Hilario J. Montoliu
hmontoliu <at> ubuntu.com
http://hmontoliu.blogspot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0kmWoACgkQk9xSKJO/Y0GaDgCdECqhJjJHe9tREtUySVzmmUod
/GEAn3vkK8aXk++jANvaRhfMqxV5XifN
=6pWJ
-----END PGP SIGNATURE-----

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#11

after running df ./, I get /home/jack/.Private but when I run the mount command, i get "can't find in /etc/fstab or /etc/mtab??????

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#12

I think i was able to mount and make rw...but when I try to move files, it tells me that the directory "jack" doesn't exist, but when I do a directory of "home", its there?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#13

i tried the move with home/* and received a ton of error messages starting with "cannot open" file name and ending with "input output error"

I'm assuming the rw mounting of source didn't work; I will try again

Still lost

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#14

Thanks Hilario J. Montoliu (hjmf), that solved my question.

Revision history for this message
Tom (tom6) said :
#15

Hi :)

Now that you have created some space on the older install can you try booting up in "recovery mode" on that partition. Try "clear some space" and "fix broken packages" to see if that fixes the install enough for you to boot into it.

It might be difficult to identify which bunch of lines to choose to boot into and anyway we need to ahve a look at the layout of partitions on your machine to help you identify and remove the right ones without losing data (hopefully!)

So, please get to a command-line and try

sudo fdisk -l

where "-l" is a lower-case "-L". If you happen to have your external drive plugged in then we could see the way partitions are laid out on that too which could be useful. The internal will be sda and the external will probably be sdb.
Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#16

Ooops, sorry i meant to post that last comment to
https://answers.launchpad.net/ubuntu/+source/grub2/+question/140291
so i have had to copy it there! Sorry, it is really late here!
Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#17

Hi Jack :)

I have just noticed that when you moved your documents and files off sda you were told to use the "mv" (=move) command. Unfortunately that has 2 effects i hadn't considered.
1. It 'should' delete the files from their original place
2. it often messes up the permissions of the files and folders.

Rsync is a better command and it even has a nice front-end gui. Installing grsync brings in all of rsync plus the front-end. I guess the reason it wasn't used instead of "move" was because there was not enough room to install it!

Regards from
Tom :)