SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ive been looking for a nice simple concise walkthought to get my burner working. Just something plain n simple that would start with "first thing is to setup scsi emulation, here's how..."
and end with something like "now just insert your data or music or blank cd and your on your way!"
I looked in my running linux book, couldnt find anything, I googled and found bits n pieces of problem solutions with many debian n redhat users.
All I want is to get the drive working!!! I did a lsmod and got this:
ide-scsi 9424 0
so maybe its up n going
I did a cdrecord dev=ATAPI -scanbus (saw it on a newsgroup post some where)
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'SONY ' 'CD-RW CRX230E ' 'QYS1' 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) *
"f there is anything I still need to add or do, please let me know."
/dev/cdrom should be a symbolic link to /dev/scd0 if you have not already done so and you need to make sure that the permissions on /dev/scd0 and /dev/cdrom are the way that you want them to be.
thats what I thought LOL ( about the sym link)
that, sadly, is something I dont know how to do..
ln -s /dev/cdrom /dev/scd0?? <-- is that right?
as far as the permissions, I would like for root and users to be able to access the device. I figure since it is a stand-alone system with myself being the only user, it would make sense.
with doing that would it just be a matter of doing a chmod? or something I have to edit in the fstab?
I havent gotten as far as creating the group for the cdrw yet, but one other question. In the fstab, do i need to then change /dev/cdrom to /dev/scd0 so it would look like:
/dev/scd0 /mnt/cdrom iso9660 noauto,user,rw 0 0
thanks
I really need to read up on how to properly setup my fstab config LOL
I hadn't burn a CD for a while now, and when I tried today I found that it didn't work anymore. Soooo, after some digging and searching through the web I got mine to work. I got my kernel 2.4.22-xfs with all scsi support modular, and the first thing I noticed is that by modprobe ide-scsi I didn't get any devices in /proc/scsi ... I still don't get it, why cdrecord -scanbus fails to find any scsi device even though ide-scsi is loaded. The funny thing is it doesn't seem to matter. Apparently cdrecord doesn't need that module loaded if you use cdrecord dev=ATAPI. Anyway, apart from that, I created a script that I've used to burn a couple of CD's today, so I figure that I will post it in case it's of any use to anybody (I never liked XCDRoast or whatever it is called). Oh, by the way, this is for DATA CD's. So here it goes:
me@penguin:~$ cat bin/burn-cd.sh
#!/bin/bash
# Define the name of the CDRW, as reported by cdrecord -scanbus
CDRW_NAME="DVD-ROM SD-R1002"
# The directory to burn to the CD is to be passed as a command-line parameter
DIR=$1
# Check that you are running as root
if [ "`whoami`" != "root" ]
then
echo "This script has to be run by root. Sorry ..."
exit -1
fi
if [ "0$DIR" == "0" ]
then
echo "Usage: burn-cd.sh <name of directory to burn to CD>"
exit -1
fi
# Try to find the directory
if [ -d $DIR ]
then
echo "Found directory to burn: $DIR. Computing size ..."
IMAGESIZE=`mkisofs -R -q -print-size $DIR`
echo "Size of image : $IMAGESIZE sectors"
else
echo "Couldn't find the directory to burn: $DIR"
exit -1
fi
# Make sure that the image isn't too big or too small
if [ 0$IMAGESIZE -le 48 ]
then
echo "Cowardly refusing to burn such a small CD ($IMAGESIZE sectors)"
exit -1
fi
if [ 0$IMAGESIZE -gt 358400 ]
then
echo "Size of the ISO image greater than 700MB"
exit -1
fi
# scan for the CD-RW
echo "Please wait while I look for the CD RW ..."
SCSIDEV=`cdrecord dev=ATAPI -scanbus | grep "$CDRW_NAME" | gawk '{match($0,"[0-9],[0-9],[0-9]",tmp);print tmp[0]}'`
if [ "0$SCSIDEV" == "0" ]
then
echo "Couldn't find the SCSI device for the CD RW $CDRW_NAME"
exit -1
fi
# and now burn the CD
echo "Found! Now we will start burning the CD ..."
mkisofs -r $DIR | cdrecord dev=ATAPI:$SCSIDEV tsize=${IMAGESIZE}s -data -
echo " *** DONE ***"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.