我想从现有的根分区创建一个新分区。我的根分区大约有 250GB。我想创建一个新的分区,比如说 150GB,占用这个根分区的空间。有人能帮助我完成这个操作吗?
output: fdisk -l
karthick@karthick:~$ sudo fdisk -l
[sudo] password for karthick:
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x28219744
Device Boot Start End Blocks Id System
/dev/sda1 * 1 61 487424 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 61 30395 243650561 5 Extended
/dev/sda5 61 124 498688 82 Linux swap / Solaris
/dev/sda6 124 186 498688 82 Linux swap / Solaris
/dev/sda7 186 30395 242651136 83 Linux
答案1
从 livecd 启动并运行 gparted。您似乎还有重复的交换分区,因此您应该删除其中一个。