LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices



Reply
 
Search this Thread
Old 07-02-2009, 06:30 PM   #16
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0

# ls -l /dev/cdrom
Code:
ls: cannot access /dev/cdrom: No such file or directory
 
Old 07-03-2009, 11:13 AM   #17
NathanZachary
Gentoo support team
 
Registered: May 2009
Posts: 21

Rep: Reputation: 17
As Neddy pointed out, check to see if you have a /dev/sr0. If you don't, I'm thinking you might not have included the appropriate (P/S)ATA controller support in your kernel.
 
Old 07-03-2009, 05:26 PM   #18
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Please, post here the output of lspci.

Also, paste your kernel .config on pastebin.com or a similar service, and let us a link to it here.
 
Old 07-04-2009, 06:31 AM   #19
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
No, I don't have a /dev/sr0

# lspci
Code:
00:00.0 Host bridge: ALi Corporation M1697 HTT Host Bridge
00:01.0 PCI bridge: ALi Corporation PCI Express Root Port
00:02.0 PCI bridge: ALi Corporation PCI Express Root Port
00:03.0 PCI bridge: ALi Corporation PCI Express Root Port
00:04.0 PCI bridge: ALi Corporation PCI Express Root Port
00:11.0 PCI bridge: ALi Corporation M5249 HTT to PCI Bridge
00:12.0 Ethernet controller: ALi Corporation ULi 1689,1573 integrated ethernet. (rev 60)
00:13.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:13.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:13.2 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:13.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01)
00:14.0 Audio device: ALi Corporation High Definition Audio/AC'97 Host Controller (rev 01)
00:15.0 ISA bridge: ALi Corporation PCI to LPC Controller (rev 10)
00:15.1 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
00:16.0 IDE interface: ALi Corporation M5229 IDE (rev c7)
00:16.1 IDE interface: ALi Corporation ULi M5288 SATA
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation G71 [GeForce 7950 GT] (rev a1)
Where can I find my .config?
 
Old 07-04-2009, 07:54 AM   #20
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Quote:
Originally Posted by skalman93 View Post
Where can I find my .config?


If you are not sure, you can try this:


Code:
zcat /proc/config.gz > config.txt
If all went well, you should have a copy of your running kernel configuration in config.txt, then you can post it to pastebin or whatever.
 
Old 07-04-2009, 08:01 AM   #21
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
skalman93,

Your drive controller chip is
Code:
00:16.0 IDE interface: ALi Corporation M5229 IDE (rev c7)
00:16.1 IDE interface: ALi Corporation ULi M5288 SATA
with that information we can check your kernel settings.

The steps are
Code:
cd /usr/src/linux
make menuconfig
to see and change options. Under
Code:
Device Drivers  --->
look for
Code:
 < > ATA/ATAPI/MFM/RLL support  --->
that setting must be off.
If you have any /dev/hd... device names in /etc/fstab or in grub.conf they will need to be changed. I'll cover that later.
In the
Code:
SCSI device support  --->
menu, set
Code:
  │    < > RAID Transport Class                                          │ │  
  │ │    -*- SCSI device support                                           │ │  
  │ │    < > SCSI target support                                           │ │  
  │ │[*] legacy /proc/scsi/ support                                    │ │  
  │ │        *** SCSI support type (disk, tape, CD-ROM) ***                │ │  
  │ │    <*> SCSI disk support                                             │ │  
  │ │    < > SCSI tape support                                             │ │  
  │ │    < > SCSI OnStream SC-x0 tape support                              │ │  
  │ │    <*> SCSI CDROM support                                            │ │  
  │ │    [ ]   Enable vendor-specific extensions (for SCSI CDROM)          │ │  
  │ │    <*> SCSI generic support                                          │ │  
  │ │    < > SCSI media changer support                                    │ │  
  │ │        *** Some SCSI devices (e.g. CD jukebox) support multiple LUNs │ │  
  │ │[*] Probe all LUNs on each SCSI device
