You are not logged in.
Pages: 1
Hello,
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.
Thanks.
Last edited by alocacoc (2013-07-03 20:58:01)
Offline
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)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
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.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
Offline
from this page
/dev/sr0 /media/sr0 auto ro,noauto,user,exec 0 0
Offline
@henk - I think that page is pretty dated... as Roken suggested, there is not a need to have an fstab entry when using systemd (perhaps even without it).
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Yeah,
Even today, in 2010
didn't see that one.......
sorry for mentioning it.
Offline
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.
Offline
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.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
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.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
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)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
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.
Offline
Pages: 1