LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-01-2002, 11:43 PM   #1
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
Copying Disks


I want to create an exact duplicate of a bootable program disk, but for some reason my gcombust program wont do it. Maybe I have settings wrong or something, but I need a solution quick.

Is there a way to copy a disk exactly, even the bootable info, onto my disk drive, then copy that to a disk, making an exact duplicate? Maybe an ISO file?

If so, how would I go about doing that?
 
Old 09-02-2002, 03:38 AM   #2
chad
LQ Newbie
 
Registered: Aug 2002
Location: UK
Distribution: SuSE 8.00
Posts: 14

Rep: Reputation: 0
Hi Stephanie,

I'm still a newbie at this linux game, but I've spotted a link that *may* be of use to you...

http://www.narrabri.atnf.csiro.au/co...Roast0.98.html

If you go through the walkthrough on Unix imaging in XCDRoast, u may have more luck!

HTH,

All the best,
Chad

------------------------
Still too new to linux to have any campfire stories ;o)
 
Old 09-02-2002, 11:50 AM   #3
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 stephanie you can use mkisofs command line to make an exact copy of a disc. Or something like: dd if=/dev/cdrom of=file.iso also might work.

Those are both command line options though, but I HTH.

Cool
 
Old 09-02-2002, 06:11 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
I found that dding works absolutely fine. In the case of burning a downloaded iso image to CD, then dding the CD to a file, the original checksums still worked fine, so the second image file was exactly the same. God, I love dd!
 
Old 09-03-2002, 07:58 AM   #5
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Original Poster
Rep: Reputation: 45
Thanks guys! I dd'ed and made a copy on my drive as an iso.

Now how do I burn this iso into a bootable cdrom?
 
Old 09-03-2002, 08:04 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
cdrecord, I guess
 
Old 09-03-2002, 08:39 AM   #7
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Original Poster
Rep: Reputation: 45
I usually use a graphical front-end for recording cd's, so I am not very good with the command line lingo. DO you know the command I would use?
 
Old 09-03-2002, 08:46 AM   #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
Probably:
cdrecord dev=0,0,0 speed=16 -v -eject filename.iso

Cool

To get the dev numbers, cdrecord -scanbus will show you.

speed is your desired variable.

Don't forget to either cd to the directory, or include full pathname there.


Last edited by MasterC; 09-03-2002 at 08:47 AM.
 
Old 09-03-2002, 05:55 PM   #9
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If the original CD was bootable, then you won't need to do anything special... just burn the ISO as a complete image. If, however, the CD was not bootable, then you might want to look into El Torito (sp?).
 
Old 09-03-2002, 09:38 PM   #10
Rashkae
Member
 
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
If your CD-rom Supports it, add -dao as a switch to cdrecord (you'll get an error message if CD-RW doesn't work with dao option), otherwise, you won't be able to use the recorded cd as a master to make future copies.
 
Old 09-03-2002, 10:51 PM   #11
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Hi everybody, thanks to Stephaine, I took the time to code a scripting program cdcopy. It's freely distributed.

Copy the entire part beginning after the -- line. Open terminal/console. Type "vi", hit "i", paste, ESC & type ":wq" or "pico", paste, exit & save. Do

chmod 755 cdcopy

To run,

.cdcopy

P.S. You must change the write speeds according to your CD burner. Look at the numbering like 32x10x40 on the drive's front panel. 32x CDR burn speed. 10x CDRW burn speed. 40x read speed. Replace the numbers with the new ones like this:

before: cdrecord dev=0,0,0 speed=10 -v cd.iso;

after: cdrecord dev=0,0,0 speed=8 -v cd.iso;

There are only 2 lines that might need to be changed.

--
#!/bin/bash
#
# cdcopy
#
# This program copies a data CD to a CDR or CDRW.
# The only requirements are 650000 KB of disk space,
# a properly configured CD burner and a CDR/W.
#
# Original author: jet_blackz@lycos.com
#
#
echo
echo "cdcopy 1.00a Copyright (C) 2002 jet_blackz@lycos.com"
if [ -e cd.iso ]; then
echo " Erasing old cache file..."
rm cd.iso
fi
df
echo -n " Do you have 650000 or more available disk space? (y/n):"
read ANS
if [ $ANS = "n" ] || [ $ANS = "N" ]; then
{ exit; }
fi

echo -n " Insert a data CD into the CD burner and hit Enter:"
read ANS
echo " Copying data CD..."
dd if=/dev/cdrom of=cd.iso
echo " If you don't see errors, copying is complete."
ls -l cd.iso
eject /dev/cdrom

pintMainCount=0
until [ $pintMainCount = 1 ]
do

pintCount=0
until [ $pintCount = 1 ]
do
echo -n " Are you inserting a CDR or CDRW? (r/w):"
read ANS
if [ $ANS = "r" ] || [ $ANS = "w" ]; then
{ let pintCount=1; }
fi
done

if [ $ANS = "w" ]; then
{
echo -n " Insert a CDRW and hit Enter";
read ANS
echo " Erasing CDRW...";
cdrecord dev=0,0,0 blank=fast;
echo " Writing data CD...";
cdrecord dev=0,0,0 speed=10 -v cd.iso;
}
else
{
echo -n " Insert a CDR and hit Enter";
read ANS
echo " Writing data CD...";
cdrecord dev=0,0,0 speed=32 -v cd.iso;
}
fi

echo " If you don't see errors, writing is complete."
echo -n " Do you want to make another copy of this CD? (y/n):"
read ANS
if [ $ANS = "n" ]; then
{ rm cd.iso;
exit; }
fi
done
exit 0

Last edited by jetblackz; 09-03-2002 at 10:57 PM.
 
Old 09-04-2002, 07:29 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Sweet Thank you very much, I will give it a try a little later.

Very nice of ya, Cool
 
Old 09-04-2002, 08:47 AM   #13
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
You're welcome.

I'm plugging off more, as you can see.

Some of you might know where I come from by looking at the prefix of the variables.

I'll keep maintaining this. Send me comments good & bad. Hint hint: you can copy pretty much ANY CDs.

Until then, take care.

P.S. You must be root to run cdcopy properly.

Last edited by jetblackz; 09-04-2002 at 08:50 AM.
 
  


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
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM
What disks do I need Zuggy Linux - General 1 11-06-2004 02:59 PM
Which disks? desolator Linux - Newbie 8 12-01-2003 03:38 PM
Which disks? cap'n leaky Debian 1 11-01-2003 05:41 AM
New disks b0b0 Linux - General 1 11-25-2001 02:45 PM

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

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