Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux - Expand disk space

Status
Not open for further replies.

ktoddsd

IS-IT--Management
Feb 22, 2008
5
US
Hi, I have a linux server running rPath linux that is running out of disk space. I have this setup on a VMware server where I have allocated more disk space to this server. The only problem is the partitions are the same size as before. Is there an easy way to expand the linux partition or am I going to have to start over from scratch? Here is the result of running the df command:

[root@support ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1084384 813308 215992 80% /
/dev 128096 56 128040 1% /dev
/dev/root 1084384 813308 215992 80% /
none 128096 0 128096 0% /dev/shm


The Use% is growing about 1-2% a day so I don't have much time. Any help is greatly appreciated.

Thanks,
-K
 
Have not tried this myself, but you should be able
to use a tool like Gparted to resize the partition.
If you in the Vmware settings for your virtual machine
changes the settings for your CD so it points to an iso-image
of the Gparted LiveCD, and you start up the Virtual machine,
it should boot up in Gparted and allow you to resize.

The Gparted iso can be downloaded from here:
 
I have had to do this in the past. There are a couple of ways it can be accomplished, but the easiest is to figure out what directory is taking up the most space (Usually /home).

Install another drive, copy /home over to it, then mount the new drive under the /home folder on your root.



Just my 2¢
-Cole's Law: Shredded cabbage

--Greg
 
I tried Gparted LiveCD and it didn't work. I was able to resize the partition, but on reboot it got stuck on the GRUB boot loader and would just hang.

I found a bootable version of partition magic and that did the trick.

Thanks for the suggestions.

-ktoddsd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top