linux查看分区文件系统类型

使用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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值