Errors after enabling scsi support for writer
Hello Suse Linux users I wanted to burn CD'd and so followed instructions in Suse Database support (http://sdb.suse.de/en/sdb/html/pohletz_ide_brenner.html). I am using Suse 7.3 with win4lin 4.0 in a Toshiba Satellite 5105-501. What I did: (1) edited rc.config to add "ide-scsi" (2) edited lilo.conf and added "hdc=ide-scsi hdd=ide-scsi" (3) typed-> mk_initrd <- and then typed ->lilo<- (4) added /sbin/modprobe ide-scsi in the /etc/init.d/boot.local file (5) typed -> ln -sf /dev/scd0 /dev/cdrecorder <- and -> ln -sf /dev/scd1 /dev/cdrom <- (6) wrote in /etc/fstab -> /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 <- and -> /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 Now, I have the following problems (1) cannot mount CDROM -> the error message is "mount /dev/cdrom unknown device" (2) cannot burn cd . The error message from KonCD was "no CD writer found" (3) at boot time comes this error message "ERROR - cannot fsck because root is not read only" I thank you all for any help Eduardo ------------------------------------------------------------------------------- Eduardo A. Nogueira, MD, PhD Cardiac Catheterization Laboratory University of Campinas School of Medicine Campinas, Sao Paulo Brazil
On Mon, 2003-06-16 at 18:00, Eduardo Nogueira wrote:
Hello Suse Linux users
I wanted to burn CD'd and so followed instructions in Suse Database support (http://sdb.suse.de/en/sdb/html/pohletz_ide_brenner.html). I am using Suse 7.3 with win4lin 4.0 in a Toshiba Satellite 5105-501. What I did: (1) edited rc.config to add "ide-scsi" (2) edited lilo.conf and added "hdc=ide-scsi hdd=ide-scsi" (3) typed-> mk_initrd <- and then typed ->lilo<- (4) added /sbin/modprobe ide-scsi in the /etc/init.d/boot.local file
Givn (1) and (3), (4) is redundant.
(5) typed -> ln -sf /dev/scd0 /dev/cdrecorder <- and -> ln -sf /dev/scd1 /dev/cdrom <-
What does "ls -l /dev/scd0" and "ls -l /dev/scd1" say?
(6) wrote in /etc/fstab -> /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 <- and
-> /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
Now, I have the following problems
(1) cannot mount CDROM -> the error message is "mount /dev/cdrom unknown device" (2) cannot burn cd . The error message from KonCD was "no CD writer found"
What does "ls -l /dev/sg0" and "ls -l /dev/sg1" say? Your user needs to have permissions to read and write to those devices
Dear Anders Johansson Thanks for your reply. These are the answers: nogueira@harvey:~> ls -l /dev/scd0 brw-r----- 1 root disk 11, 0 Sep 23 2001 /dev/scd0 nogueira@harvey:~> ls -l /dev/scd0 brw-r----- 1 root disk 11, 0 Sep 23 2001 /dev/scd0 nogueira@harvey:~> ls -l /dev/sg0 crw-r----- 1 root disk 21, 0 Sep 23 2001 /dev/sg0 nogueira@harvey:~> ls -l /dev/sg1 crw-r----- 1 root disk 21, 1 Sep 23 2001 /dev/sg1 Sorry by my ignorance, but what should I do ? Eduardo --------------------------------------------------------------------------- On Monday 16 June 2003 12:38, Anders Johansson wrote:
On Mon, 2003-06-16 at 18:00, Eduardo Nogueira wrote:
Hello Suse Linux users
I wanted to burn CD'd and so followed instructions in Suse Database support (http://sdb.suse.de/en/sdb/html/pohletz_ide_brenner.html). I am using Suse 7.3 with win4lin 4.0 in a Toshiba Satellite 5105-501. What I did: (1) edited rc.config to add "ide-scsi" (2) edited lilo.conf and added "hdc=ide-scsi hdd=ide-scsi" (3) typed-> mk_initrd <- and then typed ->lilo<- (4) added /sbin/modprobe ide-scsi in the /etc/init.d/boot.local file
Givn (1) and (3), (4) is redundant.
(5) typed -> ln -sf /dev/scd0 /dev/cdrecorder <- and -> ln -sf /dev/scd1 /dev/cdrom <-
What does "ls -l /dev/scd0" and "ls -l /dev/scd1" say?
(6) wrote in /etc/fstab -> /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 <- and
-> /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
Now, I have the following problems
(1) cannot mount CDROM -> the error message is "mount /dev/cdrom unknown device" (2) cannot burn cd . The error message from KonCD was "no CD writer found"
What does "ls -l /dev/sg0" and "ls -l /dev/sg1" say? Your user needs to have permissions to read and write to those devices
On Mon, 2003-06-16 at 21:45, Eduardo Nogueira wrote:
Dear Anders Johansson
Thanks for your reply. These are the answers:
nogueira@harvey:~> ls -l /dev/scd0 brw-r----- 1 root disk 11, 0 Sep 23 2001 /dev/scd0
nogueira@harvey:~> ls -l /dev/scd0 brw-r----- 1 root disk 11, 0 Sep 23 2001 /dev/scd0
nogueira@harvey:~> ls -l /dev/sg0 crw-r----- 1 root disk 21, 0 Sep 23 2001 /dev/sg0
nogueira@harvey:~> ls -l /dev/sg1 crw-r----- 1 root disk 21, 1 Sep 23 2001 /dev/sg1
Sorry by my ignorance, but what should I do ?
You need to give yourself permission to use sg0 and sg1. There are several ways to do it. If you're the only user on the machine, the simplest method would be chmod a+rw /dev/sg0 chmod a+rw /dev/sg1 If there are other users and you want to restrict access to the drives, you could do something like creating a group called cdrecord, and then chown root.cdrecord /dev/sg0 chown root.cdrecord /dev/sg1 chmod 660 /dev/sg0 chmod 660 /dev/sg1 and then adding the users who should have access to the devices to the group cdrecord Also, did you reboot the machine after you made the changes to the configuration?
Sorry by the delay in answering; we had some problems in our e-mail server. I have to answer to Anders Johansson and to Carlos Robinson - many thanks to both. Anders Johansson wrote ----------------------------------------------------------------------
You need to give yourself permission to use sg0 and sg1. There are several ways to do it. If you're the only user on the machine, the simplest method would be
chmod a+rw /dev/sg0 chmod a+rw /dev/sg1
you could do something like creating a group called cdrecord, and then
chown root.cdrecord /dev/sg0 chown root.cdrecord /dev/sg1 chmod 660 /dev/sg0 chmod 660 /dev/sg1
and then adding the users who should have access to the devices to the group cdrecord
Also, did you reboot the machine after you made the changes to the configuration?
Yes, I gave a+ permissions to /dev/sg0 /dev/sg1 /dev/scd0 and /dev/scd1 Now I can mount CDROM!! But, as to CDrecorder this is what I got harvey:/home/nogueira # mount /dev/cdrecorder /media/cdrecorder /dev/cdrecorder: Input/output error mount: block device /dev/cdrecorder is write-protected, mounting read-only /dev/cdrecorder: Input/output error mount: you must specify the filesystem type I gave permissions to /dev/cdrecorder and /media/cdrecorder also. But without success. Incidentally, i fixed the fsck read-only ERROR with a recipe you gabe to John Sved last year (I checked the read-only in lilo.config and run lilo again) Answer to Carlos Robinson Carlos wrote: -------------------------------------------------------------------------------------
Did you reboot (7)?
Do you see a message like this on the boot.msg:
<6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: IDE Model: DVD-ROM 16X Rev: 1.06 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MITSUMI Model: CR-48X8TE Rev: 1.1E <4> Type: CD-ROM ANSI SCSI revision: 02
This is what I found in boot.msg (somewhat long...) 4>hda: TOSHIBA MK4019GAX, ATA DISK drive <4>hdc: UJDA730 DVD/CDRW, ATAPI CD/DVD-ROM drive <4>ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 <4>ide1 at 0x170-0x177,0x376 on irq 15 <6>hda: 78140160 sectors (40008 MB), CHS=4864/255/63 <4>ide-floppy driver 0.97.sv <6>Partition check: <6> hda: hda1 hda2 < hda5 hda6 > <4>floppy0: no floppy controllers found <6>loop: loaded (max 8 devices) <4>ide-floppy driver 0.97.sv <6>SCSI subsystem driver Revision: 1.00 <3>request_module[scsi_hostadapter]: Root fs not mounted <3>request_module[scsi_hostadapter]: Root fs not mounted <6>md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 <6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4>Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 <4>Attached scsi CD-ROM sr1 at scsi0, channel 0, id 0, lun 1 <4>Attached scsi CD-ROM sr2 at scsi0, channel 0, id 0, lun 2 <4>Attached scsi CD-ROM sr3 at scsi0, channel 0, id 0, lun 3 <4>Attached scsi CD-ROM sr4 at scsi0, channel 0, id 0, lun 4 <4>Attached scsi CD-ROM sr5 at scsi0, channel 0, id 0, lun 5 <4>Attached scsi CD-ROM sr6 at scsi0, channel 0, id 0, lun 6 <4>sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <6>Uniform CD-ROM driver Revision: 3.12 <4>sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <4>sr2: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <4>sr3: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <4>sr4: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <4>sr5: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <4>sr6: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <4>usb.c: USB device 3 (vend/prod 0x644/0x0) is not claimed by any active driver. <4>VFS: Mounted root (ext2 filesystem) readonly. <4>change_root: old root has d_count=4 <5>Trying to unmount old root ... okay ----------------------------------------------------------------- Thanks a lot for the help you are giving me Eduardo
The 03.06.17 at 11:00, Eduardo Nogueira wrote:
<6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.00 <4> Type: CD-ROM ANSI SCSI revision: 02
Ah! Known problem. Go to the suse SDB and search for scsi. First entry says: Multiple Detection of IDE CD-Recorder Symptom Your IDE CD-recorder, for which a SCSI emulation is running, is detected 8 times and occupies /dev/scd0 to /dev/scd7. A typical symptom is the command cdrecord -scanbus displaying the same CD-recorder eight times. Solution Insert max_scsi_luns=1 as a kernel parameter for your boot loader configuration. -- Cheers, Carlos Robinson
The 03.06.16 at 21:24, Anders Johansson wrote:
If there are other users and you want to restrict access to the drives, you could do something like creating a group called cdrecord, and then
chown root.cdrecord /dev/sg0 chown root.cdrecord /dev/sg1 chmod 660 /dev/sg0 chmod 660 /dev/sg1
Notice that those permissions might not be permanent. There is a file: "/etc/logindevperm" that contains lines like these: :0 0600 /dev/cdrom:/dev/cdrom1:/dev/cdrom2:/dev/cdrom3 :0 0600 /dev/cdrecorder:/dev/cdrecorder1:/dev/cdrecorder2:/dev/cdrecorder3 :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3 This means that the user that logs into X (kde, gnome, whatever) will own the xdm display (:0), and the device permissions will be chnaged to match those above. Notice this: nimrodel:/etc # l /dev/scd? brw------- 1 cer audio 11, 0 Sep 9 2002 /dev/scd0 brw------- 1 cer disk 11, 1 Sep 9 2002 /dev/scd1 brw-r----- 1 root disk 11, 2 Sep 9 2002 /dev/scd2 brw-r----- 1 root disk 11, 3 Sep 9 2002 /dev/scd3 See? The cdrom is owned by me (cer), and only I access to it. -- Cheers, Carlos Robinson
The 03.06.16 at 13:00, Eduardo Nogueira wrote:
(6) wrote in /etc/fstab -> /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 <- and
Did you reboot (7)? Do you see a message like this on the boot.msg: <6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: IDE Model: DVD-ROM 16X Rev: 1.06 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: MITSUMI Model: CR-48X8TE Rev: 1.1E <4> Type: CD-ROM ANSI SCSI revision: 02
(3) at boot time comes this error message "ERROR - cannot fsck because root is not read only"
That is a completely different problem. Probably you should fsck your root partition from the rescue CD. -- Cheers, Carlos Robinson
participants (3)
-
Anders Johansson
-
Carlos E. R.
-
Eduardo Nogueira