HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Repartitioning (http://www.howtoforge.com/forums/showthread.php?t=58372)

satimis 24th August 2012 15:38

Repartitioning
 
Hi all,

Fedora 17, 64bit
Ubuntu 12.04 desktop 64bit
HD 160G

Ubuntu 12.04 has been installed on the HD first, several days ago, taking up the whole disc without partitioning. Later I added/installed Fedora 17 selecting the "Shrink" option with LVM partitioning and saved the bootloader on /dev/sda1 to make them dualboot. Installation was successful with dualboot option. Unfortunately by mistake I retained insufficient space for Ubuntu 12.04, only about 100M left when it is up.

Fedora 17 is on LVM partition but NOT Ubuntu 12.04

Then I took following steps to shrink /home of Fedora 17

# vgchange -a y

# resize2fs -f /dev/mapper/vg_fedora17-lv_home

# e2fsck -f /dev/mapper/vg_fedora17-lv_home
e2fsck 1.42 (29-Nov-2011)
Code:

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/vg_fedora17-lv_home: 477/5070848 files (5.9% non-contiguous), 383520/20258816 blocks

# resize2fs /dev/mapper/vg_fedora17-lv_home 9G
Code:

resize2fs 1.42 (29-Nov-2011)
Resizing the filesystem on /dev/mapper/vg_fedora17-lv_home to 2359296 (4k) blocks.
The filesystem on /dev/mapper/vg_fedora17-lv_home is now 2359296 blocks long.

# lvreduce -L 10G /dev/vg_fedora17/lv_home
Code:

.....
Do you really want to reduce lv_home? [y/n]: y
Reducing logical volume lv_home to 10.00 GiB
Logical volume lv_home successfully resized

Now about 68G free space is available. But I have no solution to resize / of Ubuntu 12.04 taking up the free space.

Please help. TIA

B.R.
satimis

falko 25th August 2012 19:15

You can boot into the Gparted Live CD and resize your partitions: http://www.howtoforge.com/partitioning_with_gparted

Another, more diffcult solution is described in http://www.howtoforge.com/linux_resi...xt3_partitions

satimis 25th August 2012 19:45

Quote:

Originally Posted by falko (Post 284215)
You can boot into the Gparted Live CD and resize your partitions: http://www.howtoforge.com/partitioning_with_gparted

Another, more diffcult solution is described in http://www.howtoforge.com/linux_resi...xt3_partitions

Thanks for your links.

I tried Gparted before. Unfortunately LVM is NOT supported. Therefore I have to run those steps as posted on my original posting to shrink /dev/mapper/vg_fedora17-lv_home form 78G to 10G. Now about 68G free space is available. Unfortunately Gparted couldn't find the free space.

B.R.
satimis


All times are GMT +2. The time now is 15:22.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.