LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2002, 05:37 PM   #16
IHateJazz
LQ Newbie
 
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6

Rep: Reputation: 0
Red face


David,

here we go with the output:

Quote:
Originally posted by DavidPhillips
I don't think the distro matters a lot, although knowing that a particular distro put's a certain link to a device would help.

As far as freezing, I don't know

We need to know how your bios sees the drive, how many
what you can do is post part of your lilo.conf file like this

Code:
cat /etc/lilo.conf | grep append

append="hdd=ide-scsi"
as I use a floppy to start up after previous bad experiences with dual boot on my mbr I donṫ run LILO. The SYSLINUX.CFG file on the floppy looks like this:

default linux
prompt 1
display boot.msg
timeout 100
label linux
kernel vmlinuz
append initrd=initrd.img hdd=ide-scsi root=/dev/hdc3

and this
[code]
dmesg | grep CD

[Job@localhost Job]$ dmesg | grep cd
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray


also let's see what this says
[code]
ls -l /dev/cdrom
[Job@localhost Job]$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 9 dec 15 15:36 /dev/cdrom -> /dev/scd0

and also your /etc/fstab

[code]
cat /etc/fstab

[Job@localhost Job]$ cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdc5 swap swap defaults 0 0
/dev/scd0 /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0




we can check to see if it's set up right, but as far as the freezing goes, it's hard to say
Most of it is greek to me, tia for your help and merry christmas!

Job
 
Old 12-24-2002, 07:14 PM   #17
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
If you want to find the device name of the CDRW, go to /etc/sysconfig/hwconf. you can see the CDRW drive from there. then you can mount it with.

mount -t iso9660 /dev/**device /mnt/***mount point. The iso9660 is the filesystem type of CDs. I'm sorry if this isn't relevant to the current discussion; i haven't read all of it. hope it helps
 
Old 12-24-2002, 10:48 PM   #18
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
Ok I looked at a post that was submitted a while ago and had problems. It had basically told me to link /dev/scd0 to /dev/cdrw or /dev/cdrom1. Well I tried that last week and puked my links. Since I am not savy enough I just reinstalled (that would be reinstall number 50 in my linux experience). So what I did is said "What the heck" (yeah I acutally said that) and tried to do this:

mount /dev/scd0 /mnt/cdrom

Well guess what happened....
I heard the cdrw read the disk and POOF!
Right to the prompt with no error.
So.... I linked my cdrw to /dev/scd0 /dev/cdrw and my dvd to /dev/hdd /dev/dvd.
Then I had to verify....
And it blew up in my face. So I tried to specify a file system.
Still no go...
Then I remembered this isn't windows lol
I went into a handy dandy utility called linuxconf.
Under that utility there is an area called File Systems and yet another setting called Access Local Drive. This is where I get real proud of myself. I changed the device and mount settings for my drives there and it asks me (in submission to my awesome newbie powers ) if I want to create the mount files since they weren't there. Sure, why not. It will even autodetect the file system (I think) because the file system field says auto. Now it works like magic. I am extremely grateful to this site and will continue to come here as well as refer it to as many people as I can but unfortunately I can't convert the world... but I'll work on it.

Thanks again,

Nik

Last edited by dfctve_end_user; 12-24-2002 at 10:50 PM.
 
Old 12-25-2002, 12:38 AM   #19
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yea you can see your output of dmesg | grep CD

sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray


that tells you there that it's sr0 not scd0
 
Old 12-25-2002, 01:54 AM   #20
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
Hey yeah that's pretty cool. And it figures that I fix one thing and another hits me in the face. I can't get xcdroast or gtoaster to work. What info do I need to give you?
 
Old 12-25-2002, 08:36 AM   #21
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try running this

cdrecord -scanbus

this should show the cdrw

cdrecord -scanbus
Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.6'
scsibus0:
0,0,0 0) 'HP ' 'CD-Writer+ 9100b' '1.07' 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) *



that's the first step since xcdroast only works with scsi drives, sr0 is scsi so you should see yours

with that working ok you should be able to record. What kind of errors do you get from xcdroast
 
Old 12-25-2002, 09:07 AM   #22
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if you are trying to run it as a normal user there are a few things to do first


you need a group that has access, and you will add approved users to that group

Code:
groupadd cdwrite
then you will need to add users

Code:
gpasswd -a david cdwrite
then you need to change some file permissions

Code:
cd /usr/bin/
chown root:cdwrite cdrecord cdda2wav mkisofs readcd
chmod 4710 cdrecord cdda2wav mkisofs readcd

cd /usr/lib/xcdroast*/bin

