 |
 |
 |
 |
| Hardware & Laptops Help with your hardware, including laptop issues |

21st December 2009, 08:30 AM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207

|
|
|
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?
|

21st December 2009, 08:51 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Location: England, UK
Posts: 821

|
|
|
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.
|

21st December 2009, 03:39 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207

|
|
Quote:
Originally Posted by marriedto51
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!
|

21st December 2009, 05:33 PM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 5,002

|
|
Quote:
Originally Posted by angelbeast
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
|

22nd December 2009, 07:18 AM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207

|
|
Quote:
Originally Posted by marriedto51
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
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?
|

22nd December 2009, 08:14 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 8

|
|
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
|

22nd December 2009, 08:26 AM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 5,002

|
|
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
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.
|

30th December 2009, 09:17 AM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: The Motor City Madhouse
Posts: 207

|
|
Quote:
Originally Posted by SlowJet
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...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 05:01 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|