Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

/dev/cdrom automagically stopped working

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

/dev/cdrom automagically stopped working

  • Quote

Post by Crashed_Again » Wed Feb 11, 2004 8:23 am

Well, after I ran an update on a few things and changed my configuration files I came to find upon reboot that /dev/cdrom was a dead link. Its been working for about 3 months now with this kernel. Apparently etc-update messed up one of the config files.

dmesg shows that my cdrom drive is detected as /dev/hdc yet there is no /dev/hdc to be found. Apparently /dev/cdrom is a link to /dev/cdroms/cdrom which has dissapeared. I'm completly lost here.
Top
isoaga
Apprentice
Apprentice
User avatar
Posts: 206
Joined: Thu Oct 31, 2002 7:48 am
Location: Newcastle, Australia

  • Quote

Post by isoaga » Wed Feb 11, 2004 9:14 am

Hi, if the output of dmesg says your drive is detected as /dev/hdc i would think that it should exist in the /dev directory, you say it don't? What does the output of this show?

Code: Select all

ls -al /dev/ | grep hd
Also, etc-update will quite happily overwrite your /etc/fstab file if your not careful, so you may want to check in there too :)
Top
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

  • Quote

Post by Crashed_Again » Wed Feb 11, 2004 9:22 am

Code: Select all

#ls -al /dev/ | grep hd 
lr-xr-xr-x    1 root     root           32 Feb 11 03:27 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x    1 root     root           33 Feb 11 03:27 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x    1 root     root           33 Feb 11 03:27 hda2 -> ide/host0/bus0/target0/lun0/part2
lr-xr-xr-x    1 root     root           33 Feb 11 03:27 hda3 -> ide/host0/bus0/target0/lun0/part3
lr-xr-xr-x    1 root     root           32 Feb 11 03:27 hdb -> ide/host0/bus0/target1/lun0/disc
lr-xr-xr-x    1 root     root           33 Feb 11 03:27 hdb1 -> ide/host0/bus0/target1/lun0/part1
lr-xr-xr-x    1 root     root           33 Feb 11 03:27 hdb2 -> ide/host0/bus0/target1/lun0/part2
Actually etc-update did happily replace /etc/fstab. I had to fix it. Even if /etc/fstab was setup incorrectly I should still be getting /dev/cdrom right?
Top
isoaga
Apprentice
Apprentice
User avatar
Posts: 206
Joined: Thu Oct 31, 2002 7:48 am
Location: Newcastle, Australia

  • Quote

Post by isoaga » Wed Feb 11, 2004 9:31 am

could you post the sections of the dmesg output relating to the cd drive detection...

EDIT: are you using any scsi emulation, if so have you set any options in your kernel boot parameters (/dev/hdX=ide-scsi)? This may make the device show up as /dev/sr0 or something of that sort.
Top
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

  • Quote

Post by Crashed_Again » Wed Feb 11, 2004 9:40 am

Yes I'm passing:

hdc=ide-scsi

as a kernel boot parameter. Their is no /dev/sr0 either.
Top
isoaga
Apprentice
Apprentice
User avatar
Posts: 206
Joined: Thu Oct 31, 2002 7:48 am
Location: Newcastle, Australia

  • Quote

Post by isoaga » Wed Feb 11, 2004 9:45 am

ok, it would be great to see the dmesg output...
Top
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

  • Quote

Post by Crashed_Again » Wed Feb 11, 2004 10:30 am

Sorry forgot about that. This is all it mentions about the cdrom drive:

Code: Select all

hdc: GENERIC DVD DUAL 4XMax, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Top
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

  • Quote

Post by Crashed_Again » Thu Feb 12, 2004 1:09 am

If dmesg shows it as /dev/hdc shouldn't their actually be a /dev/hdc? I'm really confused. Perhaps I need a module loaded or something?
Top
isoaga
Apprentice
Apprentice
User avatar
Posts: 206
Joined: Thu Oct 31, 2002 7:48 am
Location: Newcastle, Australia

  • Quote

