Skip to content

How to mount optical drive?

I want to be able to interact with /dev/sr0 as if it were a directory structure which I can write files to (if the CD/DVD is not ROM) and read files from. The wiki does not approach this topic: it explains how to create an iso and write the iso to the physical CD/DVD.

This seems like such an undemanding task. Maybe I'm not getting some crucial detail here?

EDIT:

A little background: I've tried to use bashburn and cdw utilities but they do not cover my use case.

sudo mount /dev/sr0 /media/ mounts the device but shows the following message: mount: /media: WARNING: device write-protected, mounted read-only.. This is undesirable.

Changing the above to sudo mount -t iso9660 /dev/sr0 /media/ yields the same message.

sudo mount -t iso9660 -o rw /dev/sr0 /media/ too.

I also tried using sudo hdparm -r0 /dev/sr0 to set a possible read-only flag off. No luck either.

Edited 11 Feb 2019. We only hold this version.

0 points8 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
apas58

Author

39
posts
206
comments
8
media
View profile

8 comments

Reading from an optical drive is easy enough but they don't operate like a standard drive and require software specifically designed to write to an optical drive. Brasero or a similar application is needed to do the actual writing, you can't just issue a cp command and have it write the file to the optical drive.

​

Before flash drives became so inexpensive and readily available I used to use optical drives for personal data storage and found the easiest way was to just drag and drop the files via an application like Brasero.

3 points

I was hoping somewhere someone would have made a virtual filesystem for dealing with this problem or something like that by now. I see no reason for us not to be able to issue a cp command to an optical drive.

2 points

I see no reason why we can’t ride unicorns to work but there you have it LOL

5 points

Does mount /dev/sr0 /mnt not work?

1 points

As read-only only: mount: /mnt: WARNING: device write-protected, mounted read-only.

1 points

I don't think it's possible to mount a normal optical drive rw, pretty sure you need DVD-RAM drives for that.

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.