133
Before you unmount a storage medium, make sure no other users are accessing the medium. Otherwise,
the unmount operation fails.
When a storage medium is connected to a lower version system, the system might not be able to
automatically recognize the device. In this case, you must first execute the
mount
command for the
storage medium to function correctly.
To avoid file system corruption, do not perform the following operations while the system is unmounting
a storage medium:
•
Installing or removing storage media or cards.
•
Performing an active/standby switchover in standalone mode.
•
Performing a switchover between the global active MPU and a global standby MPU in IRF mode.
Examples
# In standalone mode, unmount a USB disk from the active MPU.
<Sysname> umount usb0:
# In standalone mode, unmount a USB disk from the standby MPU (in slot 16).
<Sysname> umount slot16#usb0:
# In IRF mode, unmount a USB disk from the global active MPU.
<Sysname> umount usb0:
# In IRF mode, unmount a USB disk from the global standby MPU that resides in slot 17 of member device
2.
<Sysname> umount chassis2#slot17# usb0:
Related commands
mount
undelete
Use
undelete
to restore a file from the recycle bin.
Syntax
undelete
file
-
url
Views
User view
Predefined user roles
network-admin
Parameters
file-url
: Specifies the name of the file to be restored.
Usage guidelines
If another file that has the same name exists in the directory, the system prompts you about whether to
overwrite the existing file. If you enter
Y
, the existing file is overwritten. If you enter
N
, the command is not
executed.
Examples
# Restore the
copy.cfg
file, which was moved from the
flash:
directory to the recycle bin.
<Sysname>undelete copy.cfg