Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Making CD/DVD images< Next Oldest | Next Newest >
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Feb. 23 2007,17:14 QUOTE

Am I assuming right if it's this simple:
Code Sample
cat /dev/cdrom >> cdimage.iso
or
Code Sample
cp /dev/cdrom cdimage.iso


Or as compressed:
Code Sample
bzip2 /dev/cdrom >> cdimage.iso.bz


Is any of those the right way?


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 23 2007,20:32 QUOTE

it's generally done either with dd or mkisofs.  Using the methods you mention (with the exception of cat, perhaps?) do not properly keep the filesystem and file permissions/ownership intact, so you're essentially just making a backup of the files themselves.

"dd if=/dev/cdrom of=cdimage.iso" is probably the simplest way.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Feb. 23 2007,21:53 QUOTE

Ok.
So with command dd it's for sure. dd makes exact copies?

So..
Code Sample
dd if=/dev/cdrom | bzip2 >> cdimage.iso.bz2
Is the best/easiest way to make it compressed?

Actually 7zip would be the best to archive best compression.
http://warp.povusers.org/ArchiverComparison


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 23 2007,22:38 QUOTE

As far as I can tell you, dd makes exact copies.
I've only used it maybe 6 or 7 times in my life, but it seems to be pretty much a cloning tool

Your code sample looks like it should work as expected.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Feb. 23 2007,23:00 QUOTE

Some things in UNIX world just are more simple than in Windows world. =)

But on to next question:
Let's say:
I have my hard disk image named hd.iso.
I want to put all the data back from it to hda.
I have made the image like this:
Code Sample
dd if=/dev/hda of=hd.iso

If I do this:
Code Sample
cat hd.iso >> /dev/hda
I belive it writes all the data back to it (boot sector, partition table, contents, etc...)?

But if I create image from a partition (for example /dev/hda1) it includes only the contents of that partition (excluding partition info, bootsector; but including file permissions)?

Back in the days when I used Macintosh I could create CD:s with partitions more than one. So if I had 650Mb hard disk around here divided to two or more partitions and I make image of it. Then burn to CD. The CD would have those partitions? If so, how would the partitions be shown in /dev?


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
9 replies since Feb. 23 2007,17:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Making CD/DVD images

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code