(parted) mkpart primary 0 500(警告: The resulting partition is not properly aligned for best performance.) (parted) mkpart primary 1 500(没有出现) (parted) mkpart extended 500 1000 (也出现了警告: The resulting partition is not properly aligned for best performance.
[root@localhost ~]# parted -l
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system 标志
1 1049kB 211MB 210MB primary ext4 启动
2 211MB 2308MB 2097MB primary ext4
3 2308MB 3356MB 1049MB primary linux-swap(v1)
4 3356MB 21.5GB 18.1GB extended
5 3358MB 21.5GB 18.1GB logical ext4
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system 标志
1 1049kB 2000MB 1999MB primary ext4
2 2000MB 5000MB 3000MB primary ext4
3 5000MB 8000MB 3000MB extended lba
6 5000MB 7000MB 2000MB logical ext4
5 7000MB 8000MB 999MB logical ext4
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdc: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name 标志
1 1049kB 2000MB 1999MB ext4 imooc
2 2000MB 3000MB 1000MB ext2 test
3 3000MB 4000MB 1000MB ext3 book
4 4000MB 5000MB 999MB ext4 Unix
5 5000MB 7000MB 2001MB ext3 Linux
6 7000MB 8000MB 999MB ext4 Windows
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdd: 2147MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system 标志
警告: 无法以读写方式打开 /dev/sr0 (只读文件系统)。/dev/sr0 已按照只读方式打开。
错误: /dev/sr0: unrecognised disk label
[root@localhost ~]# parted /dev/sdd
GNU Parted 2.1
使用 /dev/sdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
警告: The existing disk label on /dev/sdd will be destroyed and all data on this disk will be
lost. Do you want to continue?
是/Yes/否/No? yes
(parted) yes
(parted) mkpart primary 0 500
警告: The resulting partition is not properly aligned for best performance.
忽略/Ignore/放弃/Cancel? ignore
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdd: 2147MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system 标志
1 512B 500MB 500MB primary
(parted) mkpart primary 500 1000
----------------------------------------
(parted) mkpart primary 0 500(警告: The resulting partition is not properly aligned for best performance.)
(parted) mkpart primary 1 500(没有出现)
(parted) mkpart extended 500 1000 (也出现了警告: The resulting partition is not properly aligned for best performance.)
是不是MBR分区表也要数据块对其?