How Do I Unmount a Home Directory in Linux?
Contents

3 Answers. You can enter single user mode for such operations by adding ‘s’ to the end of grub boot line edit or run sudo init 1 . there you can umount /home, if again get errors run sudo umount -fl /home . -f force and -l disconnect in lazy!

How do I unmount a directory in Linux?

To unmount a mounted file system, use the umount command. Note that there is no “n” between the “u” and the “m”—the command is umount and not “unmount.” You must tell umount which file system you are unmounting. Do so by providing the file system’s mount point.

How do I unmount a busy device in Linux?

If possible, let us locate/identify the busy process, kill that process and then unmount the samba share/ drive to minimize damage: lsof | grep ‘<mountpoint of /dev/sda1>’ (or whatever the mounted device is) pkill target_process (kills busy proc. by name | kill PID | killall target_process )

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest