我有一个Ubuntu 16.04 系统无 GUI(只有命令行)具有非常有限的根分区(20GB)和 1 个存储分区(1000GB),如下所示
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
这些磁盘的当前状态是:
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
如何在线增加 /dev/sda1 根分区的大小(例如:20GB -> 100GB)从 /dev/sdb2(1000GB -> 900GB)(无 liveCD、USB 启动、重启)?