Fedora Linux Support Community & Resources Center
  #1  
Old 21st December 2009, 08:30 AM
angelbeast Offline
Registered User
 
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207
linuxfedorafirefox
resizing partition

I just got a new laptop today and installed fedora 12. i used the entire disc but now i want to resize the partition and use some of the disc for storage. I tried to do it with gparted but it wouldn't let me. Is there any relatively easy way to do it?
Reply With Quote
  #2  
Old 21st December 2009, 08:51 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 821
linuxfedorafirefox
When you say you used gparted, was that while the system was running? (At a guess, it will not resize a mounted partition.) You could try using the PartedMagic Live CD (see <partedmagic.com>) -- it has always worked well for me.
Reply With Quote
  #3  
Old 21st December 2009, 03:39 PM
angelbeast Offline
Registered User
 
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207
linuxfedorafirefox
Quote:
Originally Posted by marriedto51 View Post
When you say you used gparted, was that while the system was running? (At a guess, it will not resize a mounted partition.) You could try using the PartedMagic Live CD (see <partedmagic.com>) -- it has always worked well for me.
Perfect! I'll give it a try, thanks!
Reply With Quote
  #4  
Old 21st December 2009, 05:33 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
linuxfedorafirefox
Quote:
Originally Posted by angelbeast View Post
I just got a new laptop today and installed fedora 12. i used the entire disc but now i want to resize the partition and use some of the disc for storage. I tried to do it with gparted but it wouldn't let me. Is there any relatively easy way to do it?
i used the entire disc - default install?
/boot 200MB , LVM (lv /, lv swap)

Re-install and select custom partitioning from the dropdown list on the disk screen, then press next to get the disk druid partitioning tool.

select the Volumegrrop (above the partitioning lines.)
click edit button
select /LV in LV pain, click delete button on right side.
select swap LV ...

click add button on right side.
continue until you have a /, /home, /storge, swap with /mountpoint, type, size format yes

ok out of LVM screens.
scroll down and seclect /boot partition, click edit button at top, click format, ok out

Now check the bottom panel for correctness

Now do it all again to make you /boot 320MB (You need the pratice )

SJ
__________________
Do the Math
Reply With Quote
  #5  
Old 22nd December 2009, 07:18 AM
angelbeast Offline
Registered User
 
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207
linuxfedorafirefox
Quote:
Originally Posted by marriedto51 View Post
When you say you used gparted, was that while the system was running? (At a guess, it will not resize a mounted partition.) You could try using the PartedMagic Live CD (see <partedmagic.com>) -- it has always worked well for me.
I tried it but it said that logical volume management was not supported at this time....unless i did it wrong *LOL*

---------- Post added at 02:18 AM CST ---------- Previous post was at 02:17 AM CST ----------

Quote:
Originally Posted by SlowJet View Post
i used the entire disc - default install?
/boot 200MB , LVM (lv /, lv swap)

Re-install and select custom partitioning from the dropdown list on the disk screen, then press next to get the disk druid partitioning tool.

select the Volumegrrop (above the partitioning lines.)
click edit button
select /LV in LV pain, click delete button on right side.
select swap LV ...

click add button on right side.
continue until you have a /, /home, /storge, swap with /mountpoint, type, size format yes

ok out of LVM screens.
scroll down and seclect /boot partition, click edit button at top, click format, ok out

Now check the bottom panel for correctness

Now do it all again to make you /boot 320MB (You need the pratice )

SJ
With this setup will the storage area be permanent? Like if i did a fresh install i would still be ablle to keep the storage partition?
Reply With Quote
  #6  
Old 22nd December 2009, 08:14 AM
romank Offline
Registered User
 
Join Date: Sep 2007
Posts: 8
linuxfedorafirefox
Hello,

I had a chance to do it a few times before. Extending LVM without loosing the data can take some time. Here is what you need to do:
1. Allocate some free unpartitioned space on your disk. You will use it for extending your filesystem later
2. Create a partition with fdisk using the free space
3. Create a physical volume with pvcreate on the partition you created in step 2
4. Extend LVM volume group with vgextend
5. Extend LVM logical volume with lvextend
6. Finally you can resize your data filesystem with resize2fs

Please be sure to read carefully the manual pages about the tools used as above steps just describe a principle and not a detailed tutorial.

Roman
blog: http://it-result.me
Reply With Quote
  #7  
Old 22nd December 2009, 08:26 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
linuxfedorafirefox
Yes, the partitions doesn't go away but you have to still use the custom partition to deal with each f/s.

On a fresh install you just click on each piece and select the /mountpoint and click format.
For a re-install (same release or new release) same thing except you do NOT format /home (if you want to keep it) or /storage (unlees you do not need the data)

NOTE: leave 4gb free in the VG and you can crate a static snapshot of / , then mount the snapshot and backup with tar to /storage. After backup /boot with tar, then umount snapshot and lvremove it.

For a release upgrade use the DVD and it will find the installation and ask install or upgrade on two lines with radio buttons, install is selected by default, so change it to upgrade. There is no partitioning changing to do as anaconda mounts all the f/s's and updates them like data..

SJ

---------- Post added at 12:26 AM CST ---------- Previous post was at 12:15 AM CST ----------

Quote:
Originally Posted by romank View Post
Hello,

I had a chance to do it a few times before. Extending LVM without loosing the data can take some time. Here is what you need to do:
1. Allocate some free unpartitioned space on your disk. You will use it for extending your filesystem later
2. Create a partition with fdisk using the free space
3. Create a physical volume with pvcreate on the partition you created in step 2
4. Extend LVM volume group with vgextend
5. Extend LVM logical volume with lvextend
6. Finally you can resize your data filesystem with resize2fs

Please be sure to read carefully the manual pages about the tools used as above steps just describe a principle and not a detailed tutorial.

Roman
blog: http://it-result.me
The op wants to shrink the / lv and add /storage lv.
This requires off line system activation with unmounted f/s's and the only LVM tools set in use at F12 level is from SystemRescueCD-1.3.3.

Much easier to do it correctly from the beginning, as you learn the installers disk druid while doing it.

SJ
__________________
Do the Math

Last edited by SlowJet; 22nd December 2009 at 08:40 AM. Reason: leave some vg space for snapshot.
Reply With Quote
  #8  
Old 30th December 2009, 09:17 AM
angelbeast Offline
Registered User
 
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207
linuxsafari
Quote:
Originally Posted by SlowJet View Post
i used the entire disc - default install?
/boot 200MB , LVM (lv /, lv swap)

Re-install and select custom partitioning from the dropdown list on the disk screen, then press next to get the disk druid partitioning tool.

select the Volumegrrop (above the partitioning lines.)
click edit button
select /LV in LV pain, click delete button on right side.
select swap LV ...

click add button on right side.
continue until you have a /, /home, /storge, swap with /mountpoint, type, size format yes

ok out of LVM screens.
scroll down and seclect /boot partition, click edit button at top, click format, ok out

Now check the bottom panel for correctness

Now do it all again to make you /boot 320MB (You need the pratice )

SJ

Okay i'm planning on doing this in the next couple of days...I know it's some trouble but could you give me exactly what to do in baby steps *LOL* ... I'll be using the install dvd...i have linux mint 8 going for right now coz i wanted to see if it helped my ustream issues but no luck...i'm loving fedora much more anyways...i've tried 10 and 11 but 12 seems so much better to me...
Reply With Quote
Reply

Tags
partition, resizing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing Partition? fvs Installation and Live Media 2 11th May 2006 01:44 PM
Resizing partition .... Mr Tux Using Fedora 19 14th November 2005 03:51 PM
partition resizing jameson Using Fedora 4 28th February 2005 11:32 PM
Resizing FC2 Partition? Red Army EOL (End Of Life) Versions 6 2nd October 2004 11:02 AM


Current GMT-time: 05:01 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat