0

I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below

sudo parted -l

Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  21.5GB  21.5GB  primary  ext4         boot


Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sdb: 1074GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  1074GB  1074GB  primary  ext4

The current status of these disk are:

df -hP
Filesystem      Size  Used Avail Use% Mounted on
udev             27G     0   27G   0% /dev
tmpfs           5.4G  530M  4.9G  10% /run
/dev/sda1        20G   19G  194M  99% /    (almost full!!!!!)
tmpfs            27G  112K   27G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            27G     0   27G   0% /sys/fs/cgroup
/dev/sdb1       985G  602G  333G  65% /rasv1 (more space!!!!!)
tmpfs           5.4G   20K  5.4G   1% /run/user/121
tmpfs           5.4G     0  5.4G   0% /run/user/1001

How can I increase the size of root partition for /dev/sda1 (e.g: 20GB -> 100 GB) from /dev/sdb2 (1000GB -> 900GB) online (no liveCD, USB boot, reboot)?

Bằng Rikimaru
  • 101
  • 1
  • 5

0 Answers0