Dell Networking SONiC How to mount and unmount USB
摘要: This article explains how to mount and unmount usb in Dell Networking SONiC.
本文适用于
本文不适用于
本文并非针对某种特定的产品。
本文并非包含所有产品版本。
说明
|
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
受影响的产品
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-ON文章属性
文章编号: 000212218
文章类型: How To
上次修改时间: 25 5月 2023
版本: 3
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。