LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   lost cdrom access in new kernel (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/lost-cdrom-access-in-new-kernel-164155/)

tlarolle 03-30-2004 09:58 AM

lost cdrom access in new kernel
 
Hello everyone, I've just purchased a IBM T41. I've been using debian for about 8 months now , so i've try to upgrade to the new 2.6.4 kernel. Everything went well except for the cdrom. I know in the new kernel you don't need to do scsi emulation to use it. So i compiled it as a module. I can do a hdparm -i /dev/hdc and get my cdrom info. But when i mount it i get this:

"mount: block device /dev/hdc is write protected, mounting read-only"
"mount: no medium found"

So here some stats:
cdrom model: TOSHIBA DVD-ROM SD-R9012

i'm running grub and not lilo so i'm not sure if there's a spot where i need to remove the scsi emulation line.

can someone help?

I can post my .config file if needed.

this might help my /etc/modules
Code:

sr_mod
ide-cd
agpgart

lsmod give me this
Code:

e1000
joydev
evdev
rtc

i dont see ide-cd in there, could that be a problem???

skel 03-30-2004 10:16 AM

what command are you using to mount the drive?

this may be a dumb question, but is there a disc in the drive?

if there is a line along the lines of
Code:

append hdc=ide-scsi
in your lilo.conf, then remove it becuase that is the line that specifies the scsi emulation.
However, i suspect it will not be there becuase the ide_scsi module is not loaded (from your lsmod)


if you will not be burning cd's then you probably don't need the ide-cd module either (but i could be mistaken)

tlarolle 03-30-2004 10:20 AM

i'm using "mount -t iso9660 /dev/hdc /cdrom" to mount my crdom.


I'm not using lilo, i'm using grub so i'm not sure if that will affect me. I would like to eventually burn cd but getting it to read is good too.

well i went to /etc/modutils/ and remove the following line from "idecd_opts"
"options ide-cd ignore=hdc"

then rebooted, mount the cdrom and it work.

Although i'm still getting the "/dev/hdc is write-protected, mounting read-only". It's recognizing that it's an iso cdrom and i cant burn ? I wonder if i insert a blank cdr will it give me the same message?

skel 03-30-2004 10:20 AM

Quote:

Originally posted by skel
if you will not be burning cd's then you probably don't need the ide-cd module either (but i could be mistaken)
I should rephraze this: the drive is not a burner, so you probably don't need the ide-cd module :)

skel 03-30-2004 10:24 AM

ok, with grub i think you just have to remove the 'hdc=ide-scsi' if it exists

look at this:
http://www.pcf.sinica.edu.tw/123/ide-scsi.html

it shows a grub.conf both with and without scsi emulation

tlarolle 03-30-2004 10:32 AM

Well from what i heard you're suppose to be able to burn without using scsi emulation in new kernel 2.6.


Plus that page info says to append this "options ide-cd ignore=hdd" to the grub menu. I just took that line out.

I guess my cdrom access problem is solved. Next try to burn. I'm sure i'll have more newbies question soon too come.

Thanx for all the help SKEL

skel 03-30-2004 10:38 AM

no problem.

yup, with the new 2.6 kernels ide-scsi is no longer needed. I think you need to use the ide-cd module though.

i'm a lilo user, but i think all you have to do is add 'hdc=ide-cd' to the line with 'kernel' in your grub.conf file and it will load the ide-cd module.

then if you want to use cdrecord do this:
cdrecord -dev=ATAPI -scanbus and it will give you the info for your drive.

then when you want to burn use:
cdrecord -dev=ATAPI:x,x,x ....

i don't know if you will be using cdrecord or not.

tlarolle 03-30-2004 11:02 AM

sweet deal, went to my /boot/grub/ folder and edited the menu.lst file.

and added the "hcd=ide-cd" to my kernel line. Now i do a mount /cdrom, it give me no complaint. When i get some times i'll have to try out cd burning. I'll let you know how it goes.


All times are GMT -5. The time now is 05:36 PM.