1

My question is about how to change the points where devices and partitions automatically mount to upon being detected.

The file /etc/fstab contains the entry

/dev/fd0    /media/floppy0  auto    rw,user,noauto,exec,utf8    0   0

for mounting floppy disks at /media/floppy0. I don't have a floppy drive on my computer, so I don't know the behavior of this. But, I have also included this line in my fstab file:

/dev/sr0    /CDROM  udf,iso9660 user,noauto,exec,utf8   0   0

I want to know if this will make CDs mount at /CDROM instead of some point in /media/<user>.

1

The mount command looks at /etc/fstab, but there is no requirement that an arbitrary command that mounts a filesystem has to look at /etc/fstab. And there are many such commands.

From man mount

If only the directory or the device is given, for example:

              mount /dir

       then  mount  looks  for  a mountpoint (and if not found then for a device) in the /etc/fstab file.

In particular, software for automatically mounting filesystems may not issue a mount command. So, no. You need to look at the particular software that is doing the mounting.

If you give more information about how your automatic mounting is configured, then it may be possible to give more specific information.

  • The operating system is Ubuntu 15.10. – Melab Jan 14 '16 at 0:20
  • Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try /var/log/messages and /var/log/syslog to start with. – Faheem Mitha Jan 14 '16 at 0:23

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.