場景描述:一直以來都以為fdisk -l 顯示的Id代表的是檔案系統的格式,比如ext4 ext3 ext2等等。
實際上是标注為linux類型的檔案系統,适合于linux檔案系統類型。
[root@bogon Desktop]# fdisk -l
Device Boot Start End Blocks Id System
/dev/sdb1 1 1306 10490413+ 83 Linux
其中Id顯示的是Linux相關的系統檔案格式,而不是ext3,一直以來有錯誤認識
[root@bogon Desktop]# parted /dev/sda
(parted) p
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 Flags
1 1049kB 316MB 315MB primary ext4 boot
2 316MB 17.3GB 17.0GB primary ext4
3 17.3GB 21.5GB 4194MB primary linux-swap(v1)
顯示的File中指出檔案格式