#sysctl hw.disknames示例輸出:
hw.disknames=wd0:3af96a8b7d621ab2,cd0:,sd0:獲取更多的關於sd0的信息,輸入下面的命令:
#dmesg | grep sd0命令輸出以下:
sd0 at scsibus1 targ 1 lun 0: SCSI2 0/direct removable sd0: 1956MB, 512 bytes/sector, 4005888 sectors sd0 detached sd0 at scsibus1 targ 1 lun 0: SCSI2 0/direct removable sd0: 1956MB, 512 bytes/sector, 4005888 sectors
#disklabel sd0命令輸出以下:
# /dev/rsd0c: type: vnd disk: vnd device label: fictitious duid: 97d41b01a9d85387 flags: bytes/sector: 512 sectors/track: 100 tracks/cylinder: 1 sectors/cylinder: 100 cylinders: 5120 total sectors: 4005888 boundstart: 0 boundend: 512000 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 512000 0 4.2BSD 2048 16384 1 c: 4005888 0 unused #
#mkdir /mnt/usbdisk接着使用mount命令來掛載閃存盤,輸入命令:
#mount /dev/sd0 /mnt/usbdisk而後你就能夠訪問你掛載上的USB閃存盤或者移動硬盤裏的數據
#cd /mnt/usbdisk #ls -l若是你要卸載閃存盤或者移動硬盤,能夠輸入下面的命令:
#umount /mnt/usbdisk
更多參考:OpenBSD系統 shell