Score:0

Kubuntu 22.04.2 boots into emergency mode, but only if no DVD is present

rs flag

I have a computer with a DVD drive that is running Kubuntu 22.04.2 LTS x86_64. To make it so that a disk would mount properly when inserting it into the CD-ROM drive, I made some changes to /etc/fstab. The line in question I added is /dev/sr0 /media/cdrom udf,iso9660 ro,auto,user,exec,utf8 0 0 (I have edited the amount of spaces to fit properly here if that matters).

As this is the only change I made to fstab, and the rather odd behavior of not being able to boot normally without a disk inside the drive, I'm 90% certain this line is causing it. However, I still want to be able to have the drive auto-mount when I put a disk in. How can I go about doing that, without needing a random disk laying around to boot?

PonJar avatar
in flag
I suspect that if you don’t have a DVD in the drive the system is hanging waiting to mount something. I don’t use DVDs now but if I remember correctly most systems will ask you if you want to mount removable media when you insert it. This may not be exactly what you want. Alternatively look at autofs. It can do what you are looking for.
Score:0
it flag

The auto in your /etc/fstab line ("/dev/sr0 /media/cdrom udf,iso9660 ro,auto,user,exec,utf8 0 0") tells the system to mount the DVD at startup (when it does mount -a). As you've noticed, Linux mount doesn't handle "no DVD" well.

Remove the auto option.

Read man fstab mount.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.