LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2005, 06:31 PM   #1
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
iso-ing a disk


Hi.

I'm burning a bunch of iso's into a disk, as files (and not images) for archiving purposes.

I have this Mandrake 10.1 disk. I used k3b to make an ISO out of it by using the DVD copying dialog, and saving the image as mdk10_1.iso ... I need to do this because I delete the image that I downloaded, and want it back by ISO-ing the physical disk.

when I md5 the new image, I get the wrong MD5...

So I delete the image, and md5sum /dev/cdrom instead. The MD5 is the correct one. I assume it's just an error and redo the image. When I MD5 the image again, it's still the incorrect, but same MD5 as before...

something I'm missing? What would be the better command line alternative to making an ISO?
 
Old 07-02-2005, 07:13 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Well, I've always used "dd if=/dev/cdrom of=MY_ISO.iso" to make them. Adding bs=8k can speed things up a bit. (Some drives may work better with other blocksizes, YMMV)
 
Old 07-02-2005, 07:18 PM   #3
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Original Poster
Rep: Reputation: 30
I found the solution before reading this, but you are right

The command I used was :
dd if=/dev/cdrom of=mdk10_1.iso bs=2048 count=`isosize -d 2048 /dev/cdrom`

and it gives me the exact MD5...

thanks!
 
Old 07-02-2005, 07:23 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Try:
dd if=/dev/cdrom of=/path/to/somewhere/mandy10.iso

Replace /dev/cdrom with whatever your DVD device is, and the /path/to something sensible. Of course.

Dave

Last edited by ilikejam; 07-02-2005 at 07:25 PM.
 
Old 07-02-2005, 07:26 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
As far as I know, you should be able to do it without the count of blocks: it will automatically end when it reaches the end of the disk.
 
Old 07-03-2005, 01:28 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
I just use cat...
Code:
cat /dev/cdroms/cdrom0 > image.iso
 
Old 07-03-2005, 11:40 AM   #7
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Original Poster
Rep: Reputation: 30
if I understand well, an iso is just an raw image of the media being copied?

No extra bah-ding-bah-dang in there?

cool, that's make things a lot simpler
 
Old 07-03-2005, 11:54 AM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Quote:
Originally posted by mimithebrain
if I understand well, an iso is just an raw image of the media being copied?

No extra bah-ding-bah-dang in there?
That's it exactly. It's an image of an ISO9660 filesystem, which is the filesystem that is used on CDs (and most DVDs).
You can also make images of any filesystem (including hard drives) using the same 'dd' command.

Dave
 
Old 07-03-2005, 12:05 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Or the same cat command. Don't you love how many different ways you can accomplish something in linux?
 
Old 07-04-2005, 09:12 PM   #10
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Yup. It makes everything simpler when in linux, on a terminal.

Nice, well, that good to know. I worked with dd before when doing floppy copies and qemu.

ahhhhhhh... the simplicity ^-^
 
  


Reply

Tags
disk, iso


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
Problem with Boot.iso disk ? jmr0311 Mandriva 21 12-01-2005 11:31 PM
Install from hard disk with ISO JermJHart Mandriva 1 11-24-2004 01:50 AM
making a ISO of my hard disk Bradless Linux - General 10 08-17-2004 12:46 PM
ISO DISK 3 What is it for? and one more question! BigdaddyChuck Fedora 1 03-17-2004 11:18 AM
Creating an ISO from a Disk(Unreal Tournament 2003 Disk 2) Mustard010 Linux - General 15 11-12-2003 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:50 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