Dell Networking SONiC How to mount and unmount USB
Resumen: This article explains how to mount and unmount usb in Dell Networking SONiC.
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Instrucciones
|
NOTE: To use USB on a DELL Networking SONiC in a Networking switch, we must ensure usb enable is configured. By default usb is disabled.
This article is applicable for Dell SONiC 4.0.1 and above. For Older Firmware version use below link. Dell Networking SONiC Firmware version 3.x, 4.0.0 How to Mount USB and copy file between switch and USB |
Dell SONiC supports FAT32, vfat, ext2, ext3, and ext4 file systems on USB media
Command Syntax
| Command | Explanation |
|---|---|
| sonic :~$ sonic-cli | Enter Dell Sonic CLI |
| sonic# configure terminal | Enter configure Mode |
| sonic(config)# usb enable | Enable usb |
| sonic(config)# no usb | Disable usb |
| sonic(config)# exit | Exit from Configure mode |
| sonic# usb mount | Mount usb |
| sonic# usb un-mount | Unmount usb |
Use the following commands to verify if USB is connected
| Command | Explanation |
|---|---|
| sonic# show usb | Display usb information |
| sonic# show usb partitions | Display usb device partitions detected |
| sonic# show usb devices | Display usb devices detected |
| sonic# dir usb:/ | Display content of usb |
After USB is mounted we can use copy command to copy files between usb and switch which can be useful in backing up config, copy tech support file etc.
Sample Output
Configure USB enable
sonic# sonic# configure terminal sonic(config)# usb enable sonic(config)# exit sonic#
Verify the configuration
sonic# show running-configuration | grep "usb enable" usb enable sonic#
MOUNT USB
sonic# usb mount
Check if USB is mounted and its contents
sonic# show usb Auto Detection: Enabled -------------------------------------------------------------------- Mount Dir Device Name Filesystem -------------------------------------------------------------------- /media/usb0 /dev/sdb vfat sonic# show usb partitions -------------------------------------------------------------------- Device name Mount Dir Filesystem -------------------------------------------------------------------- /dev/sdb vfat sonic# show usb devices -------------------------------------------------------------------- Device name Manufacturer Model Name -------------------------------------------------------------------- /dev/sdb Generic Flash Disk sonic# dir usb:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename ------------------------------------------------------------------------- XXXX-XX-XX XX:XX XXXXX - XXX XXXX-XX-XX XX:XX XXXXX - XXX XXXX-XX-XX XX:XX XXXXX - XXX
UNMOUNT USB
sonic# usb un-mount
Productos afectados
Enterprise SONiC Distribution, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ONPropiedades del artículo
Número del artículo: 000212218
Tipo de artículo: How To
Última modificación: 25 may. 2023
Versión: 3
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.