另外查看磁盘清单方法
发表于 : 2010-06-03 9:18
可能大家都知道,但总有不知道的,对不,不知道的,来论坛不是可以少查一次 google,baidu了吧。
1)sysctl hw.disknames
结果:hw.disknames=sd0,sd1,cd0,wd0
2)dmesg | grep [csw]d | grep at | grep \< | sort | uniq
结果:
cd0 at scsibus0 targ 4 lun 0: <TSSTcorp, CDDVDW TS-H653F, CM00> ATAPI 5/cdrom removable
sd0 at scsibus0 targ 1 lun 0: <ATA, WDC WD10EARS-00Y, 80.0> SCSI3 0/direct fixed
sd1 at scsibus0 targ 3 lun 0: <ATA, WDC WD6400AAKS-0, 01.0> SCSI3 0/direct fixed
wd0 at pciide0 channel 0 drive 0: <Maxtor 32049U3>
1)sysctl hw.disknames
结果:hw.disknames=sd0,sd1,cd0,wd0
2)dmesg | grep [csw]d | grep at | grep \< | sort | uniq
结果:
cd0 at scsibus0 targ 4 lun 0: <TSSTcorp, CDDVDW TS-H653F, CM00> ATAPI 5/cdrom removable
sd0 at scsibus0 targ 1 lun 0: <ATA, WDC WD10EARS-00Y, 80.0> SCSI3 0/direct fixed
sd1 at scsibus0 targ 3 lun 0: <ATA, WDC WD6400AAKS-0, 01.0> SCSI3 0/direct fixed
wd0 at pciide0 channel 0 drive 0: <Maxtor 32049U3>