LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-22-2007, 10:35 AM   #1
tab80
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
How to resize linux root partition? And use the remaining space...


Hi

I tried to resize my fedora root partition with the solution jdupre wrote before in "How to Resize Root LVM Logical Volume???"

(Boot with rescue CD. Skip mounting of the system partitions.

# lvm vgchange -a y
# e2fsck -f /dev/VolGroup00/LogVol00
# resize2fs -f /dev/VolGroup00/LogVol00 37G
# lvm lvreduce -L37G /dev/VolGroup00/LogVol00

)

Well, the partition became smaller, and I can use it but cannot do anything with the remaining space.

If I check it with the Logical Volume management tool, it shows "Unused space (540 extents)" betveen LogVol00 and LogVol01. But I cannot select it or do anything with it.

pvdisplay /dev/sdb3
--- Physical volume ---
PV Name /dev/sdb3
VG Name VolGroup00
PV Size 54.92 GB / not usable 19.19 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 1757
Free PE 541
Allocated PE 1216
PV UUID MYRdZt-FQMj-e3J0-edEw-me7T-SAVJ-0pMZYH


I'd like to migrate it out of LVM, and put an ext3 to it.

Any tips?

Thanks

Last edited by tab80; 12-22-2007 at 10:47 AM.
 
Old 12-24-2007, 01:54 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not a LVM user but to me if the free space is not next to the one you wish to make bigger then you need to create a need LVM partition and then you can merge the two together. As far as a real ext3 partition and wish to keep all data it would be easier to buy a new harddrive and partition the way you want it and then boot up with the boot cd and use ' linux rescue ' mode and mount all partitions on first and second. Then copy the data from one to the other to the correct partitions you want. Then you will need to edit /etc/fstab and point to correct /dev blocks to the correct drives. Edit /boot/grub/grub.conf as well and install grub on the MBR of the second drive which will become the new drive master. probalby can reinstall grub on that MBR when it is by itself in the system from a second boot of the rescue cd. It can be done but easier to be there than to point out each single step.

Brian
 
Old 12-24-2007, 04:24 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
I don't use LVM either, but how about pvresize followed by delete/create of the current partition via fdisk.
Lots of opportunity to screw it all up.

Brians option looks much better.
 
Old 01-08-2008, 03:57 AM   #4
tab80
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Solution

Thanks

Finally I've realized that I cannot separate that part from the partition itself so I created a new logical volume on that. It's a part of an active primary partition so I cannot take it apart and make a new partition out of it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Space not being used, resize resierfs partition? gbkyle Linux - General 1 03-07-2005 04:06 AM
Resize ReiserFS partition to use rest of disk space fivezerosixzero Linux - General 1 10-31-2004 01:43 PM
How to resize a partition or reallocate space? Avatar Linux - Newbie 12 04-22-2004 04:11 PM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 08:48 AM
how to resize my /root partition Perfekt Linux - Software 4 12-23-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration