Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My dvd-rom disapeared
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Sat Dec 23, 2006 5:13 am    Post subject: My dvd-rom disapeared Reply with quote

So the other day I went to use my cdrom only to descover it wasn't there. I figured maybe I changed something in my kernel but I tried my last 2 kernels and no luck. this is from my dmesg:
Code:

ide0: Found Apple UniNorth ATA-6 controller, bus ID 3, irq 39
Probing IDE interface ide0...
hda: FUJITSU MHT2060AT, ATA DISK drive
hda: Enabling Ultra DMA 5
ide0 at 0xe102a000-0xe102a007,0xe102a160 on irq 39
ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 24
Probing IDE interface ide1...
hdc: MATSHITADVD-R UJ-825, ATAPI CD/DVD-ROM drive
hdc: Enabling MultiWord DMA 2
ide1 at 0xe101e000-0xe101e007,0xe101e160 on irq 24
hda: max request size: 512KiB
hda: 117210240 sectors (60011 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
hda: cache flushes supported
 hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6


but there is no /dev/hdc or /dev/dvd or /dev/cdrom. It works fine if I boot Tiger. I'm not sure what I did but I would appreciate any input you guys have on this.
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat Dec 23, 2006 10:46 am    Post subject: Reply with quote

I assume you're using 2.6.x kernel. Look for issues with udev - did you update it or changed something related recently?
Back to top
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Sun Dec 24, 2006 2:11 am    Post subject: Reply with quote

I tried it with 2.6.18-gentoo-r3, 2.6.18-gentoo and 2.6.17-gentoo-r7 when I noticed it didn't work I had probably not used the drive in at least 2 weeks I rebuld and update the kernel all the time. I could've compiled it 5 or 6 times since the last time I used the drive. I'm thinking you could be on to something with udev; as from my dmesg to me it looks like the drive is recognized fine and called hdc but /dev/hdc never gets created. Is there a way to check if it is udev? I have made udev rules for my iPod and psp but never for the cdrom and all the tutorials I read involved querying an existing device to get the information I needed to write a rule. how would I do this if it never get's created. is there some kind of test I can do to see if udev is functioning properly?
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sun Dec 24, 2006 8:03 am    Post subject: Reply with quote

Unfortunately I don't know about some generic test for udev, but here are the questions I would use to diagnose your peoblem:

1. Are you sure you updated your config files correctly (etc-update or dispatch-conf)? It could cause a problem if you updated udev.

2. What version of udev do you have?

3. Do you use device tarball with udev or order it to create all device nodes dynamically (RC_DEVICE_TARBALL)?

4. Do you load your cd/dvd-rom drive kernel module using modules.autoload.d (if it's a module)?

Make sure you read gentoo udev guide and article about udev on gentoo-wiki.
Back to top
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Mon Dec 25, 2006 12:00 am    Post subject: Reply with quote

Thank you for your help. :)

1.) I always do an 'etc-update' after an emerge if it tells me to. I usually just let it write over any file it wants; unless it's something I remember editing. I never heard of 'dispatch-conf' is this something I should do as well? I didn't intentionaly update udev but I tend to emerge things when I sleep so it could've happened.

2.)
Code:

*  sys-fs/udev
      Latest version available: 103
      Latest version installed: 079-r1
      Size of files: 195 kB
      Homepage:      http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
      Description:   Linux dynamic and persistent device naming support (aka userspace devfs)
      License:       GPL-2


3.) Not as far as I can tell:
Code:

 cat /etc/conf.d/rc | grep RC_DEVICE_TARBALL     
RC_DEVICE_TARBALL="no"


4.) I don't use any modules. I compile everything in.

I've re-read 'Writing udev rules' http://www.reactivated.net/writing_udev_rules.html and tried to write a rule for the drive like this:

KERNEL=="hdc", NAME="superdrive", SYMLINK+="dvd"

thinking that since it shows up in dmesg as 'hdc' it might work, but it doesn't. :(
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 25, 2006 2:04 am    Post subject: Reply with quote

It does look like you haven't updated udev (the latest stable is 087-r1). Please try this version and see if it helps.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Mon Dec 25, 2006 9:04 am    Post subject: Reply with quote

I upgraded to udev-087-r1, but with the same results as the old version.
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Mon Dec 25, 2006 9:11 am    Post subject: Reply with quote

johnson_steve wrote:
I never heard of 'dispatch-conf' is this something I should do as well?


No, it's just a replacement for etc-update. Many people (including me) find dispatch-conf more convenient.

Okay, so back to your problem - I would workaround it by using the device tarball and creating device node manually. You will have to find out what major and minor device numbers for /dev/hdc should be. I can try to serach for something about it, but I hope that clue will help you.

Finally, I see that a developer reads this thread, so maybe he will be able to find a better solution.
Back to top
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Mon Dec 25, 2006 6:53 pm    Post subject: Reply with quote

I'll give it a try.
Back to top
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Wed Dec 27, 2006 1:42 am    Post subject: Reply with quote

O.K. I would have posted this lastnight but the forum was down :( I set:

Code:

RC_DEVICE_TARBALL="yes"


and did:
Code:

mknod /dev/hdc b 22 0


and now I have my drive back :) while it would be nice to know why udev sudenly quit creating the device node what works works. thank you.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Dec 28, 2006 10:50 pm    Post subject: Reply with quote

Glad that worked. You might want to try reverting that change and then re-emerging udev with config protect turned off. This will ensure that the udev configuration is overwritten with the latest version and might fix your problem.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum