LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-02-2002, 03:42 PM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
Copying CD without GUI


I know that it is possible to copy a disquette as an image. Is it possible to copy a CD with a command like cp in one shot?
 
Old 12-02-2002, 03:49 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Not really. You could do it in two, though!
dd if=/dev/cdrom of=/home/username/cdimage.iso
cdrecord dev=0,0,0 /home/username/cdimage.iso

The above should work if you:
a) have your cdrom device on /dev/cdrom
b) have your cd burner as device 0,0,0 (use cdrecord -scanbus to check).

HTH
 
Old 12-02-2002, 04:01 PM   #3
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Will it detect the max record speed automaticly?
 
Old 12-02-2002, 04:10 PM   #4
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
I have a cd-rom and a cd-burner can i say:

cdrecord dev=0,0,0 /dev/cdrom?
 
Old 12-02-2002, 04:12 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
No. The man page, however, states:
Code:
       speed=#
              Set the speed factor of the writing process to #.  # is an inte-
              ger, representing a multiple of the audio speed.  This is  about
              150  KB/s  for  CD-ROM  and  about 172 KB/s for CD-Audio.  If no
              speed option is present, cdrecord will  try  to  get  the  speed
              value  from  the CDR_SPEED environment.  If your drive has prob-
              lems with speed=2 or speed=4, you should try speed=0.
Perhaps this would work for you, then:
dd if=/dev/cdrom of=cdimage.iso
cdrecord dev=0,0,0 speed=XX cdimage.iso
 
Old 12-02-2002, 04:22 PM   #6
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
lunching the first command, i had a message:
spurious 8259A interrupt: IRQ7
but it seem likes it's continuing... should i continue on with that image?
 
Old 12-02-2002, 04:35 PM   #7
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Wow! I love Linux...
I understand that the ¦ sign can put two command together and execute them one after the other...
So would the fallowing is correct (synthax wise)?

dd if=/dev/cdrom of=cdimage.iso¦cdrecord -v dev=0,0,0 speed=8 cdimage.iso
 
Old 12-02-2002, 07:08 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well, not really. the pipe | will place the output of the last command into the next command, AFAIK. You might be able to do it with:

dd if=/dev/cdrom of=cdimage.iso &&
cdrecord -v dev=0,0,0 speed=8 cdimage.iso

&& means, if this command finishes without errors, then go ahead and perform the next one. I think that'd be more what you want.

Cool
 
Old 12-03-2002, 08:50 AM   #9
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
What is potentially even cooler, is if you had the parameters for burnproof in cdrecord, you could possible do this:
cdrecord -v dev=0,0,0 speed=X `dd if=/dev/cdrom of=cdimage.iso`
Or would that not work?
 
Old 12-03-2002, 08:59 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
people seem to be missing the actual point of moduliarizeditionism software:

dd if=/dev/cdrom | cdrecord dev=0,0,0 speed=5000 -

no need for a temporary file or anything.
 
Old 12-03-2002, 09:00 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
grant, that wouldn't work as `dd blah` would actually just equate to the output of dd:
Code:
3480+0 records in
3480+0 records out
not hugely useful huh?
 
Old 12-03-2002, 09:05 AM   #12
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
D'oh! Guess I use too little bash.
 
Old 12-03-2002, 01:50 PM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by acid_kewpie
people seem to be missing the actual point of moduliarizeditionism software:

dd if=/dev/cdrom | cdrecord dev=0,0,0 speed=5000 -

no need for a temporary file or anything.
Chris, say what? moduliarizeditionism???



I get your point, so no need to clarify it, but where'd you get this word from? Is this another American English vs UK English problem or what?

Hey, that's cool about the command though, I wouldn't have thought of that, thanks.

Cool
 
Old 12-03-2002, 09:16 PM   #14
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
want to add another

cat /dev/hd? >> isoname.iso
 
Old 12-04-2002, 02:40 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well seeing as that doesn't answer the question... not really
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying old HD to new? greenmeanie Debian 2 05-24-2005 12:44 PM
[Ubuntu GUI] Changing GUI from Gnome to wmaker MangaManiac Linux - Laptop and Netbook 8 05-08-2005 03:17 PM
KDE gui vs. Gnome GUI Curt6000 Linux - Newbie 11 11-10-2004 01:37 PM
cd copying Pedroski Fedora 10 10-16-2004 01:15 AM
Isn't Windows 95 or 98 a better GUI solution for old machines than an old Linux GUI lynchmob09 General 10 04-20-2004 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:14 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
Open Source Consulting | Domain Registration