| Author |
Message |
Chandra
Joined: 12 Apr 2012 Posts: 13
|
Posted: Mon 23 Apr 2012, 08:19 Post subject:
Recognising media device.... optical input failed |
|
That's it. The subject pretty explains it well. I'm getting this weird failure at bootup "Recognising media device... optical input". The strange thing is that I'm having no trouble with any of the optical device, CD/DVD (I've them both) but it keeps me annoying at bootup. I don't exactly remember what configuration caused it but the last thing I do remeber is that I listed some of the modules I didn't want to load as blacklisted. I even tried reloading those modules(each of them) but I'm still getting the failed message.
Besides, google revealed that this is not a frequent problem and obvious causes is far from any changes I made to my PC. A little hint here would be highly appreciated.
Regards,
Chandra
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2035 Location: World_Hub
|
Posted: Mon 23 Apr 2012, 08:30 Post subject:
|
|
Hi Chandra- to get the best possible reply, always include the system you're running.
|
|
Back to top
|
|
 |
Chandra
Joined: 12 Apr 2012 Posts: 13
|
Posted: Mon 23 Apr 2012, 09:19 Post subject:
|
|
Oh right, thanks for the link to my previous thread. For doublet, it's MACPUP 525, full-installation, running XFCE, and an update: JWM Removed.
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Mon 23 Apr 2012, 09:34 Post subject:
|
|
look in /etc/rc.d/rc.sysinit at the last 3/4 part of the script .
there is a status variable collecting 0 or 1 and if STATUS=$((STATUS+$?)) becomes 1 it says failed .
you might boot with something like debug or loglevel=4 (-7)
| Code: | | kernel /pup/vmlinuz debug pdev1=sdb1 psubdir=pup |
in the grub menu to get more hints
Also look in /tmp/bootsysinit.log .
|
|
Back to top
|
|
 |
Chandra
Joined: 12 Apr 2012 Posts: 13
|
Posted: Mon 23 Apr 2012, 09:48 Post subject:
|
|
Ah, forgot to mention. I did check the /etc/rc.d/rc.sysinit but it didn't give me any clue of what might be wrong. I mean, it's just the script. The whole operation is carried out within the kernel, more specifically within particular modules, isn't it? Maybe debugging the module would reveal some clue. I'll check out with debug parameters during boot.
And besides, doesn't it feel strange to you that disregarding the failure, each optical device is working fine? If it wasn't, it would have been rather easier for me to infer that either the driver/module or the device itself isn't working. How much is the chance that some configuration could have caused this? Anyway, I'll try some debugging first. Thanks for the clue.
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Mon 23 Apr 2012, 17:04 Post subject:
|
|
rc.sysinit checks for media devices using these commands :
grep '^drive name:' /proc/sys/dev/cdrom/info
readlink /dev/cdrom
readlink /dev/dvd
cat /etc/cdburnerdevice
grep '^Can read DVD' /proc/sys/dev/cdrom/info
grep '^Can write CD' /proc/sys/dev/cdrom/info
hdparm -d1 /dev/$DVDTYPE
*
On my old 4.3 rc.sysinit it actually does not collect any return values from these commands , neither from
ln -sf /dev/$CDTYPE /dev/cdrom
ln -sf /dev/$DVDTYPE /dev/dvd
echo -n "$CDBURNERTYPE" > /etc/cdburnerdevice
*
There is a part for mousedevice and rc.country in this MEDIA part at my side and actually
/etc/rc.d/rc.country ;STATUS=$(( $STATUS + $? )) #this asks for keyboard layout.
status_func $STATUS
which is the only possibility to pass a 1 or 0 to status_func .
So it might be possible that your country setting is not working as it is intended by the script , but everything else is not checked if it worked or not
But debug the driver Good Luck
|
|
Back to top
|
|
 |
Chandra
Joined: 12 Apr 2012 Posts: 13
|
Posted: Wed 25 Apr 2012, 05:13 Post subject:
Solved |
|
Found a better solution lately. The script that checks for optical media doesn't seem to do anything useful so I gave a shot and removed it. It's amazing to gain few seconds speed at bootup that too without having any problem with any of the media device.
Initially, I debugged the script to make sure everything is okay. I even manually tried to edit the script so that the STATUS sets to 1 but in vain. It still fails to recognize media. Besides, the country setting seems to be fine since there is no change to it. Anway, removed the script and I'm happy now, at least for the time being.
Thanks for your help!
|
|
Back to top
|
|
 |
|