LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-23-2005, 08:16 PM   #1
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Rep: Reputation: 15
burning an iso


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)

/dev/hda2 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


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
 
Old 09-23-2005, 08:32 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
k3b

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.

man k3b
 
Old 09-23-2005, 08:37 PM   #3
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
um... well, i'm using slackware 10.2 right now... i'm trying to burn the knoppix iso to a cd so i can install it... but no, i don't have k3b
 
Old 09-23-2005, 08:42 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
You cannot mount a device which doesn't have a file system on it. Therefore you do not mount a blank CD-R that you are trying to burn an ISO on.

You need to know what your cdrom device is. To find that out use this command:
ls -l /dev/cdrom

Then you create an ISO file system image using mkisofs:
http://www.faqs.org/docs/Linux-HOWTO...ing-HOWTO.html
http://linuxcommand.org/man_pages/mkisofs8.html

Then you use the cdrecord command to write the ISO file system image to the CD device:
http://linuxcommand.org/man_pages/cdrecord1.html

---------------------------------
Steve Stites
 
Old 09-23-2005, 08:48 PM   #5
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
right, well, i have the iso, ls -l /dev/cdrom returns
Code:
bash-3.00$ ls -l /dev/cdrom
lrwxrwxrwx  1 root root 8 2005-09-21 02:34 /dev/cdrom -> /dev/hdc
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'.
thanks
 
Old 09-23-2005, 11:18 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
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
 
Old 09-24-2005, 07:18 AM   #7
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
well, i'm it says i'm using 2.4.31, but i'll give it a shot anyways
 
Old 10-05-2005, 11:46 PM   #8
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
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?)

thanx
 
Old 10-06-2005, 12:02 AM   #9
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
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
thanks again
 
Old 10-06-2005, 11:58 AM   #10
NoStop
Member
 
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
Quote:
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.

Cheers.
 
  


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
ISO Burning noobtesting Linux - Software 2 04-30-2004 10:51 PM
Burning ISO BW~Merlin Linux - Newbie 7 04-21-2004 12:27 AM
Burning the .iso to a cd johann519 Fedora - Installation 4 01-31-2004 03:15 PM
Burning an iso 10dedfish Linux - Newbie 2 07-23-2003 03:38 PM
Need help burning .iso cd ksgill Linux - Software 3 06-21-2003 11:08 PM


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