LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-07-2003, 11:17 PM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
General commands to make an ISO


If I wanted to make an iso from my mandrake cd's, what commands would I need to use in mkisofs? I have looked at the man pages but there is a lot of stuff in there that I am unsure if I need them or not.
 
Old 10-08-2003, 01:29 AM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
You don't use mkisofs. That command is used to make an iso from data that isn't in iso format. But since you are trying to copy the existing iso structure from your CD, the command you want is dd. Assuming that your cdrom is /dev/hdc, you would use this command:

dd if=/dev/hdc of=image.iso

This will make an iso file named (you guessed it) image.iso.

Enjoy!
--- Cerbere
 
Old 10-08-2003, 02:50 AM   #3
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
You must right, because I tried to make an ISO image for a cd copy of my Mandrake 9.1 CD mounted at /mnt/cdrom:

mkisofs -R /mnt/cdrom/* -o mandrake9_1.iso

But this failed, I believe because of two README files that couldn't be included or something like that.
But I _could_ copy my quake2 cd this way.

Isn't it true that you *usually* make .iso files with mkisofs? Why is it mandatory to use dd for such an occasion?
 
Old 10-08-2003, 03:17 PM   #4
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
Thanks guys, I'll try out the dd command
 
Old 10-09-2003, 12:54 AM   #5
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Perhaps instead of saying 'you don't use mkisofs', I should have said 'you don't have to use mkisofs'

The difference between these two commands is that 'dd' is simply copying data (the dd stands for duplicate data), whereas mkisofs has to construct a new iso filesystem from existing data. The advantage of using dd is that there is already an iso filesystem on your cd, so it is simpler (for the computer) and more reliable to copy the entire filesystem to a single file, and to do this, you use the dd command.

If you have mounted your cd (which you don't have to do for the dd method), then the mkisofs command that you list should work, wuck. Though I would use '-r -J' instead of '-R', in order to use Joliet directory records with the simpler Rock Ridge protocol. This will ensure that your disk is compatible with windows (Joliet) and portable to other Linux machines (Rock Ridge minus uid/gid/permissions). However, mkisofs is more appropriate for making an iso image from a group of files on your hard drive, since they need to be 'converted' to the iso filesystem.

Enjoy!
--- Cerbere
 
Old 10-09-2003, 07:03 AM   #6
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
Quote:
Originally posted by Cerbere
[The difference between these two commands is that 'dd' is simply copying data (the dd stands for duplicate data), whereas mkisofs has to construct a new iso filesystem from existing data.
Ah, I see. Because you use the unpacked iso file, you can simply copy it. But I had a Mandrake 9.1 CD copied to my harddrive, which then I should have converted to iso by the command you said:

Quote:
If you have mounted your cd (which you don't have to do for the dd method), then the mkisofs command that you list should work, wuck. Though I would use '-r -J' instead of '-R', in order to use Joliet directory records with the simpler Rock Ridge protocol. This will ensure that your disk is compatible with windows (Joliet) and portable to other Linux machines (Rock Ridge minus uid/gid/permissions). However, mkisofs is more appropriate for making an iso image from a group of files on your hard drive, since they need to be 'converted' to the iso filesystem.
Right?
 
Old 10-09-2003, 07:40 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you can even use cat
cat /dev/cdrom > poo.iso
the devices are part of what makes linux sweet.
 
Old 10-10-2003, 12:42 AM   #8
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
That's it, wuck :-)

I didn't know you could use 'cat' for this, whansard. Thanks.

Enjoy!
--- Cerbere
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
make; make install commands in SuSE Linux 9.1 Personal johnerskine Linux - Newbie 6 06-23-2004 10:18 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM
How do I make procmail recognize ISO encoded subject headers (=?ISO-)? xeza Linux - Software 0 10-06-2003 01:16 PM
general commands FLOODS Debian 7 10-03-2003 09:32 AM
General Commands Agileuk Linux - Newbie 2 09-27-2003 05:15 PM

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

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