33 Comments
- inactive, on 10/12/2007, -2/+34why don't you use gparted very easy to resize your partitions check check here http://gparted.sourceforge.net/
- darkphan, on 10/12/2007, -2/+14@ninjacob:
using ssh -X does not solve anything because you would still have to have gnome, etc installed on the Linux box you are trying to run gparted from. - FarcicalFart, on 10/12/2007, -1/+11Yes, gparted is wonderful software. It works well with resizing all types of partition types without data loss.
- darkphan, on 10/12/2007, -3/+11Because not everyone that runs Linux has a GUI installed. Some folks only access their Linux box via SSH.
- cheinze, on 10/12/2007, -2/+10But can you use gparted on a server where there is no desktop environment?
- JRodder, on 10/12/2007, -2/+9gparted seems so much easier than this article...
- nipuL, on 10/12/2007, -6/+9How to resize any partition without losing data:
1. BACK IT UP!!
2. Mess around with partitions
3. If you screw up, who cares? - geronimo, on 10/12/2007, -1/+4Sometimes you don't have access to a GUI, so this is useful. But even then - parted should do the trick.
Of course, I used this exactly method recently just because I wasn't very familiar with parted. After using gparted and being very impressed, I'd stick with the parted/gparted solution. - bobappleyard, on 10/12/2007, -0/+3Very true.
- Stalks, on 10/12/2007, -0/+3Use the LiveCD instead. I was recently needing to shrink my root partition so I could ghost it to a new PC with a smaller drive. After many hours scratching my head trying to find something that worked I came accross gparted livecd and it couldn't of gotten any simpler. Find it here, http://gparted.sourceforge.net/livecd.php
- nipuL, on 10/12/2007, -0/+2The knoppix live disc comes with qparted
- coldphoenix, on 10/12/2007, -0/+2Any 'ole partition managing software will do this, and most come with their own preboot CDs so it can be independent of the OS you use.
- bob7, on 10/12/2007, -0/+2Doesn't parted do partition resizing?
- dbr_onix, on 10/12/2007, -1/+3"But can you use gparted on a server where there is no desktop environment?"
Yes, there's a gparted live-CD.
http://gparted.sourceforge.net/livecd.php - Only case where it wouldn't work is not having a graphics card in the machine (Although I'm not sure how you set up the machine in the first place..)
Also, does anyone have a decent, "simple" guide about LVM? It's always seemed like a nice system, but I've never found a decent guide/tutorial/article on it
- Ben - uncleFester, on 10/12/2007, -0/+2.. on-the-fly only for growing. shrinking requires you to take the fs offline. believe its the same for xfs, jfs. not sure about reiser4, but i don't count it yet as it's not in mainline. i don't think any current linux filesystems support online shrinking (not sure of gfs2; can't get the stupid tools to compile happily in slackware).
also, i'm not really sure why you convert the ext3 fs back to ext2; i've used tools to grow/shrink ext3 filesystems (offline, with no dataloss) and i didn't convert to ext2 first... ?
.. and as others have mentioned. lvm under all this stuff is teh r0x0r. doing this stuff is part of my daily bread & butter (though in aix, lvm + jfs2 + aix5.3 == fully dynamic grow/shrink.. == spoiled :).
-r - digitalunltd, on 10/12/2007, -0/+2I added some background info and some links to the http://duggwiki.com
- geronimo, on 10/12/2007, -0/+1http://tldp.org/HOWTO/LVM-HOWTO/
After the 10th time reading it I finally understood it. It's pretty amazing. Keep in mind that even if you use LVM, you must still resize ext3/ext2 with something like resize2fs. You grow the LVM partition then grow the filesystem to fit it, or you shrink the filesystem then shrink the partition. - linuxeventually, on 10/12/2007, -0/+1GParted live cd FTW, just keep in mind that some features like "moving" are still in development and may screw up your partition table... if that happens Testdisk may be useful.
- spudlyo, on 10/12/2007, -0/+1"This can be quite useful if you do not use LVM and you realize that your existing partitioning does not meet your actual needs anymore."
Even if you do have an ext3 filesystem on an LVM volume you'll still have to grow it if you want to take advantage of space you've recently added to the volume.
Good article, dugg. - contentpig, on 10/12/2007, -0/+1Partition Magic & Acronis Disk Director are 2 different solutions that cost money but work well for windows machines. Does Gparted work well with NTFS partitions? I like Acronis because it knows so many partition types: Reiser ext2,ext3,NTFS,FAT32 and some weird ones I never heard of. HP, UFS etc...
- ajamer, on 10/12/2007, -0/+1Any good freeware that will do this in Windows? I've used Partition Magic only to lose all of my data.
- TheOther1, on 10/12/2007, -0/+1Or use Reiser + LVM to start with. Resize on the fly! :)
- cheinze, on 10/12/2007, -0/+0"Yes, there's a gparted live-CD.
http://gparted.sourceforge.net/livecd.php - Only case where it wouldn't work is not having a graphics card in the machine (Although I'm not sure how you set up the machine in the first place..)"
What if you don't have physical access to the system, for example because it is in a remote data center? - TimmyJ, on 10/12/2007, -0/+0gparted is a great tool for normal partition changes but it does not allow you to do everything you may want. For instance enlarging a partion by adding blank space is not possible using gparted.....try it.
- tupuli, on 10/12/2007, -4/+3"Because not everyone that runs Linux has a GUI installed. Some folks only access their Linux box via SSH."
"using ssh -X does not solve anything because you would still have to have gnome, etc installed on the Linux box you are trying to run gparted from"
Yeah, but does your solution work for paralyzed blind people? How about people who don't have keyboards?
Actually I think it *does* solve something, in fact it very likely solves something for 99% of people who would ever want to resize an ext3 partition. GUI tools (like gparted) are great when you want to do something once or twice and don't want to learn the nittygritty details of the CLI tools. - elroy, on 10/12/2007, -4/+3Here's my HOWTO:
$ sudo parted
(parted) help
worked for me! - luken7, on 10/12/2007, -2/+1LVM.....LVM.....LVM....., ok, next subject....
- subgeniusd, on 10/12/2007, -3/+1@Itchye
Can't you spam somewhere more appropriate like World&Business or Science?
[Just watch Loose Change and Terrorstorm (Alex Jones) for a complete tutorial on this subject. Don't click this bloglink] - davewf, on 10/12/2007, -2/+0ext3 is a nasty ass filesystem. xfs/jfs ftw.
- ninjacob, on 10/12/2007, -6/+3ssh -X will forward your X session to your local machine. That solves all your GUI needs.
- bonez56, on 10/12/2007, -4/+0That's an awesome link, thanks for that!
- maccs, on 10/12/2007, -8/+1Very helpful thanks
- inactive, on 10/26/2007, -36/+1http://www.myspace.com/911falseflagop
Read My Top Blog on the right I gave 32 Pieces of Evidence and Have links to 75 Physists Proving the U.S. Government Carried out 9/11 and why they did it
and it is NOT about Iraq or Afganistan
Would You call them crazy? http://www.911blogger.com/node/3112
Digg me down, If you agree with me, You cant prove me wrong, Just Haul Insults at me while you refuse to actually look at the evidence


What is Digg?
Digg is coming to a city (and computer) near you! Check out all the details on our