Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

One of my drives is mounted directly as /mnt

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1            7.9G  6.9G  597M  93% /
udev                  829M  4.0K  829M   1% /dev
tmpfs                 334M  160K  334M   1% /run
none                  5.0M     0  5.0M   0% /run/lock
none                  834M     0  834M   0% /run/shm
/dev/xvda2            147G  188M  140G   1% /mnt           <--- This one

I thought /mnt is only the "parent mount points", and that devices are usually mounted as /mnt/something and not as /mnt itself.

/mnt seems to be working ... I can write to it. Is this situation ok?

(This is an Amazon EC2 ubuntu image)

share|improve this question

2 Answers 2

up vote 10 down vote accepted

There's nothing special about the /mnt directory. You can mount something directly there if that's practical for you, or choose to mount in subdirectories (or both).
You could also mount things to /foo (or anything else really) if that makes sense for your applications/use-case.

Just don't mount over directories that contain important (system or application/user) files - they'd become hidden by that mount, as so mostly unreachable until it is unmounted.

share|improve this answer
2  
Regarding your last line - it should be noted that these files will only be temporarily unreachable. When you unmount the device, you'll get the files back. –  AlexWebr Aug 5 '12 at 16:03
5  
Yes, that's correct. (Although if you mount something over /bin where mount/umount reside, it can get tricky to properly unmount :-) ) –  Mat Aug 5 '12 at 16:06
1  
Or /etc where fstab lives; I made that mistake as well recently. –  Christian Mann Aug 5 '12 at 22:24

Just to add to Mat's answer is that you could take a look at the fstab file that should be around /etc and change there the mounting point for that drive.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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