Linux - NewbieThis 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
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.
alright, simple enough... i can't burn this iso to my cd-r. wait... lemme try somethin' quick... alright, that's another problem. what i just did was to try manually mounting the drive with
mount /dev/cdrom. takes forever, then says
mount: i could not find the filesystem type, and none was specified.
my fstab looks like this:
(and is there any way to copy and paste with this thing? i'm trying to do so from emacs, launched from an xterm console. i'm using slackware 10.2, by the way)
spacing is a bit off since i typed it in manually, but you get the picture. i have no idea what any of that means, i just know that it's pertinent to mountpoints and options. so, the whole point of this is so that i can burn a cd with the knoppix iso that i just downloaded (took forever too...) i know i have to use cdrecord to do it... and i have an idea on how to do it... i do cdrecord -scanbus and it gives me this: (again, copy and paste would be nice)
bash-3.00$ cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
so, i try it as root:
bash-3.00# cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
so yeah, i have no clue what to do... any help would be greatly appreciated
Does your copy of knoppix have k3b? This is a standard, graphical burning tool for linux. Sounds much easier than using cdrecord from the command line.
this is what i expected. here, i try burning the cd using cdrecord
Code:
bash-3.00$ cdrecord dev=0,0,0 speed=16 KNOPPIX_V3.9-2005-05-27-EN.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
You are probably on kernel 2.6. You can check with:
uname -r
kernel 2.6 no longer uses scsi emulation for IDE CDs. In cdrecord you should use dev=/dev/hdc. dev=0,0,0 is a scsi address and scsi emulation is now obsolete. This is why you get the error messages about the scsi addresses ending with:
"cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver."
-----------------------------------------
Steve Stites
okay, before i had it working, at least for one cd, and i did that by putting
dev=ATAPI:1,2,0 whatever.iso
... and that worked, i think... anyways, i'm tying to burn damn small linux to a cd, and it's not working again... i tried dev=/dev/hdc but that's not working, it gives me this:
Code:
bash-3.00# cdrecord -v dev=/dev/hdc dsl-1.5.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
cdrecord: Read-only file system. Cannot open '/dev/hdc'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
any ideas? again, not using kernel 2.6 (and i don't know how to recompile it, or upgrade it or anything... i should probably read up on that, shouldn't i?)
by the way, the output from using dev=ATAPI:1,2,0 is as follows:
Code:
bash-3.00$ cdrecord -v speed=16 dev=ATAPI:1,2,0 dsl-1.5.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: 'ATAPI:1,2,0'
devname: 'ATAPI'
scsibus: 1 target: 2 lun: 0
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: -1
cdrecord: Cannot do inquiry for CD/DVD-Recorder.
cdrecord: Input/output error. test unit ready: scsi sendcmd: fatal error
CDB: 00 00 00 00 00 00
cmd finished after 0.000s timeout 40s
Originally posted by jailbait You are probably on kernel 2.6. You can check with:
uname -r
kernel 2.6 no longer uses scsi emulation for IDE CDs. In cdrecord you should use dev=/dev/hdc. dev=0,0,0 is a scsi address and scsi emulation is now obsolete. This is why you get the error messages about the scsi addresses ending with:
"cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver."
-----------------------------------------
Steve Stites
Well, I'm using a Debian release with kernel v 2.6.11 and it certainly is using scsi emulation and I have no problems burning CDs. What I had to do was a bit of a process, but I managed to get the burner working.
The /dev/sg0 needs to belong to the cdrom group and you'd want the user belonging to the group also.
The kernel has to be informed to use IDE-SCSI, so in grub's config file - menu.lst, I had to add:
hdc=ide-scsi to the kernel line and then of course rebuild grub.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.