Dell Networking SONiC How to mount and unmount USB
Summary: This article explains how to mount and unmount usb in Dell Networking SONiC.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
|
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
Affected Products
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-ONArticle Properties
Article Number: 000212218
Article Type: How To
Last Modified: 25 May 2023
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.