Currently, whenever I insert a CD or DVD into my DVD drive, it mounts to a location such as /media/<LABEL>
, where <LABEL>
is the arbitrary label assigned to the optical disc.
I remember, once upon a time, CD and DVD media being reliably located at /media/cdrom0 or something similar. Why was this changed? And how do I get this old behavior back for this drive?
I can understand this behavior for USB sticks. It makes sense for those. But not for CD/DVD media, in my opinion. For example, because of this, I have no way to configure Wine to point to my DVD drive, as the mount point changes with every single CD I insert.
TL;DR: How do I make CD/DVD media always mount to /media/cdrom0
?
Best Answer
If you have one cdrom drive, add this line to your /etc/fstab:
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
Make sure you edit it as root. Ie:
gksudo gedit /etc/fstab
orsudo nano /etc/fstab
.The Ubuntu documentation has a really good article on this.