LinuxCommandLibrary

pumount

TLDR

Unmount device

$ pumount [/dev/sdb1]
copy
Unmount by mount point
$ pumount [/media/usb]
copy
Unmount by label
$ pumount [LABEL]
copy
Lazy unmount
$ pumount --lazy [/dev/sdb1]
copy

SYNOPSIS

pumount [options] device|directory

DESCRIPTION

pumount is the counterpart to pmount for unmounting removable devices without root privileges. It handles encrypted volumes and ensures proper cleanup.
Part of the pmount package for user-mountable removable media.

PARAMETERS

--lazy, -l

Lazy unmount (detach now, cleanup later).
--luks-force
Force LUKS close.
--debug, -d
Debug output.

EXAMPLES

$ # Unmount by device
pumount /dev/sdb1

# Unmount by mount point
pumount /media/usb

# Lazy unmount (busy device)
pumount --lazy /dev/sdb1

# Unmount encrypted drive
pumount /dev/mapper/sdb1

# Debug mode
pumount -d /dev/sdc1
copy

COMMON ERRORS

$ # Device busy
pumount --lazy /dev/sdb1

# Or find what's using it
lsof +D /media/usb
fuser -m /media/usb
copy

CAVEATS

Only works with pmount-mounted devices. Doesn't handle fstab mounts. May need --lazy for busy devices.

HISTORY

pumount is part of pmount by Martin Pitt, providing non-root unmounting for removable media.

SEE ALSO

pmount(1), umount(8), udisksctl(1)

Copied to clipboard