Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.
I have a dual-boot system on same hard drive running Fedora 17 and Ubuntu 12.04 (64bit). About 67GB space has been shrunk from Fedora 17, LVM /home. I expect the said free space to be used by Ubuntu, not in LVM partition.
How do I reallocate space freed from LVM to another partition (not in LVM) on the dualboot system? Please advise! Thanks.
2012-09-04 23:02:11
you could use gparted or run parted magic live from a flash drive.
2012-08-28 18:25:31
i would suggest Easeus Partition for any such problems.. as partition can be done without formatting the disk
2012-08-24 13:34:13
See the instructions
here
to see how this process should be done. This only works without LUKS encryption.
2012-08-25 16:33:40
Hi Bruce Epper,Thanks for your link. The whole HD is NOT encrypted.I already shunk /dev/mapper/vg_fedora17-lv_hom from 78G to 10G before. There should be about 68G free space available.So I started on;8. FINALLY - Shrink the PARTITION# fdisk -lDisk /dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0000d52d Device Boot Start End Blocks Id System/dev/sda1 * 2048 8263679 4130816 83 Linux/dev/sda2 296333310 312580095 8123393 5 Extended/dev/sda3 8263680 9287679 512000 83 Linux/dev/sda4 9287680 296331263 143521792 8e Linux LVM/dev/sda5 296333312 312580095 8123392 82 Linux swap / SolarisPartition table entries are not in disk orderDisk /dev/mapper/vg_fedora17-lv_swap: 10.3 GB, 10267656192 bytes255 heads, 63 sectors/track, 1248 cylinders, total 20054016 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/vg_fedora17-lv_home: 10.7 GB, 10737418240 bytes255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/vg_fedora17-lv_root: 53.7 GB, 53687091200 bytes255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesWARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.Disk /dev/sdb: 4111 MB, 4111466496 bytes255 heads, 63 sectors/track, 499 cylinders, total 8030208 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x1d459011 Device Boot Start End Blocks Id System/dev/sdb1 * 0 1320959 660480 0 Empty/dev/sdb2 164 1299 568 ef EFI (FAT-12/16/32)/dev/sdb3 1348 3587 1120 0 EmptyWARNING: GPT (GUID Partition Table) detected on '/dev/sdb1'! The util fdisk doesn't support GPT. Use GNU Parted.Disk /dev/sdb1: 676 MB, 676331520 bytes255 heads, 63 sectors/track, 82 cylinders, total 1320960 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x1d459011 Device Boot Start End Blocks Id System/dev/sdb1p1 * 0 1320959 660480 0 Empty/dev/sdb1p2 164 1299 568 ef EFI (FAT-12/16/32)/dev/sdb1p3 1348 3587 1120 0 EmptyDisk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes# lvm pvs --units s PV VG Fmt Attr PSize PFree /dev/sda4 vg_fedora17 lvm2 a-- 286982144S 141099008S# parted /dev/sda unit s printModel: ATA Maxtor 6V160E0 (scsi)Disk /dev/sda: 312581808sSector size (logical/physical): 512B/512BPartition Table: msdosDisk Flags: Number Start End Size Type File system Flags 1 2048s 8263679s 8261632s primary ext4 boot 3 8263680s 9287679s 1024000s primary ext4 4 9287680s 296331263s 287043584s primary lvm 2 296333310s 312580095s 16246786s extended 5 296333312s 312580095s 16246784s logical linux-swap(v1) start4 9287680sPSize 286982144SSafety Margin 131072Total 296400896# parted /dev/sda rm 4Error: Partition(s) 4 on /dev/sda have been written, but we have been unable toinform the kernel of the change, probably because it/they are in use. As aresult, the old partition(s) will remain in use. You should reboot now beforemaking further changes.Ignore/Cancel? Cancel Information: You may need to update /etc/fstab. What can I do now? Please help. TIAB.Regards