LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-20-2002, 10:16 PM   #1
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Rep: Reputation: 15
Arrow cd-rw troubles.


I'm trying to run XCDROAST in Mandrake 8.2, with an IDE Lite-On 12x10x32 CD-RW drive.

Yes, I've read the faqs and what-not on scsi-emulation and stuff.

When I run xcdroast from the console, this is what it says before the program starts:

** WARNING **: Installation problem? No set-uid bit on /usr/bin/mkisofs


** WARNING **: Installation problem? No set-uid bit on /usr/bin/readcd


** WARNING **: Installation problem? No set-uid bit on /usr/bin/cdda2wav

--

Now, I wanted to test this by duplicating a CD. Put a CD in the drive, tell it to read. "No CD loaded in read device" (and yes, I have the same drive setup as the read device). Under CD-Information, for the type (when I have a written data CD-R in the drive that I wish to duplicate), it says "Empty CD-R/RW".

I know that I have communication with the drive, because in X windows I can view the CD and use it like normal. In XCDROAST I can eject the cd via the GUI.

cdrecord -scanbus reports the following:
Cdrecord 1.11a15 (i586-mandrake-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'LITE-ON ' 'LTR-12101B ' 'LS38' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'IOMEGA ' 'ZIP 250 ' '31.G' Removable Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
-------

I've added "options ide-cd ignore='hdc hdd'" to /etc/modules.conf.
I've added "append="hdc=ide-scsi hdd=ide-scsi"" to /etc/lilo.conf

I've restarted, still nothing.

Any ideas?
 
Old 09-21-2002, 01:05 AM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Are you root?
 
Old 09-21-2002, 09:34 AM   #3
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
I'm root in the console when I run xcdroast.
I'm a regular user, however, in kde.
 
Old 09-21-2002, 12:25 PM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
I'll be implementing Mandy support in my cdcopy program soon. Meanwhile, you could try a few things:

ls /dev/cdrom -l

Paste result here.

Do the same again for the linked /dev/*** & paste here.

cat /etc/fstab
dmesg | grep scsi
/sbin/lsmod

Paste results here.

It is most likely a linking problem or permission. No biggie.
 
Old 09-21-2002, 05:32 PM   #5
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
[root@xp1700 root]# ls /dev/cdrom0 -l
lr-xr-xr-x 1 root root 13 Sep 21 04:36 /dev/cdrom0 -> cdroms/cdrom0
[root@xp1700 root]# cd /dev/cdroms
[root@xp1700 cdroms]# ls
cdrom0@ cdrom1@
[root@xp1700 cdroms]# ls -l
total 0
lr-xr-xr-x 1 root root 33 Dec 31 1969 cdrom0 -> ../ide/host0/bus1/target1/lun0/cd
lr-xr-xr-x 1 root root 34 Dec 31 1969 cdrom1 -> ../scsi/host0/bus0/target0/lun0/cd

-----

[root@xp1700 cdroms]# cat /etc/fstab
/dev/hdb6 / ext3 defaults 1 1
/dev/hdb1 /boot ext2 defaults 1 2
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb7 /home ext3 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/mnt/cdrom2 /mnt/cdrom2 supermount dev=/dev/hdd,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/mnt/floppy /mnt/floppy supermount dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,umask=0,sync,codepage=850 0 0
/dev/hdb8 /other vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hdb2 /usr ext3 defaults 1 2
/dev/hdb5 /var ext3 defaults 1 2
/dev/hdb3 swap swap defaults 0 0

-----

[root@xp1700 cdroms]# dmesg |grep scsi
Kernel command line: initrd=initrd.img root=/dev/hdb6 devfs=mount hdc=ide-scsi BOOT_IMAGE=vmlinuz
ide_setup: hdc=ide-scsi
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi1 : SCSI emulation for USB Mass Storage devices
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray

-----

[root@xp1700 cdroms]# /sbin/lsmod
Module Size Used by Tainted: P
sg 30180 0 (autoclean)
ppp_deflate 42240 0 (autoclean)
bsd_comp 4544 0 (autoclean)
ppp_async 6560 1 (autoclean)
ppp_generic 19880 3 (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc 5056 1 (autoclean) [ppp_generic]
soundcore 4068 0 (autoclean)
sr_mod 15160 0 (autoclean) (unused)
parport_pc 22088 1 (autoclean)
lp 6464 0 (autoclean)
parport 23968 1 (autoclean) [parport_pc lp]
af_packet 12488 0 (autoclean)
printer 5824 0
keybdev 1856 0 (unused)
mousedev 4160 1
hid 18528 0 (unused)
usbmouse 1984 0 (unused)
input 3616 0 [keybdev mousedev hid usbmouse]
usb-storage 52236 0
usb-uhci 21668 0 (unused)
usbcore 59072 1 [printer hid usbmouse usb-storage usb-uhci]
nls_iso8859-1 2816 1 (autoclean)
nls_cp850 3584 1 (autoclean)
vfat 9788 1 (autoclean)
fat 31384 0 (autoclean) [vfat]
supermount 62180 3 (autoclean)
ide-scsi 8032 0
scsi_mod 92488 4 [sg sr_mod usb-storage ide-scsi]
rtc 5912 0 (autoclean)
tulip 40768 1
ext3 62092 4
jbd 39356 4 [ext3]
 
Old 09-21-2002, 11:35 PM   #6
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Could you do this for me?

ls /dev/cdrom -l

Show me the line that you've added "options ide-cd ignore='hdc hdd'" to /etc/modules.conf.

Your fstab looks odd to me, maybe it's a Mandrake thing. I never saw any distro including MDK 8.2 that had /mnt/* twice on a line. Could be a problem.

/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

This I assume is your cdrom link. The other is zip.

dmesg |grep scsi almost checks out except it misses the other hdd=ide-scsi.

/sbin/lsmod is perfect.

Steps below might or might not work:

cp /etc/fstab /etc/fstab.bak
vi /etc/fstab
delete this line
/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
add this line
/dev/cdrom /mnt/cdrom iso9660 iocharset=iso8859-1,umask=0,codepage=850 0 0
save & exit
ln -sf /dev/sr0 /dev/cdrom
insert a data CD
mount /mnt/cdrom
ls /mnt/cdrom
If success, insert a CDRW
cdrecord dev=0,0,0 blank=fast

If it erases the cdrw, you're getting there.

Wait until I give you a go before you do the above. Show me the result of the line on top.

Last edited by jetblackz; 09-21-2002 at 11:38 PM.
 
Old 09-22-2002, 12:42 AM   #7
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
[root@xp1700 palidor]# ls /dev/cdrom -l
lr-xr-xr-x 1 root root 13 Sep 21 04:36 /dev/cdrom -> cdroms/cdrom0


[root@xp1700 palidor]# cat /etc/modules.conf

alias usb-interface usb-uhci
probeall scsi_hostadapter ide-scsi
alias eth0 tulip

# lt_drivers: autoloading and insertion parameter usage
alias char-major-62 lt_serial
alias /dev/tts/LT0 lt_serial
alias /dev/modem lt_serial
# The next two lines are syntax examples, only Rarely Needed, to automate parameter usage during lt_drivers insertion. See documentation for details.
# options lt_modem vendor_id=0x115d device_id=0x0420
# options lt_modem Forced=3,0x130,0x2f8,0
# section for lt_drivers ends

# This block installed with Lucent modem drivers is for PPP related support
alias /dev/ppp ppp_generic
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

# added for cd-r support
options ide-cd ignore='hdc hdd'

---

Thanks for your help thus far. I'll wait for your word to go ahead with changing all that stuff.

Last edited by dissolved soul; 09-22-2002 at 12:45 AM.
 
Old 09-22-2002, 01:01 AM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
it is a permission problem, but it is resolved very quickly. First time you run Xcdroast you needed to configure it through setup, in the last tab (options, I guess) check allow non-root users to run xcdroast, if still the same happens and you can't run xcdroast as a non-root go over to http://www.xcdroast.org and grab the latest release.
So all the above can be summed up if you create a group cdwrite for instance, add the non-root users to this group and change group of cdrecord, mkisofs, etc (cdr-tools buddies) to cdwrite group and then change perm to 2755 for this programs you will be OK, the latest cdr-tools and xcdroast do this all for you without you tempering with permissions and groups setup.
 
Old 09-22-2002, 01:10 AM   #9
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
Interesting. Well I will say this:
I downloaded xcdroast 1 or 2 days ago, so it's a recent release. I did run the setup & check the tabs saying that non-root users can use it.

That was all before I posted this thread.
 
Old 09-22-2002, 11:25 AM   #10
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Comment out this line with #

#options ide-cd ignore='hdc hdd'

Reboot.

We're go for launch! Ignore my previous instructions. Go with this:

Be root
ln -sf /dev/scd0 /dev/cdrom
insert a data CD
mount /mnt/cdrom
ls /mnt/cdrom
If success, insert a CDRW
cdrecord dev=0,0,0 blank=fast

Tomorrow I'll get my hands on my code and MDK.

Anytime.
 
Old 09-22-2002, 01:12 PM   #11
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
I've got good news & bad news

Good:

[root@xp1700 root]# vi /etc/modules.conf
[root@xp1700 root]# ln -sf /dev/scd0 /dev/cdrom
[root@xp1700 root]# mount /mnt/cdrom
[root@xp1700 root]# ls /mnt/cdrom
archive.z* PSReadme.wri* setup.exe* _setup.lib*
_inst32i.ex_* setup.bmp* SETUP.INI* setup.pkg*
_ISDEL.EXE* _setup.dll* SETUP.INS*
[root@xp1700 root]# cdrecord dev=0,0,0 blank=fast
Cdrecord 1.11a15 (i586-mandrake-linux-gnu) Copyright (C) 1995-2001 Jörg
Schilling
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'LITE-ON '
Identifikation : 'LTR-12101B '
Revision : 'LS38'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96P RAW/R96R
Starting to write CD/DVD at speed 2 in write mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.[root@xp1700 root]#

Bad:

It still won't read discs in xcdroast, as a regular user OR root. Same issue as before. I don't really understand why that would be, since xcdroast is simply a GUI for the command line stuff.
 
Old 09-23-2002, 11:06 AM   #12
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Congrats! You've already solved it, from a command-line kind of guy's standpoint.

I don't use any GUI cd writer. I write my own. If you want, you can get a copy here.

http://jetblackz.freeservers.com/

It works perfectly for Mandrake. Just checked. You can burn disk while surfing the Web.

Don't type the path. Just open Konqueror, browse to target, and copy & paste it in terminal.

Last edited by jetblackz; 09-23-2002 at 11:08 AM.
 
  


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
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 02:39 AM
g++ troubles GlassEyeSlim Linux - Newbie 6 02-15-2005 10:51 AM
Troubles tryinglinux Linux - Newbie 6 05-06-2003 10:19 AM
Have some troubles vnpcg Linux - Software 1 02-20-2003 08:44 AM
HP 3c troubles Tinkster Linux - Hardware 2 02-07-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:58 PM.

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