View previous topic :: View next topic |
Author |
Message |
koelle Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/672302537419f596d00704.jpg)
Joined: 22 Sep 2004 Posts: 92 Location: Heidelberg, Germany
|
Posted: Mon Dec 27, 2004 11:47 am Post subject: udev and cdrom device |
|
|
Hey,
i got a problem with my cdrom device since i switched from devfsd to udev. Here's my fstab:
Quote: | /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user,exec,ro 0 0 |
When i try to mount it, i get the message that special device /dev/cdroms/cdrom0 doesn't exist. Where's the cdrom device located under udev??
I bet that I'll have the same problem with my cdburner and dvddevice. I have a CDRW/DVD Combo device. Here's my fstab entries for cdburner and dvd:
Quote: | /dev/cdroms/cdrom0 /mnt/dvd auto noauto,user,exec,ro 0 0
/dev/sr0 /mnt/cdrw auto noauto,user,exec,ro 0 0 |
Can someone help me? Thanks.
koelle |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rhill Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/15561531474b7621e21bc81.jpg)
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Mon Dec 27, 2004 12:07 pm Post subject: |
|
|
well, im no expert, but i can tell you that all my cdrom-type entries in /dev are symlinks to hdc or hdd. maybe try replacing /dev/cdroms/cdrom0 with /dev/hdc in fstab. are they ide (atapi) or scsi drives? if they were ide were you using scsi emulation to use them? and last question, are you tarring and rebuilding your dev tree? this is controlled in /etc/conf.d/rc what you want to have is
Code: | RC_DEVICE_TARBALL="no" |
my reasoning is maybe some links stuck around that shouldn't have, and that's screwing things up. if you have an ide cd burner, it shouldn't be a sd0 device |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
koelle Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/672302537419f596d00704.jpg)
Joined: 22 Sep 2004 Posts: 92 Location: Heidelberg, Germany
|
Posted: Mon Dec 27, 2004 12:23 pm Post subject: |
|
|
Hi,
i have the tarball set to "no". I just found out that i am able to mount my cdburner. Changing /dev/cdroms/cdrom0 to dev/hdc did not work. Got the same message (device hdc does not exist ...)
My device is a scsi device. It's somehow weird that /dev/hdc doesn't exist, because i have this in my grub.conf:
that's for my CDRW/DVD Combo device.
greetings koelle |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Zyne Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 08 Jun 2004 Posts: 334
|
Posted: Mon Dec 27, 2004 1:20 pm Post subject: |
|
|
run this cmd:
Code: |
$ ls -l /dev |grep -i hdc
|
it'll show you which nodes point to your cdrw...
you can of course to the same in /dev/cdroms
if no results come back, you should review your udev rules
edit: just read that it's a scsi device...
if it's scsi, you'll have to look for sda, sdb, sdc and so on (not sure though)
What I summed up above definitely works for IDE cdroms... dunno about scsi... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
koelle Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/672302537419f596d00704.jpg)
Joined: 22 Sep 2004 Posts: 92 Location: Heidelberg, Germany
|
Posted: Mon Dec 27, 2004 5:29 pm Post subject: |
|
|
Hi,
ls -l /dev |grep -i hdc doesn't work. I looked through my udev rules file (/etc/udev/rules.d/50-udev.rules). Here's what might have something to do with my cdrom device:
Quote: | # cdrom symlinks and other good cdrom naming
BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
BUS="scsi", KERNEL="sr[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
# devfs-names for ide-devices (uncomment only one)
# /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}" |
greetings koelle |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dsd Developer
![Developer Developer](/images/ranks/rank-dev.gif)
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Mon Dec 27, 2004 6:22 pm Post subject: |
|
|
is ide-cd loaded or compiled in? what happens if you disable ide-scsi? (its no longer needed in 2.6) _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Sat Feb 05, 2005 9:18 am Post subject: |
|
|
bumping this topic, because i have this problem after a fresh stage "1 on 3" installation ( https://forums.gentoo.org/viewtopic.php?t=274968 ). My CDROM is a ide cdrom, which the liveCD detected as /dev/hdc, but the hdc device is no longer around after I emerged udev. Regardless of RC_DEVICE_TARBALL="no" or "yes", the hdc device refuses to appear. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robfantini Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Mario/Mario_-_Mario3.gif)
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Sat Feb 05, 2005 7:22 pm Post subject: |
|
|
try this as it solved missing /dev/snd and /dev/hdb1 hdb2 b3 entries.
1- rm /dev/.devfsd
2- reboot |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Sat Feb 05, 2005 10:54 pm Post subject: |
|
|
Well, i don't have a /dev/.devfsd file.
I did a ls -a /dev/ and found a directory .udevdb/ and .udev file. Tried removing them. That didn't solve the problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robfantini Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Mario/Mario_-_Mario3.gif)
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Sat Feb 05, 2005 11:02 pm Post subject: |
|
|
Well removing the .devfsd file may not have been what solved my problem.
Last night I had upgraded udev to udev-051 ...
That may have solved the problem i was having with missing /dev entries. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Sun Feb 06, 2005 12:05 am Post subject: |
|
|
But I already have udev-051.
Code: | kimchi@dev ~ $ emerge -pv udev
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] sys-fs/udev-051 (-selinux) -static 0 kB
Total size of downloads: 0 k |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robfantini Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Mario/Mario_-_Mario3.gif)
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Sun Feb 06, 2005 12:45 am Post subject: |
|
|
well I'm not sure exactally what fixed my problem. must of been a combination of a few things.
I've RC_DEVICE_TARBALL="yes"
If you want I could send a dev.tar of /dev .. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Sun Feb 06, 2005 7:31 am Post subject: the mystery of the disappearing /dev/hdc |
|
|
The strange thing is that right in the first boot after the install, there were lots more device files in /dev/ . And hdc was one of them!
But when I tried to mount /mnt/cdrom, it gave me errors: if I defined /dev/cdroms/cdrom0 as the device to mount in /etc/fstab , I got "file not found"; when I changed the device to /dev/hdc , I got the error Code: | hdc is not a valid block device |
That was with Code: | RC_DEVICES="auto"
RC_DEVICE_TARBALL="yes" | in /etc/conf.d/rc, and sadly, even the hdc device disappeared after I changed to RC_DEVICES="udev". I have not been able to get the device back. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robfantini Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Mario/Mario_-_Mario3.gif)
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Sun Feb 06, 2005 9:44 am Post subject: |
|
|
did you try booting devfs instead of udev ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Sun Feb 06, 2005 11:42 am Post subject: |
|
|
No. I use udev right from the start. I've installed Gentoo this way about 5 times already, and this is the first time this problem pops up. Strange... ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lytenyn n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/21416105441deff3e3b604.png)
Joined: 29 Jan 2004 Posts: 44
|
Posted: Sun Feb 06, 2005 12:32 pm Post subject: |
|
|
I had this problem once and all I forgot was to load the cdrom-support, try:
(but as you use ide-scsi (what for?), perhaps you need another module)
udev will automagically create the device nodes, once you have the corresponding module loaded. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robfantini Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Mario/Mario_-_Mario3.gif)
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Wed Feb 09, 2005 3:27 am Post subject: |
|
|
There is an update to UDEV which may help.
[ udev-052 ]
It includes a new /etc/udev/scripts/cdsymlinks.sh , which may solve the problem.
In case you don't already have this set, add this to /etc/portage/package.keywords:
sys-fs/udev ~x86 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
toon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Jan 2003 Posts: 69 Location: The Netherlands
|
Posted: Sun Feb 13, 2005 3:51 pm Post subject: |
|
|
Hi, you probably still have something like this in your kernel arguments:
Take it out and reboot.
That should solve your problem, I hope.
Regards,
Toon. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|