This question already has an answer here:
- How can I resize an ext root partition at runtime? 10 answers
- How to resize partitions? 4 answers
I have disk space allocated as per below.
Model: INTEL RS2BL040 (scsi) Disk /dev/sda: 1998GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 1049kB 512MB 511MB primary ext3 boot 2 512MB 922GB 922GB primary ext4 3 922GB 1998GB 1076GB primary linux-swap(v1)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1,8T 0 disk ├─sda1 8:1 0 487M 0 part /boot ├─sda2 8:2 0 858,3G 0 part / └─sda3 8:3 0 1002G 0 part [SWAP]
I would like to change my swap partition to 32GB and add that left over space to the sda2 drive how can I do this from a command line.