#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