*** Note, you will need to be sure that the virtual drive’s allocated space has being used has been expanded before beginning ***

  1. Check current size
    • df -h
  1. List the existing partitions
    • fdisk -l
  1. Edit the drive in fdisk
    • fdisk /dev/[Insert Disk]
  1. Copy the starting sector of the partition you’re expanding (VERY IMPORTANT)
    • I.e. 4096
  1. Remove the partition
    • d 
  1. Create a partition right on top of the previous one
    • n
    • P
    • 4096 (Starting Value)
    • $EndValue
  1. If applicable set bootable flag on partition
    • a
  1. Verify changes and save
    • p
    • w
  1. Force a file system check on next boot
    • touch /forcefsck
  1. Reboot
    • reboot now
  1. Remove the forcefsck
    • rm /forcefsck
  1. Verify the partition size
    • df -h
  1. Run one last file system check
    • fsck -l /dev/[Insert New Partition]

Leave a Reply

Your email address will not be published. Required fields are marked *