Post by isoaga » Thu Feb 12, 2004 10:59 am

have you changed kernels? also is it a burner? if so you could always move to the 2.6 kernel and do away with the scsi emulation. Other than that i don't know what the problem is, sorry.
Top
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

  • Quote

Post by Crashed_Again » Thu Feb 12, 2004 10:03 pm

I've been running the 2.6 kernel with the Andrew Mortenson patch set for a few months now(mm-sources). Everything has worked fine. It has to do with changing one of the .conf files after running etc-update. Which file is the question.

I remember one of the conf files changed was in /etc/modules.autoload.d but I don't think I had any modules listed to load automatically at boot anyway.

This has really crippled my system. I don't know what the problem is.

<EDIT>
I just remembered that etc-update also changed my /etc/group file. Anything in there that would make /dev/cdrom become a dead link?
</EDIT>
Top
Crashed_Again
n00b
n00b
User avatar
Posts: 45
Joined: Fri May 09, 2003 12:03 am
Contact:
Contact Crashed_Again
Website

  • Quote

Post by Crashed_Again » Fri Feb 13, 2004 11:12 am

Okay I may be on to something here. From other posts I've read it seems that /etc/devfsd.conf may have something to do with the problem. What is devfs? Maybe my conf file got messed up when I used etc-update.
Top
equilibrium
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Sun Jun 29, 2003 10:31 am
Location: UK
Contact:
Contact equilibrium
Website

  • Quote

Post by equilibrium » Sat May 15, 2004 1:17 pm

I seem to have the same problem :( etc-update also messed up my /etc/fstab and I restored it from backup.

I thought everything was ok until I tried using my cdrom :( there is no /dev/cdroms dir and it has dissapeared? :(

Code: Select all

# ls -al /dev/ | grep hd
lr-xr-xr-x    1 root     root           32 May 15 14:11 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x    1 root     root           33 May 15 14:11 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x    1 root     root           32 May 15 14:11 hdb -> ide/host0/bus0/target1/lun0/disc
lr-xr-xr-x    1 root     root           33 May 15 14:11 hdb1 -> ide/host0/bus0/target1/lun0/part1
lr-xr-xr-x    1 root     root           33 May 15 14:11 hdb2 -> ide/host0/bus0/target1/lun0/part2
lr-xr-xr-x    1 root     root           33 May 15 14:11 hdb3 -> ide/host0/bus0/target1/lun0/part3
lr-xr-xr-x    1 root     root           33 May 15 14:11 hdb4 -> ide/host0/bus0/target1/lun0/part4

Code: Select all

# dmesg | grep hd
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: WDC WD800BB-00CAA1, ATA DISK drive
hdb: WDC WD800JB-00FSA0, ATA DISK drive
hdc: PIONEER DVD-RW DVR-106D, ATAPI CD/DVD-ROM drive
hdd: GENERIC FREECOM32A, ATAPI CD/DVD-ROM drive
kernel 4.15.17-1-equk | i3wm | github
Top
equilibrium
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Sun Jun 29, 2003 10:31 am
Location: UK
Contact:
Contact equilibrium
Website

  • Quote

Post by equilibrium » Sat May 15, 2004 1:36 pm

I've fixed my problem :) was so easy and pretty much obvious :(.

All I did was add ide-scsi to modules.autoload again as etc-update seemed to mess that file up also :( I had already added nvidia but totally forgot about ide-scsi.
I also notices /etc/modules.autoload linked to the 2.4 kernel script so I remade it to link to 2.6

Code: Select all

rm /etc/modules.autoload
ln -s /etc/modules.autoload.d/kernel-2.6 /etc/modules.autoload

nano -w /etc/modules.autoload
add "ide-scsi"
lol :o
kernel 4.15.17-1-equk | i3wm | github
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic