Resizing Logical Partition, creating new partition
So here is what I'm trying to do with my harddisk.
When I installed ubuntu, I gave it an 80GB partition on a 500GB drive, so if I crashed my OS, I would in theory not lose my pile of data. I have ubuntu installed and would now like to create that data partiion on the remaining 420GB. What is the best way to go about this? Currently the OS says my hard disk has an extended partition out to 500GB and an logical partition out to 500GB also! running fdisk -l shows that I do have a /dev/mapper/...-root size of 77.9GB and -swap of 2.1GB. |
Please post the output of
Code:
df -h |
#df -h
Filesystem Size Used Avail Use% Mounted on /dev/mapper/.............. -root 73G 6.4G 63G 10% / udev 992M 4.0K 992M 1% /dev tmpfs 401M 476K 400M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1001M 0 1001M 0% /run/shm /dev/sdb1 228M 25M 192M 12% /boot fdisk -l /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 Disk identifier: 0x000c7a51 Device Boot Start End Blocks Id System /dev/sdb1 * 2048 499711 248832 83 Linux /dev/sdb2 501758 976771071 488134657 5 Extended Partition 2 does not start on physical sector boundary. /dev/sdb5 501760 976771071 488134656 8e Linux LVM |
Here it is again, lined up for legibility
Code:
#df -h It looks as if you have ~500 GB for LVM and only ~75 GB used plus whatever is used for swap. The obvious thing to do would be to create another logical volume (that's an LVM logical volume, not to be confused with a logical partition). Here are some LVM links |
Thanks, that helps a lot. A few more questions.
When I perform lvcreate, it seems to only let me create a logical volume ~100GB in size. Is this a limitation of LVM for creating logical volumes inside a volume group? |
No.
Maybe the space is already allocated. Use the vgdisplay and lvdisplay commands to see usage. |
All times are GMT -5. The time now is 03:55 PM. |