chown root:cdwrite xcdrwrap
chmod 2755 xcdrwrap

then you should run xcdroast as root
and go to the setup users section and setup users permissions, paths for isos, etc.. then you can run it as a normal user


the file in /usr/bin/xcdroast is going to bring up the root passwd, the actual xcdroast is in /usr/sbin/xcdroast

if you want to replace it run this


Code:
ln -sf /usr/sbin/xcdroast /usr/bin/xcdroast
 
Old 12-25-2002, 05:43 PM   #23
IHateJazz
LQ Newbie
 
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6

Rep: Reputation: 0
Hi David,

you were right, after changing fstab and my cd rom connection to sr0 my system doesnṫ freeze any more. The bad news, however, is that i get the following message after mounting my cdrw in teminal:

[root@localhost Job]# mount /dev/sr0 /mnt/cdrom
mount: special device /dev/sr0 does not exist

I feel like a special agent that doesn't officially exist!

thanks for your help,

Job
 
Old 12-25-2002, 11:01 PM   #24
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
run this and see if you have this file

ls -la /dev/.devfsd
crw------- 1 root root 8, 0 Dec 31 1969 /dev/.devfsd


if you do then you are using devfs which may require you to use a different naming scheme

like this link

lr-xr-xr-x 1 root root 36 Dec 19 11:15 /dev/cdrw -> /dev/scsi/host0/bus0/target0/lun0/cd


the link you want to use may need to be created after boot in rc.local or some other file if you want, or you can use the devfs name in fstab,


this is the devfs name of a cdrw using ide-scsi
/dev/scsi/host0/bus0/target0/lun0/cd

Last edited by DavidPhillips; 12-25-2002 at 11:07 PM.
 
Old 12-26-2002, 04:00 AM   #25
IHateJazz
LQ Newbie
 
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6

Rep: Reputation: 0
Hi David,

the result of the listing:
[Job@localhost Job]$ su
Password:
[root@localhost Job]# ls -la /dev/.devfsd
ls: /dev/.devfsd: Onbekend bestand of map
(last is dutch for unknown file or map)

so I am missing something somewhere?!

Job
 
Old 12-26-2002, 12:01 PM   #26
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Never seen anything like that

see if you have these folders

/dev/scsi/host0/bus0/target0/lun0/cd
 
Old 12-26-2002, 05:10 PM   #27
IHateJazz
LQ Newbie
 
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6

Rep: Reputation: 0
I have the /dev folder which is pretty usual. The rest is missing! Install scsi? How to do that?

Job
 
Old 12-26-2002, 05:19 PM   #28
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
look in this file

/etc/sysconfig/hwconf

see if you can find the name of the cd writer is sr0 in there or something else
 
Old 12-26-2002, 09:32 PM   #29
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
I looked to see what was in /etc/sysconfig/hwconf on mine because I can't burn cd's in any other program except kisocd. I am trying to use gtoaster to burn data and audio cd's and I get i/o errors and such.

I am beginning to think it can't be done.

Here is part of the error messages I am getting. If you know of I way I can pipe it to cat I will do that and just copy and paste to the site:

cdrecord WARNING: Track size unknown. Data may not fit on disk.

cdrecord: input/output error, write_g1: scsi sendcmd:
retryable error
status: 0x2 (CHECK CONDITION)
write track data: error after 0 bytes

Child exited unexpectedly.

If anyone has any ideas let me know.

thanks
 
Old 12-27-2002, 03:25 AM   #30
IHateJazz
LQ Newbie
 
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6

Rep: Reputation: 0
David,

cd output of /etc/sysconfig/hwconf:

class: CDROM
bus: SCSI
detached: 0
device: scd0
driver: ignore
desc: "Philips CDRW4012P"
host: 0
id: 0
channel: 0
lun: 0

here we get back to scd0. What to use now? sr0 or scd0?

Job

ps rated you yesterday in affero under nickname firewalkwithme, ok youŕe welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 mounting cdrw jgmyshko Fedora 7 11-16-2005 07:52 PM
cant read cdrom and cdrw cholombeh Slackware 6 08-20-2004 02:45 AM
CDRW only read only mounted ?? delta function Slackware 3 07-07-2004 04:13 AM
Mounting CDRW in Knoppix mattrand_99 Linux - Hardware 2 11-08-2003 09:19 PM
Read/Write to DirectCD formatted CDRW? mcarter Mandriva 1 08-31-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration