Монтирование USB Flash

Иногда может понадобиться доставить на виртуальный шлюз сертификаты или политику безопасности в виде конфигурационного файла, например, используя USB Flash.

 

1.   Для подключения к виртуальной машине USB Flash выделите виртуальную машину и нажмите кнопку Connect/Disconnect  the  USB  devices  to  the  virtual  machine, выберите пункт Connect  to  USB  device и выберите необходимое устройство (Рисунок 16).

Рисунок 16

 

2.   В появившемся предупреждении нажмите кнопку ОК (Рисунок 17).

Рисунок 17

 

3.   В dmesg появятся сообщения о подключении нового устройства:

root@sterragate:~# dmesg

[ 4048.413192] usb 1-1: new high speed USB device using ehci_hcd and address 2

[ 4049.887342] usb 1-1: New USB device found, idVendor=8644, idProduct=800e

[ 4049.887347] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 4049.887352] usb 1-1: Product: USB Flash Disk               

[ 4049.887355] usb 1-1: Manufacturer: General                      

[ 4049.887359] usb 1-1: SerialNumber: 80130004000017E6

[ 4049.887668] usb 1-1: configuration #1 chosen from 1 choice

[ 4049.960300] Initializing USB Mass Storage driver...

[ 4049.960770] scsi3 : SCSI emulation for USB Mass Storage devices

[ 4049.961049] usb-storage: device found at 2

[ 4049.961052] usb-storage: waiting for device to settle before scanning

[ 4049.961091] usbcore: registered new interface driver usb-storage

[ 4049.961096] USB Mass Storage support registered.

[ 4055.271609] usb-storage: device scan complete

[ 4055.300172] scsi 3:0:0:0: Direct-Access     General  USB Flash Disk   1.0  PQ: 0 ANSI: 2

[ 4055.301643] sd 3:0:0:0: Attached scsi generic sg2 type 0

[ 4055.348736] sd 3:0:0:0: [sdb] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)

[ 4055.407924] sd 3:0:0:0: [sdb] Write Protect is off

[ 4055.407930] sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00

[ 4055.407934] sd 3:0:0:0: [sdb] Assuming drive cache: write through

[ 4055.553698] sd 3:0:0:0: [sdb] Assuming drive cache: write through

[ 4055.553916]  sdb: sdb1

[ 4055.684798] sd 3:0:0:0: [sdb] Assuming drive cache: write through

[ 4055.685008] sd 3:0:0:0: [sdb] Attached SCSI removable disk

root@sterragate:~# dmesg | tail

[ 4055.300172] scsi 3:0:0:0: Direct-Access     General  USB Flash Disk   1.0  PQ: 0 ANSI: 2

[ 4055.301643] sd 3:0:0:0: Attached scsi generic sg2 type 0

[ 4055.348736] sd 3:0:0:0: [sdb] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)

[ 4055.407924] sd 3:0:0:0: [sdb] Write Protect is off

[ 4055.407930] sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00

[ 4055.407934] sd 3:0:0:0: [sdb] Assuming drive cache: write through

[ 4055.553698] sd 3:0:0:0: [sdb] Assuming drive cache: write through

[ 4055.553916]  sdb: sdb1

[ 4055.684798] sd 3:0:0:0: [sdb] Assuming drive cache: write through

[ 4055.685008] sd 3:0:0:0: [sdb] Attached SCSI removable disk

4.   Создайте новую папку для монтирования:

root@sterragate:~# mkdir /home/usb

5.   Примонтируйте добавленное устройство:

root@sterragate:~# mount /dev/sdb1 /home/usb

6.   Устройство готово к использованию.