Click to See Complete Forum and Search --> : Cdrom question


r@nd0m @cce$
02-09-2001, 01:12 AM
I installed Xcdroast yesterday, and after unsuccesfully trying to burn a disc, I found out my cdrom is no longer recognized by Linux.

Everytime I try to mount my cd drive I get the following error mesage: /dev/hdc is not a valid block device

What's wrong? Please help, I don't want to have to reformat my drive just so I can get my Linux to be the way it was before I tried Xcdroast.

Thanks.

manux
02-09-2001, 01:21 AM
shouldn't it be /dev/hdc1 ?
like in mount /dev/hdc1 /mnt/cdrom

[ 09 February 2001: Message edited by: manux ]

pbharris
02-09-2001, 01:26 AM
hello,
do you have two CR-ROMs and are bothing using SCSI emulation? any check out what i have below to get the CDRW and CD ROM drives going.

typically there is no need to compile kernel (every distribution I have used has the modules already installed, these are
RedHat, Slackware and Debian) , just load proper modules, edit your lilo.conf file. here is how i did it. any atapi/mmc compliant cdrw should work.I have one cdrom(hdc), one cd writer (the hp 8100, aka hdd). i use xcdroast for toasting software. I use hdc to rip music, to do this with xcdroast scsi emulation needs to be on for it too, if the drive is atapi/mmc compliant then no problems. i could use the burner to rip
music, but it is slower and much more expensive than the plain old cd-rom.


1. edit lilo.conf add (or edit) line so it says append=" hdc=ide-scsi hdd=ide-scsi" this needs to be done in the section under
image=/boot/vlinuz


2. in /dev/ delete any linck to cdrom and create links to the drives files (which will be scsi) i.e. rm /dev/cdrom


ln -s /dev/scd0 /dev/cdrom1
ln -s /dev/scd1 /dev/cdrom2

3. run /sbin/lilo
4. install xcdroast
5. reboot.
6. insert modules for scsi emulation. These are ide-scsi and sg.

insmod ide-scsi
insmod sg
7. use xcdroast setup program and burn CDs.


paul

ferrol
02-09-2001, 04:26 AM
Try querying the device by cdrecord -scanbus as root.

Then you can tell if your CDROM has been detected with SCSI emulation. If not then after applying what pbharris have a look at dmesg|more to look at what your system had actually detected.

r@nd0m @cce$
02-09-2001, 11:03 AM
Originally posted by pbharris:
hello,
do you have two CR-ROMs and are bothing using SCSI emulation? any check out what i have below to get the CDRW and CD ROM drives going.

typically there is no need to compile kernel (every distribution I have used has the modules already installed, these are
RedHat, Slackware and Debian) , just load proper modules, edit your lilo.conf file. here is how i did it. any atapi/mmc compliant cdrw should work.I have one cdrom(hdc), one cd writer (the hp 8100, aka hdd). i use xcdroast for toasting software. I use hdc to rip music, to do this with xcdroast scsi emulation needs to be on for it too, if the drive is atapi/mmc compliant then no problems. i could use the burner to rip
music, but it is slower and much more expensive than the plain old cd-rom.


1. edit lilo.conf add (or edit) line so it says append=" hdc=ide-scsi hdd=ide-scsi" this needs to be done in the section under
image=/boot/vlinuz


2. in /dev/ delete any linck to cdrom and create links to the drives files (which will be scsi) i.e. rm /dev/cdrom


ln -s /dev/scd0 /dev/cdrom1
ln -s /dev/scd1 /dev/cdrom2

3. run /sbin/lilo
4. install xcdroast
5. reboot.
6. insert modules for scsi emulation. These are ide-scsi and sg.

insmod ide-scsi
insmod sg
7. use xcdroast setup program and burn CDs.


paul

Yes that's correct, I have two cdroms both using scsi simulation. I'll check what you ask to do and comeback later with my reply.

r@nd0m @cce$
02-09-2001, 11:05 AM
Originally posted by manux:
shouldn't it be /dev/hdc1 ?
like in mount /dev/hdc1 /mnt/cdrom

[ 09 February 2001: Message edited by: manux ]


I thought the command was mount /dev/hdc, I've also tried mount /dev/cdrom without much luck.

r@nd0m @cce$
02-09-2001, 11:22 AM
I tried what you without luck. My disk still will not work (it workds in winblows so is not a hardware problem).

Is there anything else I could try?

r@nd0m @cce$
02-09-2001, 01:09 PM
Originally posted by pbharris:



1. edit lilo.conf add (or edit) line so it says append=" hdc=ide-scsi hdd=ide-scsi" this needs to be done in the section under
image=/boot/vlinuz


2. in /dev/ delete any linck to cdrom and create links to the drives files (which will be scsi) i.e. rm /dev/cdrom


ln -s /dev/sr0 /dev/cdrom
ln -s /dev/sr1 /dev/cdrom1

3. run /sbin/lilo
4. install xcdroast
5. reboot.
6. insert modules for scsi emulation. These are ide-scsi and sg.

insmod ide-scsi
insmod sg
7. use xcdroast setup program and burn CDs.


paul


Hey thanks fellers, thanks to you guys I was able to get my cdrom working. Remember how I wrote earlier saying the script above hadn't helped. Well, it turns out that all I had to do was replace the line ln -s /dev/scd0 /dev/cdrom with ln -s /dev/sr0 /dev/cdrom which is how my drive is listed on SuSE 7. I then rebooted the system inserted the modules as instructed and voila !!! My cd drive was back BABY !!!!! :cool:

Next time I ought of remember to mention what type of distro I run.

Thank you all.