Re: [gentoo-user] Re: /dev/cdrom has gone!
thanks to all... i finally get the cdrom work, not perfectly though, i change the BIOS setting that use S-ATA only instead and keep P-ATA enabled, which makes cdrom the primary 1st, the sata drive recognized as primary third. (i hate such layout !! i prefer the hard disk to be the primary first and recognized as hda). at last, the sata drive was recognized as sda, so that's the whole story, now i'm wondering what on earth are the changes made with those BIOS settings, and how it affect the kernel? (because whatever i configure, the M$ Windows just works perfectly). i would not think the problem solved already, i'll take a look at this later. thanks again. daniel On Sat, Sep 03, 2005 at 02:35:51PM -0400, Greg Yasko wrote: On Sat, 03 Sep 2005 18:19:37 +0800, danielhf wrote: i upgrade my system to use udev instead of previously known devfs, and leave the devfs option blank while configure the kernel, but recently, i found i could not mount my cdrom, there is no such device at all! the /dev/cdrom and the like has gone! any ideas please, thanks a lot. - daniel I had the same problem several months ago when I upgraded to the 2.6 kernel and udev. Just boot off the livecd, mount the / partition and delete .devfsd from the /dev directory. That should do it. Hope this helps. -G.Y. -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
On Monday 05 September 2005 09:56 am, [EMAIL PROTECTED] wrote: thanks to all... i finally get the cdrom work, not perfectly though, i change the BIOS setting that use S-ATA only instead and keep P-ATA enabled, which makes cdrom the primary 1st, the sata drive recognized as primary third. (i hate such layout !! i prefer the hard disk to be the primary first and recognized as hda). at last, the sata drive was recognized as sda, so that's the whole story, now i'm wondering what on earth are the changes made with those BIOS settings, and how it affect the kernel? (because whatever i configure, the M$ Windows just works perfectly). i would not think the problem solved already, i'll take a look at this later. thanks again. daniel On Sat, Sep 03, 2005 at 02:35:51PM -0400, Greg Yasko wrote: On Sat, 03 Sep 2005 18:19:37 +0800, danielhf wrote: i upgrade my system to use udev instead of previously known devfs, and leave the devfs option blank while configure the kernel, but recently, i found i could not mount my cdrom, there is no such device at all! the /dev/cdrom and the like has gone! any ideas please, thanks a lot. - daniel I had the same problem several months ago when I upgraded to the 2.6 kernel and udev. Just boot off the livecd, mount the / partition and delete .devfsd from the /dev directory. That should do it. Hope this helps. -G.Y. I just had a similar problem after I updated udev (I think). I run ~x86 systems, always kept current, so I expect a few minor hiccups, even though I'm extremely careful with etc-update. There seems to be some weird stuff going on with udev, at least on my system, but after a lot of reading on the formum, and trying many things, I tried changing my fstab line /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,rw,user 0 0 to this. /dev/hdc/mnt/cdrom iso9660 noauto,rw,user 0 0 I think some rule in the new udev changed, and it wasn't creating cdroms and cdrom0 anymore- only /dev/hdc. I looked in /dev, and sure enough, the cdrom and cdrw links point to the hdc block device. Anyway, whatever it was, changing the fstab line now lets me mount cdroms normally, as before. Robert Crawford -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
On Monday 05 Sep 2005 15:31, Robert Crawford wrote: I just had a similar problem after I updated udev (I think). I run ~x86 systems, always kept current, so I expect a few minor hiccups, even though I'm extremely careful with etc-update. There seems to be some weird stuff going on with udev, at least on my system, but after a lot of reading on the formum, and trying many things, I tried changing my fstab line /dev/cdroms/cdrom0/mnt/cdrom iso9660 noauto,rw,user 0 0 to this. /dev/hdc /mnt/cdrom iso9660 noauto,rw,user 0 0 I think some rule in the new udev changed, and it wasn't creating cdroms and cdrom0 anymore- only /dev/hdc. I looked in /dev, and sure enough, the cdrom and cdrw links point to the hdc block device. Anyway, whatever it was, changing the fstab line now lets me mount cdroms normally, as before. Robert Crawford I assume that as you are running ~x86 you have upgraded to gentoo-sources version 2.6.13. In that version devfs has been removed (well the config option has gone, the code is still there). The /dev/cdroms/cdrom0 style of device file name is a part of devfs, so if with earlier kernels you still had devfs enabled in the kernel, despite running udev, then you would have gotten the /dev/cdroms/cdrom0 link. I am running x86 and running with udev but with devfs still in the kernel. Yesterday I disabled devfs on one of the machines so that I could see what would break in preparation for 2.6.13 moving to x86. I experienced exactly your problem of /dev/cdroms/cdrom0 disappearing. Fortunately the solution is simple, as you describe above. Steve -- Steve EvansE-mail: mailto:[EMAIL PROTECTED] WEB:http://www.gorbag.com Registered Linux user #217906: http://counter.li.org Public Encryption Key: http://www.gorbag.com/public-key.html -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
On Monday 05 September 2005 10:51 am, Steve Evans wrote: On Monday 05 Sep 2005 15:31, Robert Crawford wrote: I just had a similar problem after I updated udev (I think). I run ~x86 systems, always kept current, so I expect a few minor hiccups, even though I'm extremely careful with etc-update. There seems to be some weird stuff going on with udev, at least on my system, but after a lot of reading on the formum, and trying many things, I tried changing my fstab line /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,rw,user 0 0 to this. /dev/hdc/mnt/cdrom iso9660 noauto,rw,user 0 0 I think some rule in the new udev changed, and it wasn't creating cdroms and cdrom0 anymore- only /dev/hdc. I looked in /dev, and sure enough, the cdrom and cdrw links point to the hdc block device. Anyway, whatever it was, changing the fstab line now lets me mount cdroms normally, as before. Robert Crawford I assume that as you are running ~x86 you have upgraded to gentoo-sources version 2.6.13. In that version devfs has been removed (well the config option has gone, the code is still there). The /dev/cdroms/cdrom0 style of device file name is a part of devfs, so if with earlier kernels you still had devfs enabled in the kernel, despite running udev, then you would have gotten the /dev/cdroms/cdrom0 link. I am running x86 and running with udev but with devfs still in the kernel. Yesterday I disabled devfs on one of the machines so that I could see what would break in preparation for 2.6.13 moving to x86. I experienced exactly your problem of /dev/cdroms/cdrom0 disappearing. Fortunately the solution is simple, as you describe above. Steve -- Steve EvansE-mail: mailto:[EMAIL PROTECTED] WEB:http://www.gorbag.com Registered Linux user #217906: http://counter.li.org Public Encryption Key: http://www.gorbag.com/public-key.html Steve, What you say makes perfect sense, but I'm still not sure I have an understanding of what has changed. I always compile my own kernels from vanilla, and patches, so I haven't used gentoo-sources in at least 2 years. My current kernel is 2.6.13-gvivid (based on 2.6.13 final), which works great, and is where I first noticed this cdrom problem. I did notice that devfs had finally been removed. However, when I boot with other previous kernels (2.6.12.x- vivid and nitro, and 2.6.12.3 vanilla), the problem remains. This leads me to believe that somehow it's the newest udev version causing and some kind of compatibility issue with recent kernels. I haven't investigated this much, but it didn't happen with the previous udev version. Anyway, for now I'm content with the fstab hdc edit resolution, and happy to be rid of devfs.. Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
Page 5-6 of a long udev thread is good reading on recent udev problems. Robert http://forums.gentoo.org/viewtopic-t-355069-postdays-0-postorder-asc-start-100.html On Monday 05 September 2005 10:51 am, Steve Evans wrote: On Monday 05 Sep 2005 15:31, Robert Crawford wrote: I just had a similar problem after I updated udev (I think). I run ~x86 systems, always kept current, so I expect a few minor hiccups, even though I'm extremely careful with etc-update. There seems to be some weird stuff going on with udev, at least on my system, but after a lot of reading on the formum, and trying many things, I tried changing my fstab line /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,rw,user 0 0 to this. /dev/hdc/mnt/cdrom iso9660 noauto,rw,user 0 0 I think some rule in the new udev changed, and it wasn't creating cdroms and cdrom0 anymore- only /dev/hdc. I looked in /dev, and sure enough, the cdrom and cdrw links point to the hdc block device. Anyway, whatever it was, changing the fstab line now lets me mount cdroms normally, as before. Robert Crawford I assume that as you are running ~x86 you have upgraded to gentoo-sources version 2.6.13. In that version devfs has been removed (well the config option has gone, the code is still there). The /dev/cdroms/cdrom0 style of device file name is a part of devfs, so if with earlier kernels you still had devfs enabled in the kernel, despite running udev, then you would have gotten the /dev/cdroms/cdrom0 link. I am running x86 and running with udev but with devfs still in the kernel. Yesterday I disabled devfs on one of the machines so that I could see what would break in preparation for 2.6.13 moving to x86. I experienced exactly your problem of /dev/cdroms/cdrom0 disappearing. Fortunately the solution is simple, as you describe above. Steve -- Steve EvansE-mail: mailto:[EMAIL PROTECTED] WEB:http://www.gorbag.com Registered Linux user #217906: http://counter.li.org Public Encryption Key: http://www.gorbag.com/public-key.html -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: /dev/cdrom has gone!
P-ATA only | S-ATA only | P-ATA S-ATA etc and some others. i use a Native Mode, so that my disk can be recognized as /dev/hdaXX instead of /dev/sdaXX. and P-ATA only but with S-ATA enabled. What's wrong about /dev/sdaX ? That's exactly how it should be. So disable that strange native-mode and instead enable the SATA driver in the SCSCI-driver section of your kernel. signature.asc Description: OpenPGP digital signature
[gentoo-user] Re: /dev/cdrom has gone!
unfortunetly, hdc does not exist either. and dmesg does not show anything about my cdrom or hdc. just odd. how about modprobe ide-cd ? signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: /dev/cdrom has gone!
On Sat, Sep 03, 2005 at 02:07:34PM +0200, Sven K?hler wrote: i alway build it into kernel, i already checked my config file, the BLK_DEV_IDECD=y is just there. besides, why there is a register dump while i reboot, the error occures at /etc/init.d/halt.sh right after Unmounting filesystems. hehe ;-(. broken... unfortunetly, hdc does not exist either. and dmesg does not show anything about my cdrom or hdc. just odd. how about modprobe ide-cd ? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well On Sat, Sep 03, 2005 at 02:07:34PM +0200, Sven K?hler wrote: i alway build it into kernel, i already checked my config file, the BLK_DEV_IDECD=y is just there. besides, why there is a register dump while i reboot, the error occures at /etc/init.d/halt.sh right after Unmounting filesystems. hehe ;-(. broken... unfortunetly, hdc does not exist either. and dmesg does not show anything about my cdrom or hdc. just odd. how about modprobe ide-cd ? -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
[EMAIL PROTECTED] wrote: On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well All my cdroms in /dev/cdroms/cdrom. May be...? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
Alex Korshunov wrote: [EMAIL PROTECTED] wrote: On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well All my cdroms in /dev/cdroms/cdrom. May be...? I didn't see the beginning of this thread so my question may be redundant. Did you (the OP) verify that the drive is still detected by the BIOS? -- Pluralitas non est ponenda sine necessitate - W. of O. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
my BIOS infomation shows my cdrom is at the third IDE primary, so i do: mknod -m 660 hde b 33 0 and later i tried mknod -m 660 hdc b 23 0 the output: hdc is not a valid block device no luck. hde failed either, i give it up. ;-( thanks for all help. daniel On Sat, Sep 03, 2005 at 04:53:57PM +0400, Alex Korshunov wrote: [EMAIL PROTECTED] wrote: On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well All my cdroms in /dev/cdroms/cdrom. May be...? -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
yes, it works just well in WindowsXP. it even works before i use udev. hehe i'm not sure it failed due to the udev, i have no idea now. On Sat, Sep 03, 2005 at 09:20:42AM -0400, Matt Randolph wrote: Alex Korshunov wrote: [EMAIL PROTECTED] wrote: On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well All my cdroms in /dev/cdroms/cdrom. May be...? I didn't see the beginning of this thread so my question may be redundant. Did you (the OP) verify that the drive is still detected by the BIOS? -- Pluralitas non est ponenda sine necessitate - W. of O. -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
On Saturday 03 September 2005 08:20, Matt Randolph wrote: Alex Korshunov wrote: [EMAIL PROTECTED] wrote: On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well All my cdroms in /dev/cdroms/cdrom. May be...? I didn't see the beginning of this thread so my question may be redundant. Did you (the OP) verify that the drive is still detected by the BIOS? having done some research yesterday on udev, specifically the gentoo udev howto, it was my understanding that udev did NOT create node files. those must exist and udev just manages the mappings to those files. that's what the tar/untar process on shutdown/boot takes care of. devfs, on the other hand DID take care of those files. the gentoo udev howto specifically gives a walkthrough on the steps necessary to switch from a hybrid udev/devfs system to a pure udev system. Have you looked at that document? Unfortunately, I don't remember the link at this moment, but I linked to it from the udev stuff at kernel.org. -- John Jolet Your On-Demand IT Department 512-762-0729 www.jolet.net [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
i did read that document, to find the doc is trivial. what i got is just similar. the udev just create the device files which were detected by kernel, and handle the operations like add or remove dynamically. i tried this feature with my usb devices already, i really like the way udev works. i could not found any info from the output of dmesg, so i think perhaps there is a problem on detecting the device, but not the problem of udev. thanks daniel On Sat, Sep 03, 2005 at 08:40:20AM -0500, John Jolet wrote: On Saturday 03 September 2005 08:20, Matt Randolph wrote: Alex Korshunov wrote: [EMAIL PROTECTED] wrote: On Sat, Sep 03, 2005 at 08:32:56PM +0800, [EMAIL PROTECTED] wrote: no error on reboot now, but i will try to switch to windows to see if the cdrom works well All my cdroms in /dev/cdroms/cdrom. May be...? I didn't see the beginning of this thread so my question may be redundant. Did you (the OP) verify that the drive is still detected by the BIOS? having done some research yesterday on udev, specifically the gentoo udev howto, it was my understanding that udev did NOT create node files. those must exist and udev just manages the mappings to those files. that's what the tar/untar process on shutdown/boot takes care of. devfs, on the other hand DID take care of those files. the gentoo udev howto specifically gives a walkthrough on the steps necessary to switch from a hybrid udev/devfs system to a pure udev system. Have you looked at that document? Unfortunately, I don't remember the link at this moment, but I linked to it from the udev stuff at kernel.org. -- John Jolet Your On-Demand IT Department 512-762-0729 www.jolet.net [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
050903 [EMAIL PROTECTED] wrote: my BIOS infomation shows my cdrom is at the third IDE primary, so i do: 'mknod -m 660 hde b 33 0' ... What happened in that case ? That ought to be what you want. ... and later i tried 'mknod -m 660 hdc b 23 0' the output: hdc is not a valid block device I changed over a couple of days ago have the correct devices in /dev . Are you using an upto-date kernel ( 2.6.12-gentoo-rnn ) ? -- ,, SUPPORT ___//___, Philip Webb : [EMAIL PROTECTED] ELECTRIC /] [] [] [] [] []| Centre for Urban Community Studies TRANSIT`-O--O---' University of Toronto -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
[EMAIL PROTECTED] wrote: i alway build it into kernel, i already checked my config file, the BLK_DEV_IDECD=y is just there. Are you really really sure? What do you have in /sys/bus/ide/drivers ? Daniel -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: /dev/cdrom has gone!
On Sat, 03 Sep 2005 18:19:37 +0800, danielhf wrote: i upgrade my system to use udev instead of previously known devfs, and leave the devfs option blank while configure the kernel, but recently, i found i could not mount my cdrom, there is no such device at all! the /dev/cdrom and the like has gone! any ideas please, thanks a lot. - daniel I had the same problem several months ago when I upgraded to the 2.6 kernel and udev. Just boot off the livecd, mount the / partition and delete .devfsd from the /dev directory. That should do it. Hope this helps. -G.Y. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
there are two items there: ide-cdrom ide-disk but just empty directories. ?? On Sat, Sep 03, 2005 at 06:45:21PM +0100, Daniel Drake wrote: [EMAIL PROTECTED] wrote: i alway build it into kernel, i already checked my config file, the BLK_DEV_IDECD=y is just there. Are you really really sure? What do you have in /sys/bus/ide/drivers ? Daniel -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: /dev/cdrom has gone!
i discover a something while examine my dmesg output. --Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 --ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx --Probing IDE interface ide0... --hda: ST380817AS, ATA DISK drive --Probing IDE interface ide1... --Probing IDE interface ide2... --Probing IDE interface ide3... --- there should be a cdrom detected here --Probing IDE interface ide4... --Probing IDE interface ide5... --ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 --hda: max request size: 1024KiB --hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63 --hda: cache flushes supported -- hda: hda1 hda2 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 now, maybe i can say it's a problem of detecting my driver for sure? there have been a lot of problems around since i use a SATA hard drive, and a common ATA cdrom, i spent a lot of time to find out the right CMOS configuration: P-ATA only | S-ATA only | P-ATA S-ATA etc and some others. i use a Native Mode, so that my disk can be recognized as /dev/hdaXX instead of /dev/sdaXX. and P-ATA only but with S-ATA enabled. is there any advice on how to config such stuff correctly? WindowsXP works with them just perfectly, and it's ok on my gentoo box before the udev comes out maybe. i remember... many thanks daniel On Sat, Sep 03, 2005 at 06:45:21PM +0100, Daniel Drake wrote: [EMAIL PROTECTED] wrote: i alway build it into kernel, i already checked my config file, the BLK_DEV_IDECD=y is just there. Are you really really sure? What do you have in /sys/bus/ide/drivers ? Daniel -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list