LinHES Forums http://forums.linhes.org/ |
|
Howto resize an Ext3 partition http://forums.linhes.org/viewtopic.php?f=5&t=1331 |
Page 1 of 1 |
Author: | krypton_john [ Wed Apr 28, 2004 10:48 pm ] |
Post subject: | Howto resize an Ext3 partition |
Hi All, I installed my MythTV test box with the auto-install option and default partition sizes. I'd like to resize the /myth partition (it used all the remaining space on the drive) to a smaller size so I can create a new partition at the end of the disk for either a ghost backup or dual boot reasons. So, is it possible to resize the partition without losing the contents? How? Cheers, JohnO |
Author: | pepe [ Tue May 11, 2004 9:06 am ] |
Post subject: | |
I tried to do this and failed, but maybe it will help you anyway. the "parted" program (http://www.gnu.org/software/parted/parted.html ) claims to be able to resize ext3 partitions, so I grabbed it and tried: # apt-get install parted // this is from memory - don't have system here # parted /dev/hda (parted) print // a list of partions similar to fdisk p (parted) resize (partition-number) 4 (start [old start]) // I just accept the old start (end) -20000 // 20Gb(ish) from end of disk but I got an error that my partition was "strange" or something similar. I had a workaround, and didn't think to write it down. sorry. My /myth partition didn't have much in it yet, so I copied the data to /cache, deleted and re-created it smaller, and restored the data back in from /cache. |
Author: | Xsecrets [ Tue May 11, 2004 3:46 pm ] |
Post subject: | |
parted should work, I think though that instead of doing -20000 and thinking it counts back from the end of the disk it would be +1000000 however big you want the partition to be. There is a frontend qtparted that is nice, but I don't think it will install on knoppmyth because of dependacies, but I'm not sure about that. or for that matter if you have a knoppix disk around you could boot off that and use qtparted. it's included with knoppix. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |