Posted by: StigOE
More Linux questions - 12/02/2005 10:22
I have installed Fedora 3 on my laptop along with WinXP. Fedora is installed on a LVM volume, which contains two Ext3 partitions, / and /home. Now the / partition is too small and I'd like to decrease the size of /home and increase /. It there any way to do that without deleting the partitions? Preferably resonably easy and using a GUI. I have the Fedora cd which I can probably boot up in rescue mode, and also a Suse 9.2 Livecd and MandrakeMove cd.
Stig
Posted by: andym
Re: More Linux questions - 12/02/2005 10:30
lvresize should do the trick. I've never used a GUI for it so I don't know if one exists. Just look at the man page for it. If wanted to do this on one of my machines i'd do this:
lvresize -L-5G /dev/vg/home
That would shave 5G off my home partition, i'd then run resize_reiserfs to make sure the fs knew the partition had changed.
Posted by: StigOE
Re: More Linux questions - 12/02/2005 11:57
I thought this would only resize the overall volume, not the partitions in it...? I did some searching and somewhere it said that I needed to unmount the partition when I decreased the size, which I guess is a bit difficult, unless I boot from a rescuedisk/livecd?
Stig
Posted by: mlord
Re: More Linux questions - 12/02/2005 12:38
That's why Fedora includes a rescue CD.
Posted by: StigOE
Re: More Linux questions - 13/02/2005 00:30
Managed to fix it. I booted into Fedora rescue mode and used resize2fs to reduce the size of the /home partition and lvreduce to reduce the logical volume where /home resided and then the opposite with the volume where / was. But I had to compile and install the latest e2fsprogs, as the ones on the rescue disk didn't work.
Quote:
Isn't that why you're not supposed to have / in an LVM group?
I don't know. I just followed the advice in Linux Format magazine about using LVM...
Stig
Posted by: andym
Re: More Linux questions - 13/02/2005 09:28
I just read tldp when I did my myth box that doing that was A Very Bad Thing....
I suppose my keeping / non-LVM means you could still boot the box even if the LVM volume was trashed or one of the drives containing a portion of your volume set failed.
Posted by: andym
Re: More Linux questions - 14/02/2005 11:30
Thank you! I was wondering whether anyone would notice.
Posted by: ashmoore
Re: More Linux questions - 14/02/2005 17:04
Doh!
Here I am wondering why you have that little icon by your name.
Guess I know now then
I would guess that you got some flowers