2

I was making mnt directory in home-directory and when I try delete it, I didn't realize my relative path was root(/). Eventually I deleted mnt directory in root... How can I restore /mnt? My file system is ext4.

  • I made mnt directory! I'm really really thank your response for letting me know!! – Y X May 20 '18 at 7:14
  • 3
    Consider picking the answer that best helped you. Click the gray checkmark to accept it. This is a way of giving back to Askubuntu by making it easy for others to see answers that work. Also, users who are trying to make sure that all questions have a solution can skip the ones that are resolved. By the way, you can avoid this type of problem in the future by only using the sudo command when it's your intentions to do something for the entire system, and not your personal space. Using sudo in your personal space can break the normal access. Welcome to AU! – L. D. James May 20 '18 at 7:27
5

As long as nothing was mounted to it, /mnt is just a directory like any other.

Run sudo mkdir -m 755 /mnt to recreate it with default permissions.

| improve this answer | |
4

Simply by doing sudo mkdir /mnt. /mnt normally is an empty directory used to mount something there.

$ ls -l /mnt
total 0
$ ls -ld /mnt
drwxr-xr-x 2 root root 4096 Okt 18  2017 /mnt
| improve this answer | |

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.