[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Confused-New Stable Sarge Dist-Upgrade

Joris Huizer wrote:
Leonard Chatagnier wrote:

Leonard Chatagnier said:

tar: ./lib/modules/2.6.8-2-686/modules.symbols: Cannot write: No space left on device
tar: Error exit delayed from previous errors

I chacked partition space with df and seem to have ample room as shown"
ChatagnierL-Home:~#  df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2               140000    114049     18722  86% /

Phil said:

Your / partition is where /lib lives, and you've only got ~18MB. I'd say
your modules directory should take up more than that. 30MB+. Prolly not
enough space.

Hey Phil, thanks, that explains it. Now how to get more space on /? I could resize partitions with cfdisk and probably mess things up. You have a more newbie(noobie) frendly way of doing this? Any thought or suggestions will be much appreciated. BTW, did you see any problem with the df output for tmpfs as I wasn't sure if it was saying 0% usage or 0% free space. Also, for my clarification and understanding, the sarge modules were already installed from previous testing upgrades, so, why couldn't it just be written over with the new stable sarge or is the new upgrade that much larger..??? Appreciate any info on this.

I find parted is not so hard -- after launching it, type 'help' and you get an overview of the available options;
Then, for example, 'help resize' will give you some information on resizing

The way is now simple: make a large partition smaller (maybe /var or /usr or /home) and make / bigger

'print' is helpfull to see the current state of the disc partitions

I think you should not have partitions mounted which are to be resized -- anyone know how to do the resizing of / ?

if resizing / really cannot be done, maybe create a new /lib partition instead



The more "classic" solution to this would be to get another available partition by what ever means (adding another disk, parted...) and the create a mount point in your fstab table for /lib.

The process would go something like this, assuming that the new partition is /dev/hda6 and / is /dev/hda2

mount /dev/hda6 /mnt
cp -r /lib/* /mnt  (or a dozen other methods will do, rsync -a for example)
edit /etc/fstab to include a mount point for this
/dev/hda6       /lib           ext3    defaults        0       2

remount all your partitions.
At this point you still have all the files in /lib of /dev/hda2 but you need to make sure you got it right before you remove them. if everything works correctly you can mount --bind the / partition to another mount point (/mnt) and the remove the directory /mnt/lib/

You should now have all your libs on /dev/hda6 and lots of space on your / partition.

NOTE: not tested and I haven't had any coffee yet... So do your research before you let your fingers do the walking.

Reply to: