#1  
Old 24th August 2012, 14:38
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 25th August 2012, 18:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 25th August 2012, 18:45
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by falko View Post
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
Reply With Quote
Reply

Bookmarks

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


All times are GMT +2. The time now is 16:44.


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