Ask Your Question
0

LVM Partitioning Help

asked 2014-04-06 08:32:41 -0500

Adm.Ch gravatar image

updated 2014-04-06 08:33:28 -0500

I have Windows 7, Linux Mint, and Fedora (20) on my computer currently. Mint and Fedora are under the same extended partition (Partition 4). I want to remove Linux Mint and use the free space to add to Home (dev/mapper/fedora_localhost-home). I would have used gparted, but it doesn't support LVM. I'm not very experienced at command line, so please be very explicit :).

/dev/sda1,2,3 are Windows

/dev/sda4 is extended: Mint, Fedora

/dev/sda5,6,7 are Linux Mint which I want to delete

/dev/sda8,9 are Fedora

Number  Start   End     Size    Type      File system  Flags
1      1049kB  1574MB  1573MB  primary   ntfs         diag
2      1574MB  390GB   388GB   primary   ntfs         boot
4      390GB   735GB   345GB   extended
5      390GB   416GB   26.0GB  logical   ext4
6      416GB   419GB   3372MB  logical
7      419GB   582GB   163GB   logical   ext4
8      582GB   582GB   524MB   logical   ext4
9      582GB   735GB   153GB   logical                lvm
3      735GB   750GB   15.1GB  primary   ntfs         hidden


fdisk -l

Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xbb2d157c
Partition 4 does not start on physical sector boundary.

Device    Boot      Start        End    Blocks  Id System
/dev/sda1            2048    3074047   1536000  27 Hidden NTFS WinRE
/dev/sda2 *       3074048  761801229 379363591   7 HPFS/NTFS/exFAT
/dev/sda3      1435596800 1465147391  14775296  17 Hidden HPFS/NTFS
/dev/sda4       761802750 1435596799 336897025   5 Extended
/dev/sda5       761802752  812582911  25390080  83 Linux
/dev/sda6       812584960  819171327   3293184  82 Linux swap / Solaris
/dev/sda7       819173376 1136613375 158720000  83 Linux
/dev/sda8      1136615424 1137639423    512000  83 Linux
/dev/sda9      1137641472 1435596799 148977664  8e Linux LVM

Thank you

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-05-18 14:15:02 -0500

kx4kx gravatar image

Fedora has a GUI based LVM manager which should accomplish your goal.

Link: https://git.fedorahosted.org/cgit/system-config-lvm.git/

Once you have it installed the Docs are here:

Link: http://docs.fedoraproject.org/en-US/Fedora/14/html/Storage_Administration_Guide/ch-lvm.html

Probably more information than you need but should provide your solution.

edit flag offensive delete link more
0

answered 2014-05-19 00:56:33 -0500

remi gravatar image

FYI system-config-lvm have been droped of the distribution.

You can do this, without reboot, from command line, using the following.

  • pvcreate (to transform the old parition for LVM use)
  • vgextend (to include this partition in your VG, and get free unallocated space)
  • lvextend (to increase your LV size)
  • resize2fs (to increase your file system size, to match new LV size)

Please read carrefully man page of each command.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-06 08:32:41 -0500

Seen: 326 times

Last updated: May 19 '14