On Sun, 2004-08-29 at 06:03, Paul Smith wrote:
> Stephen K�hn wrote:
> >>Thanks, Brian. The reason for enlarging my Linux partition is the fact 
> >>that I have installed so many things that I am fearing that I am 
> >>reaching the limit of my hard disk capacity. (My Linux partition has 8,5 
> >>GB.) I use MS Windows very, very, rarely and my MS Windows partition has 
> >>11,5 GB, which is a waste... so, I am wanting to enlarge my Linux 
> >>partition. How can I check how my Linux partition is being used?
> > 
> > df -h
> 
> Thanks, Stephen. Should I take some actions considering the following 
> information?
> 
> [EMAIL PROTECTED] paulus]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/ide/host0/bus0/target0/lun0/part5
>                        4,5G  3,5G  816M  82% /
> /dev/ide/host0/bus0/target0/lun0/part7
>                        2,8G  1,9G  933M  68% /home
> /dev/ide/host0/bus0/target0/lun0/part1
>                         12G  6,4G  4,9G  57% /mnt/windows
> [EMAIL PROTECTED] paulus]#
> 
> Paul
> 
Here is something specific you can do which will address the issue
without blowing away your doze install.

1. Backup ALL important stuff - this procedure is reliable, but then so
am I and you would want your life depending on just me! ;-)

2. Defrag the doze partition

3. Use diskdrake to shrink it leaving enough space to be workable. 
Looks like you could trim at least 3GB.

4. Create a new partition in the free space and mount it as /new telling
diskdrake to save the changes to fstab

5. As root:

cp -a /usr /new

6. Edit /etc/fstab and change /new to /usr

7. Reboot - now you have all the /usr files being accessed from your new
partition and the /usr within your root partition is an unused copy.

8. As root:

cd /
mv usr oldusr

9. Reboot again just to make sure you got everything right and it all
still works (so far you haven't deleted anything)

10.  If everything looks happy, as root:

cd /
rm -rf oldusr

df -h should now present a rosier picture

HTH
Brian


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to