Laziness Is The Key

Today I wanted to try out Max Payne 3 with wine when I realized that my DVD-drive is still disconnected. I didn't want to shutdown my PC and reconnect the drive so I tried to access the BD-ROM from my HTPC remotely.

If you want to access any block device remotely you've got to install nbd-server on the host and nbd-client on the client.

Example /etc/nbd-server/config:

# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
    user = root
    group = root
    includedir = /etc/nbd-server/conf.d

# What follows are export definitions. You may create as much of them as
# you want, but the section header has to be unique.
    exportname = /dev/sr0
    port = 9000

Command used for connection:

# nbd-client x.x.x.x -name bdr /dev/nbd1

Command used for mounting:

# mount /dev/nbd1 /media/cdrom

0 Comments Dec 26, 2015 share to diaspora*