Click to See Complete Forum and Search --> : Increasing Filesystem Size
wildbillm
02-01-2002, 02:00 PM
Hello all!
I created my /usr as it's own separate partition a while back... And the size I used was 700MB...
It is now 92% full and I need to increase the size...
I have 400MB of unpartitioned space left on the drive and would like to know how to use this unpartitioned space to add to /usr.
Can someone tell me how or where to go to learn how?
Thanks
wb
Yeah, I hate that.
I've never resized a partition before, but I've heard Partition Magic and Parted (http://www.gnu.org/software/parted/)can do it.
mdwatts
02-01-2002, 02:58 PM
I'm not sure if the latest version (7) of Partition Magic and resize ext2 partitions. Before doing so, make sure you do a backup.
You may have a better chance with GNU Parted.
If resizing doesn't work, then you could create a ext2 filesystem in the free space, copy some of the directories under /usr to the new partition and then add the mountpoint to /etc/fstab.
i.e. Copy everything in /usr/local to the new partition as /usr/local and then modify /etc/fstab
/dev/hda7 /usr/local ext2 defaults 1 2
Reboot and if that works, then remove /usr/local from the original partition.
I believe that will work.
Someone please correct me if incorrect.
wildbillm
02-01-2002, 03:39 PM
Thanks for the quick response...
I did check the documentation on my Partion Magic Pro 7 and found that it claims, "Supports FAT, FAT32, NTFS, and Linux ext2/Swap file systems"
But just to play it safe... I will attempt to create a new partition and utilize WattsMD recommendation and copy the /usr/local to the new partition...
Thanks for your help... And I will post again later to give an update on if it worked or didn't work.
wb :)
Hooloovoo
02-02-2002, 01:44 AM
Partition Magic will indeed do the trick, but it seems to be even more prone to applications of Murphy's Law than, say, a kernel compile. So don't think you can get buy without a backup, 'cuz it'll hurt :)
(On a totally unrelated note, it seems I'm not the only one in this hick town that has seen the light ;))
mdwatts
02-02-2002, 08:23 AM
Originally posted by Hooloovoo:
<STRONG>
(On a totally unrelated note, it seems I'm not the only one in this hick town that has seen the light ;))</STRONG>
You just got electricity?
Or did others in your 'hick town' just discover Linux?