dvd drive device name

Asked by Alpo Turunen

Before upgrading to Hardy my IDE CD/DVD burner was on /dev/hda and there were symlinks
/dev/cdrom -> /dev/hda
/dev/cdrw -> /dev/hda
/dev/dvd -> /dev/hda
After upgrading the drive has changed to /dev/scd0. That is not the problem but now the symlinks are
/dev/cdrom2 -> /dev/scd0
/dev/cdrw2 -> /dev/scd0
/dev/dvd2 -> /dev/scd0
And there are no /dev/cdrom, /dev/cdrw or /dev/dvd.
How can I change the names of the symlinks back so that programs trying to read /dev/cdrom will work normally?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Harvey Muller
Solved:
Last query:
Last reply:
Revision history for this message
Andy Ruddock (andy-ruddock) said :
#1

Try the following :

# cd /dev
# sudo ln -s /dev/scd0 ./cdrom
# sudo ln -s /dev/scd0 ./cdrw
# sudo ln -s /dev/scd0 ./dvd

simply making new symbolic links

Revision history for this message
Alpo Turunen (alpo-turunen) said :
#2

That doesn't work because /dev is on tmpfs and is regenerated by udev on every boot, so the symlinks will be lost. Is there a way to change symlink names in config files?

Revision history for this message
Andy Ruddock (andy-ruddock) said :
#3

Take a look in /etc/udev/rules.d/70-persistent-cd.rules and /etc/udev/75-cd-aliases-generator.rules

Revision history for this message
Best Harvey Muller (hlmuller) said :
#4

Hi Alpo,

More specific advice, see this bug:

    https://bugs.launchpad.net/ubuntu/+source/udev/+bug/223534

Particularly this comment, should provide the solution:

    https://bugs.launchpad.net/ubuntu/+source/udev/+bug/223534/comments/1

Please return to Launchpad and mark this question Solved, if this resolves your question.

Thanks!

Harvey

Revision history for this message
Alpo Turunen (alpo-turunen) said :
#5

Thanks Harvey Muller, that solved my question.