umount

Use umount to unmount a hot swappable storage medium.

Syntax

umount medium-name

Default

A storage medium is automatically mounted and placed in mounted state.

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

medium-name: Specifies the name of a storage medium.

Usage guidelines

Before you remove a mounted storage medium from the system, first unmount it to avoid damaging the medium.

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 install or remove storage media while the system is unmounting a storage medium.

Examples

# In standalone mode, unmount a USB disk.

<Sysname> umount usb0:

# In IRF mode, unmount a USB disk from the master.

<Sysname> umount usb0:

# In IRF mode, unmount a USB disk from the global standby MPU that resides in member device 2.

<Sysname> umount chassis2#slot0#usb0:

Related commands

mount