linux查看分区文件系统类型
使用fdisk命令查看分区的时候看不到分区的文件系统类型rac1:~ # fdisk /dev/sdbCommand (m for help): printDisk /dev/sdb: 32.2 GB, 32212254720 bytes255 heads, 63 sectors/track, 3916 cylinders, total 62914560 secto
使用fdisk命令查看分区的时候看不到分区的文件系统类型
rac1:~ # fdisk /dev/sdb
Command (m for help): print
Disk /dev/sdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x153d1f3c
Device Boot Start End Blocks Id System
/dev/sdb1 2048 31457280 15727616+ 83 Linux
/dev/sdb2 31457281 62914559 15728639+ 83 Linux
所以应该使用parted命令,这个命令可以
rac1:~ # parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print list
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 32.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 16.1GB 16.1GB primary ext3 type=83
2 16.1GB 32.2GB 16.1GB primary ext3 type=83
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 2155MB 2154MB primary linux-swap(v1) type=82
2 2155MB 21.5GB 19.3GB primary ext3 boot, type=83
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
Error: Can't have a partition outside the disk!
Sector size (logical/physical): 2048B/2048B
更多推荐
所有评论(0)