所有操作均需 root 权限
1.创建 swap 交换分区
首先用 fdisk -l 查看硬盘分区情况
1 |
fdisk -l |
1 2 3 4 5 6 7 8 9 |
Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 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: 0x00097743 Device Boot Start End Blocks Id System /dev/sda1 * 1 2481 19922944 83 Linux |
只有一个分区.… 阅读全文