无论是否使用可移除介质服务,都可以访问有关可移除介质的信息。有关使用 GNOME 的文件管理器访问可移除介质相关信息的信息,请参见 GNOME 桌面文档。
格式化 USB 设备后,通常会将该设备挂载在 /media/label 目录下。
对于字符设备,对应的设备节点是在 /dev/rdsk 目录下创建的,而对于块设备,对应的设备节点是在 /dev/dsk 目录下创建的。设备链接是在热插拔设备时创建的。有关更多信息,请参见 scsa2usb(7D) 手册页。
有关挂载和取消挂载 USB 设备的更多信息,请参见如何挂载或取消挂载 USB 海量存储设备。
以下示例说明如何显示 USB 信息。
使用 prtconf 命令
在本示例中,输出已截断为仅显示 USB 设备信息。
$ prtconf usb, instance #0 hub, instance #2 device, instance #8 interface (driver not attached) printer (driver not attached) mouse, instance #14 device, instance #9 keyboard, instance #15 mouse, instance #16 storage, instance #7 disk (driver not attached) communications, instance #10 modem (driver not attached) data (driver not attached) storage, instance #0 disk (driver not attached) storage, instance #1 disk (driver not attached)
使用 rmformat 命令
$ rmformat Looking for devices... 1. Logical Node: /dev/rdsk/c3t0d0p0 Physical Node: /pci@0,0/pci108e,534a@2,1/storage@3/disk@0,0 Connected Device: SanDisk Cruzer Micro 0.3 Device Type: Removable Bus: USB Size: 245.0 MB Label: <None> Access permissions: Medium is not write protected.