Quantcast
Viewing all articles
Browse latest Browse all 3

LVM: How to enlarge the extended partition without data loss?

How to enlarge the extended partition without data loss? Note that I have a LVM logical partition inside of this extended partition.

# fdisk -l
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758    41940991    20719617    5  Extended
/dev/sda5          501760    41940991    20719616   8e  Linux LVM

Disk /dev/mapper/a--vm--vg-swap_1 doesn't contain a valid partition table

Command (m for help): v
Remaining 41949182 unallocated 512-byte sectors

Command (m for help): p

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00094bdb

Viewing all articles
Browse latest Browse all 3

Trending Articles