all other options on that menu should be off as you don't need them.
If they are not off, you will build options you don't need but it otherwise harmless. The key things here are
Code:
<*> SCSI disk support
<*> SCSI CDROM support
all your devices will appear with SCSI /dev/sd.. names, even if they are actually PATA devices.
Go back up a menu level and find
Code:
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
Turn it on if its off and go into the menu. In that menu, choose only
Code:
[*]   ATA ACPI Support
<*>   AHCI SATA support[*]   ATA SFF support
<*>     ALi PATA support
Save the changes and rebuild and reinstall your kernel in the normal way. If your are a genkenrel user, yuo need to make the changes after genkernel has started, by add int the
Code:
--menuconfig
option to its command line.

These changes will give all your storage devices SCSI names, which will affect booting if your hard drive is currently named like /dev/hdX. In /etc/fstab *and* in /boot/grub/grub.conf you need to change all instances of /dev/hdX to /dev/sdX (the h to an s)

When you boot into your new kernel you will have a /dev/sr0 which will be your CDROM. udev should have made the /dev/cdrom symlink so everything 'just works'.
If you currently use hdparm to set up /dev/hd.. parameters, you may see some boot errors as the SCSI standard demands that some features that are optional on PATA are fixed in SCSI. e.g. DMA. It can no longer be off.
 
Old 07-05-2009, 09:51 AM   #22
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Allright, I did what you said NeddySeagoon. I still don't have a /dev/cdrom or a /dev/sr0 but the light on the drive flashes when I close the tray and this line was added to /etc/fstab when I booted the new kernel.

Code:
/dev/cdrom              /media/cdrom    auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
Quote:
Originally Posted by i92guboj View Post
If you are not sure, you can try this:


Code:
zcat /proc/config.gz > config.txt
If all went well, you should have a copy of your running kernel configuration in config.txt, then you can post it to pastebin or whatever.
I tried that, but I don't have any /proc/config.gz

Last edited by skalman93; 07-05-2009 at 09:59 AM.
 
Old 07-05-2009, 10:16 AM   #23
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Try to look in /usr/src/<whatever kernel you are using>/.config

uname -a should tell what kernel version you are using. But it's really strange that you don't have /proc/config.gz, unless you disabled it manually (and then you should know you did).
 
Old 07-05-2009, 10:22 AM   #24
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
skalman93,

Something went wrong with either my instructions or you following them. The kernel will not have changed /etc/fstab, so the /dev/cdrom line was there before that.

First, lets look at your running kernel. Post the output of
Code:
uname -a
The date and time that shows is the build date of the running kernel. Does it look correct ?

Now lets check your kernels. Run
Code:
ls -l /boot
and post the output. Does it include a directory called grub?
If not, it should be empty. If you just have your new kernel here, you forgot to mount /boot before your kernel was installed.

Now run
Code:
mount /boot
ls -l /boot
This may look quite different. Again look for the grub directory that shows that this is your real /boot.
Post the output.

If thats the problem, you need only repeat the kernel install steps.
 
Old 07-05-2009, 10:44 AM   #25
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I just remembered one thing...

I had to add this to the kernel boot line for it to detect the ata dvd correctly, I don't know the reason of the background, but... It might worth a try.

Code:
atapi_enabled=1
In grub.conf would look like this:

Code:
title vmlinuz-2.6.28.10
        root (hd0,4)
        kernel /vmlinuz-2.6.28.10 3 root=/dev/sdb8 lapic panic=5 atapi_enabled=1 video=uvesafb:1600x1200-32,mtrr:3,ywrap
 
Old 07-05-2009, 03:21 PM   #26
skalman93
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
It works! I enabled
Code:
[*]   Enable vendor-specific extensions (for SCSI CDROM)
Just below the SCSSI CDROM Support.
Thanks alot! :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly installed DVD drive won't boot perfectly good FC8 DVD cwlj Fedora - Installation 8 04-13-2008 12:37 AM
xp/gentoo dual boot , gentoo on usb external hard drive gentoo2006 Linux - Laptop and Netbook 2 09-16-2007 12:55 PM
DVD Drive Weirdness - Debian (possibly grub) makes my dvd drive disappear Daws Debian 8 08-26-2007 05:50 PM
which DVD player can play DVD from hard drive *and* support DVD Menu ? tho_x_tran Linux - Software 16 11-16-2006 03:00 PM
dvd-rom drive won't play movies and dvd burner won't record calble Linux - Hardware 1 08-09-2004 08:35 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration