-1

How do I delete these 2 unwanted mount points. enter image description here

4
  • 3
    Unused mountpoints are just empty directories - you can remove them using the rmdir command – steeldriver May 10 '20 at 17:40
  • @steeldriver I get this vidath_dissanayake@Latitude-3379:~$ rmdir /mnt/01D60CFF0BF1D440 rmdir: failed to remove '/mnt/01D60CFF0BF1D440': Permission denied vidath_dissanayake@Latitude-3379:~$ rmdir /mnt/Windows rmdir: failed to remove '/mnt/Windows': Permission denied vidath_dissanayake@Latitude-3379:~$ rmdir /media/vidath_dissanayake rmdir: failed to remove '/media/vidath_dissanayake': Permission denied – Sasuke Uchiha May 11 '20 at 22:09
  • 2
    "Permission denied": you probably need to use sudo – Nmath May 11 '20 at 22:27
  • Oops. Ok my bad. – Sasuke Uchiha May 12 '20 at 5:00
3

Use sudo rmdir /path/to/mount/point

1

Mount points are empty directories. In Linux, all filesystem is mounted in one tree, and Ubuntu is a Linux. You tried to remove that directory using rmdir command. It's OK. But it said permission denied. It is expected to happen. You are not the owner of neither those directories nor the parent directory, /mnt . You must have superuser permissions to remove those. So use sudo which give root permissions like this:

sudo rmdir /unused/mount/point/

It will prompt for the password. Type your password and hit enter. Your password won't be seen, even not dots. That's normal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.