我的笔记本电脑安装上的当前分区设置看起来像这样 -
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xed1f86f7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5592 44913928+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 18637 19457 6592320 12 Compaq diagnostics
Partition 2 does not end on cylinder boundary.
/dev/sda3 5593 18636 104775930 5 Extended
/dev/sda5 5593 10571 39993786 83 Linux
/dev/sda6 10572 10820 2000061 82 Linux swap / Solaris
/dev/sda7 10821 18636 62781988+ 83 Linux
Partition table entries are not in disk order
如下所示,/ 驻留在 /dev/sda5 上,/home 挂载在 /dev/sda7 上,两者之间有一个 2GB 的交换分区。空间方面的考虑已经开始出现,我想更改分区,以便将 / 和 /home 合并为一个大分区,并且交换位于表的末尾。这可以在不丢失我当前根文件系统或 /home 目录中的任何数据的情况下完成吗?
sda5 和 sda7 分区是 ext4。
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 38G 5.6G 31G 16% /
udev 922M 320K 921M 1% /dev
none 922M 208K 921M 1% /dev/shm
none 922M 216K 921M 1% /var/run
none 922M 0 922M 0% /var/lock
none 922M 0 922M 0% /lib/init/rw
/dev/sda7 59G 23G 34G 41% /home