我用fdisk /dev/sda添加了一个/dev/sda4
root@host-xxxx:~# fdisk -l
The number of cylinders for this disk is set to 51200.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Disk /dev/sda: 64 heads, 32 sectors, 51200 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 20480 20971519+ ee Unknown
Partition 1 does not end on cylinder boundary:
phys=(1023, 254, 63) should be (1023, 63, 32)
/dev/sda4 20480 20481 51200 31457280 5 Extended
mount
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
fdisk -l
The number of cylinders for this disk is set to 51200.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Disk /dev/sda: 64 heads, 32 sectors, 51200 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 20480 20971519+ ee Unknown
Partition 1 does not end on cylinder boundary:
phys=(1023, 254, 63) should be (1023, 63, 32)
/dev/sda4 20480 20481 51200 31457280 83 Linux native
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 50G 0 disk
├─sda1 8:1 0 7M 0 part
├─sda2 8:2 0 19.1G 0 part /
└─sda3 8:3 0 896M 0 part [SWAP]