CDRecord - Misc. Issues # Would like to burn an ISO
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.
CDRecord - Misc. Issues # Would like to burn an ISO
Hello,
I would like to burn a CD-ROM on Slackware.
I have found "cdrecord" command line CD Burner.
########################################################
#######################|||||||||||||||||||||||#######################
#######################|| My Questions ||#######################
#######################|||||||||||||||||||||||#######################
########################################################
# header [start]
1 -. cdrecord -version returns on my slack v11 :
Quote:
Originally Posted by cdrecord
cdrecord: Warning: Running on Linux-2.6.19
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
I would like to know : Is it the REAL ORIGINAL cdrecord?
What are these issues on newer kernels?
To resume : WTF is that?
2 -. Does cdrecord sucks on new kernels? Should I download a new cd burning sorftware?
3 -. My CD-RECORDER is an LG ATA device. "man cdrecord" returns that I have to specify the ATA device with dev=ATA:####
How can I know which ATA number to take?
# !eof [end]
Thank you!,
BlueSpirit
*Note : When you answer me, plz put the number of question.
e.g. 2 -. Answer
Last edited by BlueSpirit; 03-24-2007 at 12:59 PM.
I recommend you use k3b to avoid coasters Using cdrecord from the command line is often a bad idea and will more often than not result in a nice coaster for your beer or soda. Use k3b, it has never failed me.
As said by _erklaerbaer_ use the conventional /dev naming.In case
cdrecord dev=ATAPI -scanbus
will oputput something like this
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.20.3
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
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'.
scsibus0:
0,0,0 0) 'HL-DT-ST' 'DVD-ROM GDR8163B' '0L23' Removable CD-ROM
0,1,0 1) 'HL-DT-ST' 'DVDRAM GSA-4165B' 'DL03' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
***'HL-DT-ST' 'DVDRAM GSA-4165B' 'DL03' Removable CD-ROM *** is my DVD writer
So I'd use
cdrecord dev=ATAPI:0,1,0 bla bla bla...
Hope this helps
Ciao
As said by _erklaerbaer_ use the conventional /dev naming.In case
cdrecord dev=ATAPI -scanbus
will oputput something like this
<snip>
Hope this helps
Ciao
Thank you for posting that. I've tried to use the -scanbus option numerous times in the past with no joy and in spite of many attempts at reading the man page I'd never understood to use dev=ATAPI with it.
Whatever ... again, I would not use cdrecord from the command line unless you know very well what options you need. A frontend (yes cdrecord is still used by these) like k3b or bashburn is highly recommended unless you ran out of coasters for your drinks.
Here's for cd's (cdrecordeasy). And, recently, for dvd (dvdb).
The for cd's uses same cdrecord or whatever as yours (Slack 11 default) works fine. Had no probs. No coasters. cdrecordeasy holds my most common options -- so, all I need do is run it on an iso file.
Had no probs with command line when doing it with these. (bashburn had too many menus levels for me though some would want this).
Never got around to setting up K3b -- and haven't found the need to.
Code:
al@p3srv:~$ cat ~/bin/cdrecordeasy
#!/usr/bin/perl -w
# vim: set sw=4 ts=4 si et:
# Written by Katja and Guido Socher
# run this file with chmod 6755 to allow the normal user
# to burn a CD without beeing root.
#
# cdrecord -dummy -v -eject speed=8 dev=ATA:1,1,0 some_file_to_burn.iso
# bash IDE device dummy/test run (scanbus 1st then test run)
#
# cdrecord -dummy -v -eject speed=4 dev=0,3,0 some_file_to_burn.iso
# bash scsi device dummy/test run (scanbus 1st then test run)
# accepts either 2 or 3 part commandline -- speed is optional
# cdr filename [speed] # ex: cdr filename 10
my $spd;
# burn speed next
unless ( $ARGV[1] ) { # default speeds for: cdr filename
$spd='24'; # BTC IDE5232
# $spd='12'; # BTC IDE5232 networked burn
# $spd='10';
# $spd='4'; # R55S
}
if ( $ARGV[1] ) {
if ( $ARGV[1] =~ /^\d+$/ ) {
$spd = pop;
}
}
print "$spd\n";
#
# adapt the next line to the device number that you
# get from the command cdrecord -scanbus
# if not scsi burner use: cdrecord -dev=ATA -scanbus
# my $dev="0,3,0"; # R55S
# my $dev="ATA:2,0,0"; # BTC IDE5232
my $dev="ATA:1,1,0"; # BTC IDE5232
# my $dev="2,0,0"; # rek IDE CD-RW 1610
# useage # useage ###############
# cd to dir where filename.iso then su then
# cdrecordeasy filename.iso
%ENV=();
$ENV{'PATH'}='/bin:/usr/bin:/usr/local/bin';
sub help(){
print "cdrecordeasy -- record a normal data CD from an image file
USAGE: cdrecordeasy image.file
EXAMPLE: cdrecordeasy image.file
Explanation: The image.file will written to cdrom.
You can preview your CD before burning with the following command:
mount -o loop -t iso9660 image.file /some/directory
";
exit 0;
}
# run a command and use unbuffered IO to display the
# output while the command is still running.
sub runcmd($){
my $cmd=shift;
$|=1;
my $buff;
open(PP,"$cmd 2>&1 |")||die;
while(sysread(PP,$buff,8)>0){
print "$buff";
}
close PP;
}
if ($ARGV[0] && $ARGV[0] eq "-h"){
help();
}
help() if (scalar @ARGV !=1 );
$<=$>;
my $file="";
# untaint it:
if ($ARGV[0] =~/([#-~]+)/){
$file=$1;
}else{
die "ERROR: invalid file name $ARGV[0]\n";
}
die "ERROR: can not read image file: $file\n" unless( -r "$file");
#print `id`;
# runcmd("cdrecord -v dev=$dev speed=4 $file"); # R55S
runcmd("cdrecord -v dev=$dev speed=$spd $file"); # BTC IDE5232
__END__
al@p3srv:~$ cat ~/bin/dvdb
#!/bin/sh
# file to dvd command
# growisofs -dvd-compat -Z /dev/dvd -r -J /path/to/files
# this script burn a .iso to dvd
growisofs -dvd-compat -Z /dev/dvd=$1;
# end
I know all options. All I need is my concentration now.
[Off-Topic]
B/c I have to take Aderall when It becomes harder, like when I real my C book.
[/Off-Topic]
W/e.
I just have to chose the right speed, take care of all options, choose the right burning method and it'll work fine. If it doesn't work, ill complain and then use bashburn/cdrecordeasy (yes im stupid, but it's b/c im sure it'll work fine).
///////\\\\\\\
BlueSpirit
\\\\\\\///////
Last edited by BlueSpirit; 03-24-2007 at 11:29 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.