Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The CD/DVD drive of my notebook is broken. However, the drive from my desktop computer is working perfectly.

How can I access the CD/DVD drive from my desktop computer over the network? I want to put a DVD disc there and access it from my notebook.

Both computers have Gentoo/Linux. (but the solution ought to work on any Linux distribution)

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Try sharing it over samba:

sudo nano /etc/samba/smb.conf


comment = CD Drive
path = /mnt/cdrom
public = no
writable = no
share|improve this answer
+1 from me. I already did this using samba oce and it works perfectly. –  Diogo Jul 29 '11 at 17:40
Sorry, this is not working. The log inside /var/log/ says: '/dev/sr0' is not a directory, when connecting to [cdrom] (I've renamed [public] to [cdrom]) –  Denilson Sá Jul 29 '11 at 19:01
Changing /dev/cdrom into /mnt/cdrom (or whatever the mountpoint is) solves the issue. –  Denilson Sá Aug 1 '11 at 21:12

At first I thought about sharing the /dev/cdrom (actually, /dev/sr0) using either NFS or sshfs.

Then I tried that, and it does not work. Raw devices can't be shared using these technologies.

However, I can mount the cdrom somewhere (/mnt/cdrom and /media/cdrom are common places) and then share the mount point.

Using sshfs is easy to setup, as it doesn't require root permissions nor any configuration file. It's also "safe", as the file access permissions will be basically the same as the logged in ssh user. However, using NFS will lead to better performance (because it has less overhead, as it doesn't encrypt any data).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.