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>.

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
Melab
  • 3,808
  • 8
  • 29
  • 49

1 Answers1

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.

Faheem Mitha
  • 34,649
  • 32
  • 119
  • 183
  • The operating system is Ubuntu 15.10. – Melab Jan 14 '16 at 00: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 00:23