LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-30-2004, 09:58 AM   #1
tlarolle
LQ Newbie
 
Registered: Mar 2004
Location: minnesota
Distribution: debian
Posts: 10

Rep: Reputation: 0
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???

Last edited by tlarolle; 03-30-2004 at 10:07 AM.
 
Old 03-30-2004, 10:16 AM   #2
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
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)
 
Old 03-30-2004, 10:20 AM   #3
tlarolle
LQ Newbie
 
Registered: Mar 2004
Location: minnesota
Distribution: debian
Posts: 10

Original Poster
Rep: Reputation: 0
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?

Last edited by tlarolle; 03-30-2004 at 10:24 AM.
 
Old 03-30-2004, 10:20 AM   #4
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
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
 
Old 03-30-2004, 10:24 AM   #5
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
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
 
Old 03-30-2004, 10:32 AM   #6
tlarolle
LQ Newbie
 
Registered: Mar 2004
Location: minnesota
Distribution: debian
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 03-30-2004, 10:38 AM   #7
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
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.
 
Old 03-30-2004, 11:02 AM   #8
tlarolle
LQ Newbie
 
Registered: Mar 2004
Location: minnesota
Distribution: debian
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



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
HELP! I lost my /dev/cdrom device wswartz Fedora 2 10-19-2004 08:19 PM
gerecom lost all ability to access the cdrom/dvd/cd-rw moby Linux - Laptop and Netbook 0 08-23-2004 03:15 PM
Cant access first cdrom after adding second cdrom Zero-0-Effect Slackware 2 02-18-2004 09:25 PM
Lost CDROM JoeDuncan Linux - Software 7 09-03-2003 06:53 PM
Lost control over cdrom. GŠutama Linux - Laptop and Netbook 2 08-06-2003 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:03 AM.

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
Open Source Consulting | Domain Registration