maux
Star on GitHub Buy me a coffee

Manual / umount

umount(1)

UMOUNT(1) General Commands Manual UMOUNT(1)

umount - unmount a floppy or a disk image

umount /mnt/NAME
umount /dev/sNdM

Umount takes a Disk ][ that mount(1) mounted back out of /mnt, df(1) and mount's listing. Nothing reads the drive again until it is mounted again.

It also detaches a disk image that mount(1) attached as /dev/s3d2: the unit and its volume go away, the image file is closed and can be changed again. A volume that holds a mounted image cannot be unmounted until the image is. If a write to the image failed while it was mounted (a read-only mount, or the host refusing), the unit is still detached but umount says "N blocks were not written" and exits 1.

The volume is named by its place under /mnt or by its unit. A name is found by reading, with one ON_LINE each, only the units already mounted; a drive that is not mounted is never polled.

Refused as "busy" while a file on the volume is open or parked, a process has its working directory on it, or a block device on the unit is open. The boot volume and fast units (SmartPort, hard disk) cannot be unmounted: "not a mountable unit".

/mnt/NAME a mounted volume
/dev/sNdM the units

mount(1), df(1)

Exit status is 0 on success, 1 on failure ("busy", "not mounted", "not a mountable unit") or when writes to a detached image were lost, 2 for a usage error.

October 10, 2026 maux