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.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 100% up
- Kind
- Text
- ID
- apas58
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.
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.
I see no reason why we can’t ride unicorns to work but there you have it LOL
Does
mount /dev/sr0 /mntnot work?As read-only only:
mount: /mnt: WARNING: device write-protected, mounted read-only.I don't think it's possible to mount a normal optical drive rw, pretty sure you need DVD-RAM drives for that.
How so?
https://www.g-loaded.eu/2005/11/10/packet-writing-on-cdrw-and-dvdrw-media/