Click to See Complete Forum and Search --> : CD Burner Issue


Saptech
05-09-2001, 02:52 AM
Hello. I'm trying to get my cd burner, a Ricoh model to work with Linux MDK 8.0. I followed the procedure on Linuxnewbie.org on getting a burner to work without compiling the kernel but after all was done it still not working.
As root, when I run the command, insmod ide-scsi, then this message appears:

using /lib/modules/2.4.3-20mdk/kernel/drivers/scsi/ide-scsi.o.gz, insmod: A module named ide-scsi already exists.

then if I run, cdrecord -scanbus, I get this message:
No such file or directory, Cannot open Scsi driver. For possible targets try 'cdrecord -scanbus'. Make sure you are Root.
Which I do run it as Root.

Any ideas or suggestions?
:eek:

bdg1983
05-09-2001, 05:53 AM
Did you add append="hdc=ide-scsi" to lilo.conf and rerun lilo to write the changes?

If you are using Grub instead, you can find out how to edit and change menu.lst here (http://linux.nf/stepbystep.htm) under CDBurners.

Other than that, could you tell us the steps you have followed in order for us to assist you?

Avatar
05-09-2001, 02:57 PM
Also make sure the "sg" devices are avilable in /dev/ or it won't work either.

Saptech
05-10-2001, 04:15 AM
Thanks. "Did you append="hdc=ide-scsi" to lilo.conf and rerun lilo to write the changes?"
Yes I appended that line into lilo.conf and reran lilo.

How do you know if you are using Grub or Lilo? When booting, I get a graphical menu to choose from!

bdg1983
05-10-2001, 06:25 AM
I'm not a Mandrake user, but I believe that Grub is used as the default bootloader.

Follow the procedures for editing menu.lst at the url I posted.

Actually I have it setup (cdrw/grub) at the office and if I remember, I will post the correct syntax.

Molecule Man
05-10-2001, 08:26 AM
The default for MDK 8 is a graphical Lilo.

bdg1983
05-10-2001, 09:08 AM
Just in case, here is my /boot/grub/menu.lst

#
# /boot/grub/menu.lst - generated by Lizard
#


# options

timeout = 5
splashscreen = (hd0,1)/boot/message.col24

default = 0

title = Linux
root = (hd0,1)
kernel = /boot/vmlinuz-pc97-2.2.14-modular vga=274 hdd=ide-scsi noapic nosmp debug=2 root=/dev/hda2

Morph
05-11-2001, 11:21 AM
well I dont know exactly how to fix the problem but I have literally just finished following the instruction at LNO and they worked fine for me I am pleased to say.

So, I dont htink its yer lilo business... it relates back tot he fact that it is saying the ide-scsi is already installed. Do 'lsmod' as root and see if ide-scsi appears anywhere along the left hand side.

I am running Drake7.2 - some users said GRUB is the linux loader ... well I edited lilo.conf as per instructions it worked fine (however, dont just put the append= at the end of the lilo.conf ... it needs to go DIRECTLY after image=/root/partition/here : in my case my lilo.conf file looks like
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=linux
keytable=/boot/uk.klt
lba32
prompt
timeout=50
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
append="hdd=ide-scsi"
label=linux
root=/dev/hda2
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hda2
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda2
append=" failsafe"
read-only
other=/dev/fd0
label=floppy
unsafe

so anyway, dont even think abou tlilo.conf though until you sort out your modules.. sorry I wasnt able to tell you how to solve it but I hope I have cut down some off the guesswork as to whee the prob lies (ie. with your ide-scsi module). :(

Saptech
05-11-2001, 05:09 PM
Thanks all for the good advice...I will give them a try and keep u informed!

Saptech
05-15-2001, 05:29 AM
I seem to have everything working with this burner except when I type the command as root or normal user, I get this message:

cdrecord -scanbus

No such file or directory, Cannot open Scsi driver. For possible targets try 'cdrecord -scanbus'. Make sure you are Root.
Which I do run it as Root.

any reason why this not working? I did a locate for cdrecord and it show I have cdrecord v1.9!

bdg1983
05-15-2001, 06:30 AM
I do know there is some documentation on CDBurners here (http://linux.nf/stepbystep.htm) which you would follow the procedures for Redhat and not Caldera. Might help.

Have you tried Mandrake's documentation? Thought I've seen others post links here in the past to docs on their website.

Saptech
05-16-2001, 01:46 AM
I had to add the append=" hdc=ide-scsi quiet" line to lilo and now the cdrecord -scanbus works.

But now I can't seem to mount the device. I believe it should be using the scsi device, sr0, but when I do a mount /dev/sr0 -t auto /mnt/cdrom command, then I get this error message:

Device /dev/sr0 input/output error
mount: block device: is write-protected, mounting is read only,
Device /dev/sr0 input/output error
mount: you must specify the filesystem type

Is the filesystem type an iso9660? I do have a blank cd disk in the drive and I created a ln -s /dev/sr0 /mnt/cdrom, is this correct?

Thanks again!

bdg1983
05-16-2001, 06:55 AM
Yes, iso9660 is correct.

Don't know if it will mount with a blank CD or not. Try another if possible to verify.

Also setup /etc/fstab to include the new device (sr0) and the filesystem type etc. so you don't have to type the entire mount command all the time. Should only have to issue 'mount /mnt/cdrom' if all is set in fstab.

Saptech
05-17-2001, 07:06 PM
I finally got it working with all your good help...I was trying to mount a blank cd disk and that was wrong...just load a blank cd disk and start the burn process.

Thnx again to all!
:p

bdg1983
05-18-2001, 06:18 AM
Your very welcome. Glad we could help and you got it fixed.

lamplighter
05-21-2001, 02:03 AM
Hi, I was gonna start a new thread but decided might as well continue under this one because I have the same problem.
I added a CD-RW to my Mandrake 8 system (already had a CD-ROM drive) and tried to follow the NHF. After trying that, HOWTOs and Guides and perused the forums I still can't get past the cdrecord -scanbus! It is suppose to show my drive but it says:
cdrecord: No such file or directory. Cannot open driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.

I am root, and that is what I just typed, hehe!

Anyways, this is what I have done:
- first I made sure I could read a CD in the CD-RW drive and it was okay, then I went on to trying to trick the system into thinking it is SCSI (it is a regular Panasonic IDE on HDA by the way, as shown in Mandrake Control Center -> Hardware)
- added to lilo.conf the second part of this: APPEND="ether=0,0,eth1 hda=ide-scsi" (I also tried putting a # in front of that and adding the exact line XS Cheese said in that exact spot but it didn't help)
- to /etc/rc.local "insmod ide-scsi"
- to /etc/fstab
/dev/scd0 /mnt/cdrom2 iso9660 noauto,owner,ro 0 0 (I have tried several variations)
- to/etc/conf.modules:
options ide-cd ignore=hdd
alias scd0 sr_mod
pre-install sg <tab twice> modprobe ide-scsi
pre-install sr_mod tab twice> modprobe ide-scsi
(I also manually did insmod and modprobe for ide-scsi, sg, sr_mod, and ide-cd at various points)
- the /dev/scd* devices exist... sr* ones don't but srnd* do. I read that Redhat uses scd* so I used it, but now Sap used sr*?
- then rm /dev/cdrom2
ln -s /dev/scd0 /dev/cdrom2
mkdir /mnt cdrom2
- I also tried adding an icon
Device: /dev/scd0
Mount Point: /mnt/cdrom2
File System Type: iso9660
but when I click on it it says Could not mount device. The reported error was: mount: /dev/scd0: unknown device

I hope that explains everything, that is all my newbieness can do :) if you need any more info let me know.

And for reference, here are some of the articles I have open now:
LNO NHF (http://www.linuxnewbie.org/nhf/intel/software/cdrecord_cdr.html)
Linuxdoc HOWTO (http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO-2.html)
Linux-Mandrake Tutorial (http://www.linux-mandrake.com/en/demos/Tutorial/CDburner/)
Stepbystep CD Burners IDE (http://linux.nf/ide.htm)

Strike
05-21-2001, 03:02 AM
If you're having problems with /dev/scd0, then it is a problem either with the way you have SCSI emulation set up. I have a module named scsi_mod that loads, do you not? Did you compile SCSI support directly into the kernel? If not, then you need to load this module. Which reminds me, instead of using insmod to load modules, use modprobe instead - it loads the modules that the module you are loading depends on automatically.

If /dev/scd0 doesn't exist, cd /dev and then run ./MAKEDEV to recreate your device files.

Saptech
05-21-2001, 05:25 AM
I did use the sr0 scsi module and I believed it would have worked, but I just used the scd0 instead. I also realized it was easier to follow this link:
http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO-2.html

It seemed to be the best to follow after I tried using the one here and on Step By Step...somehow they got me confused.

I tried the /dev/MAKEDEV scd0 and it displayed error message:

Don't know how to make device "scd0", so I used the mknod /dev/scd0 b 11 0 and that created it.

And this is how it was created,

brw-r--r-- 1 root root 11, 0 May 17 09:50 /dev/scd0

Once you are able to mount regular cd disks and cdrecord -scanbus is showing the cd burner then u will be ready to create a cd iso image. Don't try to mount a blank cd disk, it will not work!

Hope this helps.

bdg1983
05-21-2001, 07:01 AM
Are you sure it's HDA and not something else? Your CDRW is the primary master device?

Did you rerun /sbin/lilo after you made the changes to /etc/lilo.conf and are you sure you are using Lilo and not Grub?

I'm not a Mandrake user, but I seem to remember reading here that Mandrake 8 comes with both Grub and Lilo. Do you have the choice during the install of which to use?

lamplighter
05-21-2001, 03:22 PM
Thanks for the help!

/dev/scd0 does exist, and I tried modprobe scsi_mod but that didn't seem to help.

I am sure it is HDA because Mandrake Control Center says it, and I know it is primary master (and BIOS verifies that).

I assumed it was Lilo but I'm not sure, how do I check?

I don't know what /etc/fstab does, but it seems to me that is where there is the highest chance of error for what I have done. I have:
/dev/scd0 /mnt/cdrom2 iso9660 noauto,owner,ro 0 0
Does this seem right?
These are some of what I have commented out, maybe someone can tell me if they look better?
/dev/scd0 /cdrom2 auto defaults, o,0nauto,user exec 00
/dev/scd0 /cdrom2 iso9660 noautro,user,ro 0 0
/dev/hda /mnt/cdrom2 iso9660 ro,user,noauto,exec 0 0
/mnt/cdrom2 /mnt/cdrom2 supermount fs=iso9660,dev=/dev/scd0 0 0


:)

lamplighter
05-24-2001, 07:14 PM
I am really stuck until I figure out what line to put in /etc/fstab. I don't understand it so the only way I can get it is by guessing, so can someone please explain it to me? Am I making some new alias and defining it? What control does fstab have?

Any help is greatly appreciated :)

bdg1983
05-25-2001, 06:03 AM
I would suggest you put everything back the way it was before you started to configure your CDWriter and then follow the procedures at Mandrake on CD Burners (http://www.linux-mandrake.com/en/demos/Tutorial/CDburner/).

I just had a look at it and it seems to be quite good. Should work for all.

lamplighter
05-25-2001, 02:55 PM
Thanks but I did use that. Also, it assumes you had the CD-RW in during installation, I think that makes a difference. Because it doesn't say anything about /etc/fstab but all the other guides do, and when I try to mount it I need to use fstab I think.