increasing partition size
Posted: 2018/01/12 13:29:17
I have a partition(sda2) size set to 300GB and i have 200Gb of free space(no partition, no file system). I need to add the 200GB to the existing sda2 partition. I'm using command line, no gui installed. I understand the process should be similar to the following:
- create partition from free disk space (fdisk)
- configure file system for new partition (mkfs)
- expand existing partition /dev/sda2 w/ new partition (not sure how, fdisk again?)
The tricky part is that i have an application that stores data on the sda2 partition and the data needs to remain intact. Would it be better to copy all the data to a new, temporary partition and then rebuild sd2 and move the data back? Thanks!
- create partition from free disk space (fdisk)
- configure file system for new partition (mkfs)
- expand existing partition /dev/sda2 w/ new partition (not sure how, fdisk again?)
The tricky part is that i have an application that stores data on the sda2 partition and the data needs to remain intact. Would it be better to copy all the data to a new, temporary partition and then rebuild sd2 and move the data back? Thanks!