I want to mount the dvd drive, which is sr0 to the mountpoint /mnt/dvd/
I tried to add this command to fstab:
/dev/sr0 /mnt/dvd auto auto,user,rw 0 0
But when I do so, Arch will go into the emergency mode straight after boot.
Last edited by alocacoc (2013-07-03 20:58:01)
Is there a data disk in the drive when you boot? If not, then this is to be expected.
I think you'd at least want noauto in the options rather than auto. But also I'm curious why you would want to do this in the firstplace. Do you regularly use data dvds, and do you want them always to be mounted at boot?
Last edited by Trilby (2013-07-01 20:38:22)
if you are using systemd, take it out of fstab and let nature take it's course. I have no entry for my dvd in fstab and is works just fine.
Nvidia GTX 680 4Gb, AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked) 8GB RAM
Linux user #545703
from this page
/dev/sr0 /media/sr0 auto ro,noauto,user,exec 0 0
Even today, in 2010
didn't see that one.......
sorry for mentioning it.
Yes, I had no data disc inside the drive.
I just used this entry before I switched to Arch in my old distribution which did not use systemd but openrc where it worked well with this command.
Without an fstab entry it works just fine. I somehow had the idea to have all drives mounted at /mnt is normal.
Maybe I just let it go and let the system mount it wherever it wants it to be.
Thanks for your answers.
The thing is, you can't mount a drive. You can only mount a file system. So in this case, there is nothing to mount...
I am not sure why systemd drops you to emergency mode in this case - that seems wrong to me. But I would expect it to cause problems even if just delay on boot.
I am not sure why systemd drops you to emergency mode in this case - that seems wrong to me.
Because of the 'auto' option used - this is why the recommendation was to use 'noauto'.
Systemd mounts all the partitions in fstab, it can't know which ones are essential or not unless you tell it. If you lie to it by saying that is an essential filesystem, then mounting the filesystems fails - and many services depend on properly mounted filesystems.
Yes but if it is a file system on an external disk, for example, it waits for a very long time (around 5 mins) and then tries to continue so I don't see why it reacts differently in this case. It just seems inconsistent.
EDIT: Or is it because of the actual use of 'auto' as opposed to just the absence of 'noauto' which is what I was thinking of?
Last edited by cfr (2013-07-02 01:15:18)
Changing it to "noauto" worked, changed it back to "auto" and it goes to emergency mode again (unless a medium is present, see post #2).
My well working command is now:
/dev/sr0 /mnt/dvd auto rw,noauto,user,exec 0 0
and once I put in a medium, it will mount it automatically to /mnt/dvd
Thank you for your answers.