Skip to content

Post fstab?

My /etc/fstab was recently corrupted right after a clean install, so I fixed it then through my Fedora partition. However, I just realized that because I got the fstab I'm using now for the ArchWiki for fstab, it doesn't have a line for the optical drive so any disc I insert will not mount, although it is detected. I verified this using various commands; it even ejects the disc when "eject" is typed. If this line(s) is generic, do one of you mind posting yours? Thanks!

3 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
tg7pi

Author

2
posts
15
comments
0
media
View profile

4 comments

Look which device your optical drive uses. For me it's /dev/sr0.

The syntax then is

device mountpoint type options dump pass

where type should be auto and dump and pass "0".

My line is:

/dev/sr0 /media/cd auto ro,user,noauto,unhide,exec,nofail 0 0 
3 points

I think I never touched that line:

/dev/sr0 /media/cdrom auto ro,user,noauto,unhide 0 0
2 points

Thanks guys! I normally never touch that line, but the file got cleared when it was corrupted.

1 points

I don't even have a line in fstab for my optical drive. Is it possible there's some udev magic going on behind the scenes?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.