LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-03-2007, 12:49 AM   #1
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Rep: Reputation: 32
Smile /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..
 
Old 01-03-2007, 01:32 AM   #2
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Smile

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 )
 
Old 01-04-2007, 07:39 AM   #3
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Smile (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!
 
  


Reply

Tags
links, udev


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why has udev swapped /dev/hdc and /dev/hdd ? chaosbear Linux - Hardware 2 08-09-2006 03:23 AM
dvd listed as /dev/cdrom1 tfdml37 Linux - Hardware 2 03-21-2004 01:36 AM
dd if=/dev/cdrom1 of=/dev/cdrom2 Fails w/Knoppix suguru Debian 2 03-18-2004 10:48 AM
auidio cd/video cd on /dev/cdrom1 frieza Linux - Software 0 11-30-2003 06:21 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration