Re: reclaiming space from redmond!
Kent West wrote:
> Prashanth Narayanan wrote:
>
>> some more info: (i messed up the named of the devices in my earlier
>> email)
>> here is a "df -h" from my machine:
>>
>> prash@mantra:~$ df -h
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/hda8 3.8G 3.2G 389M 90% /
>> tmpfs 189M 0 189M 0% /dev/shm
>> /dev/hda6 45M 5.3M 37M 13% /boot
>> /dev/hda1 6.9G 6.7G 228M 97% /mnt/c
>> /dev/hda5 7.8G 6.7G 1.2G 86% /mnt/d
>> /dev/hdb1 28G 24G 4.7G 84% /mnt/g
>> /dev/hdb5 28G 25G 3.9G 87% /mnt/h
>> /dev/hdb6 28G 15G 14G 52% /mnt/i
>> /dev/hdb7 31G 23G 8.3G 74% /mnt/j
>>
>> as you can see /dev/hda6 is where i have my "/" partition. this is
90%
>> full.
>>
>>
> Um, no. It's /dev/hda8 which is your "/" partition.
you're right - i sent a correction post.
>
> Since 8 is not next to 5, you won't be able to merge these two
partitions.
>
> You can backup, wipe, repartion, restore, to get things the way you
want.
>
> Or, what I would suggest, is to simply move to a multi-partition
scheme.
> You can use the /dev/hda6 partition for /usr, or /var, or /home
> (whichever is taking up the most space on /dev/hda8).
did you mean /dev/hda5? because that is the one i need to try to merge.
For example, let's
> say your /usr directory is 2.8 GB of your 3.2 GB used on "/". You can
> cfdisk /dev/hda6 into a Linux partition, then format it (mkfs.ext3
> /dev/hda6). Then mount /dev/hda6 on a temporary directory ("mkdir
> /tmpusr"; "mount /dev/hda6 /tmpusr").
assuming you meant /dev/hda5 all along, i have a question here: how can
i mount /dev/hda5 onto /tmpusr when the "/" folder has not got that
much space? am i missing something here?
Then copy the /usr data over ("cp
> -a /usr/* /tmpusr"). The next step is tricky. Either go into single
user
> mode and then delete everything in /usr, then edit /etc/fstab and add
a
> line for /usr on /dev/hda6, or boot off a LiveCD like Knoppix and do
the
> equivalent. Then unmount /tmpusr (if necessary) and remount /dev/hda6
on
> /usr. You're all done.
i am using debian like i said - i can boot from the debian cd (i also
have a bootable floppy) - is this ok?
thanks for your detailed response,
-prash.
Reply to: