LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /dev/cdrom1,/dev/cdrw1 symlinks made at each boot by udev which i dont want (https://www.linuxquestions.org/questions/linux-software-2/dev-cdrom1-dev-cdrw1-symlinks-made-at-each-boot-by-udev-which-i-dont-want-515796/)

deepclutch 01-03-2007 12:49 AM

/dev/cdrom1,/dev/cdrw1 symlinks made at each boot by udev which i dont want
 
I have debian etch and my /etc/fstab entries for my cd-rw and dvdrom drives are hdb and hda.
i have symlinked /dev/cdrom to hda and /dev/dvd to hdb.
Code:

etch:~# cat /etc/fstab
/dev/fd0        /media/floppy0  auto    rw,user,noauto      0      0
/dev/cdrom      /media/cdrw    udf,iso9660 user,noauto    0      0
/dev/dvd        /media/dvdrom  udf,iso9660 user,noauto    0      0

Now each time i boot into etch and checks "ls -l /dev/cd*" it shows /dev/cdrom1 symlinked to /dev/hda and /dev/cdrw1 symlinked to /dev/hda.Is it got something to do with udev...
How can i eliminate this problem..

deepclutch 01-03-2007 01:32 AM

Well.I kind of found the file which does the thing umm..but afraid to edit the rules of udev

Code:

etch:~# less /etc/udev/rules.d/z25_persistent-cd.rules
# This file was automatically generated by the /lib/udev/write_cd_rules
# program, probably run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line
# and set the $GENERATED variable.

# HL-DT-STDVD-ROM_GDR8163B (pci-0000:00:1f.1-ide-0:1)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:1", SYMLINK+="cdrom", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:1", SYMLINK+="dvd", ENV{GENERATED}="1"
# SONY_CD-RW_CRX210E1 (pci-0000:00:1f.1-ide-0:0)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"

AND
Code:

etch:~# less /etc/udev/rules.d/z75_cd-aliases-generator.rules

# These rules generate rules for the /dev/{cdrom,dvd,...} symlinks and
# write them to /etc/udev/rules.d/z20_persistent-cd.rules.
#
# The default name for this file is z75_cd-aliases-generator.rules.

ACTION=="add", SUBSYSTEM=="block", ENV{GENERATED}!="?*", ENV{ID_CDROM}=="?*", \
        PROGRAM="write_cd_rules", SYMLINK+="%c"

Help is appreciated :))

deepclutch 01-04-2007 07:39 AM

(solved) solution for others :))
 
I edited /etc/udev/rules.d/z25_persistent-cd.rules and removed the junk links for cdrom1 and cdrw1.Problem Solved.Thanks!:o


All times are GMT -5. The time now is 07:36 AM.