LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-10-2004, 06:31 PM   #1
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Rep: Reputation: 15
wrong cdrom and dvd links recreated upon restart


My cdrom and dvd links points ro /dev/hdd instead of /dev/hdc. so i rm -f cdrom and dvd. then i recreated the link for both this time making sure that it points to /dev/hdc. The weired thing is that when i restart my pc the links are recreated to ponit to /dev/hdd and my old liks removed.

What is happening ? How do i stop the links from being recreated after i have done the right thing.
 
Old 06-10-2004, 08:05 PM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
You make the link changes as root? You are running 9.1 or current with udev? Are you running hotplug?
 
Old 06-11-2004, 02:05 PM   #3
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Original Poster
Rep: Reputation: 15
I am running slack 9.1 current but with kernel 2.6.6 and hotplug.
 
Old 06-13-2004, 03:04 AM   #4
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Original Poster
Rep: Reputation: 15
I noticed that every time i boot my pc all the devices in /dev are created afresh . The cdrom and dvd devices however point to hdd instead of hdc. When i recreate the links and make them point to hdc , they are overwritten with the wrong link upon reboot.

I thinks it has something to do with the scripts in /etc/udev but i have gone thru them amd i don't know what and which file to change.

I'll apppreciate any help please.
 
Old 06-13-2004, 04:16 AM   #5
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
Create the file /etc/udev/rules.d/10-local.rules with this content:
Code:
BUS="ide", KERNEL="hdc", NAME="%k", SYMLINK="dvd cdroms/cdrom%n"
BUS="ide", KERNEL="hdc", NAME="%k", SYMLINK="cdrom cdroms/cdrom%n"
More information here:
http://www.reactivated.net/udevrules.php

Last edited by lems; 06-13-2004 at 04:18 AM.
 
Old 06-13-2004, 06:10 AM   #6
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Original Poster
Rep: Reputation: 15
Thnx Lems, the code didn't work but it helped me find a solution. What i did was i changed the KERNEL entry for

Code:
# permissions for IDE CD devices
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", GROUP="floppy", MODE="0660"
To

Code:
# permissions for IDE CD devices
BUS="ide", KERNEL="hdc", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", GROUP="cdrom", MODE="0660"
and it now works.
 
  


Reply



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
mount: wrong fs type, bad option, bad superblock...(cdrom,dvd and floppy) SpItoS Mandriva 14 11-12-2004 02:27 PM
Kmail links open to wrong destination path tigerflag Slackware 2 12-30-2003 10:43 PM
Kmail links open to wrong destination path tigerflag Linux - Software 0 12-28-2003 01:54 PM
posessed cdrom that forces restart Trinity22 Linux - Hardware 1 08-08-2003 07:27 AM
fstab and cdrom links - hdc or cdrom? tunedLow Linux - Newbie 5 12-21-2001 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration