LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2008, 10:36 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
Creating a CD or DVD image with mkisofs


Hello back!

I use the following command to create a CD or DVD iso from a folder (/backups). This, thanks to keefaz who helped me a lot with this subject.

mkisofs -o ~/iso_images/databurn.iso -r -J /backups

Now, I would like to be able to create an iso image from the CD or DVD I insert. How do I tell mkisofs to use the CD or DVD instead of a folder?

Thanks again my friends,
Glore2002.-
 
Old 09-07-2008, 11:15 AM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
If you're just trying to rip the CD/DVD in its entirety, you can just use 'dd' to copy the entire CD/DVD to a .iso file. The following command should work:
Code:
dd if=/dev/hda of=~/iso_images/cdimage.iso
Replace /dev/hda with the location of your CD/DVD drive (or use /dev/cdrom or /dev/dvd).
 
Old 09-07-2008, 11:53 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Also, for mkisofs, I recommend you use '-graft-points', otherwise it will put every file in root directory of CDROM. I usually use these options:

Code:
-graft-points -rational-rock -full-iso9660-filenames -iso-level 2
 
Old 09-07-2008, 06:15 PM   #4
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by H_TeXMeX_H View Post
Also, for mkisofs, I recommend you use '-graft-points', otherwise it will put every file in root directory of CDROM. I usually use these options:

Code:
-graft-points -rational-rock -full-iso9660-filenames -iso-level 2
Thanks for your help TeXMeX. Let's see if I understood: Instead of using:

Code:
mkisofs -o ~/iso_images/databurn.iso -r -J /backups
I should use:
Code:
mkisofs -o -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 ~/iso_images/databurn.iso -r -J /backups
Is that correct?

Thanks again,
Glore2002.-
 
Old 09-08-2008, 03:21 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Not quite, it would have to be:

Code:
mkisofs -o ~/iso_images/databurn.iso -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 -r -J /backups
'-o file' is where the iso will be put. Check the man page for a complete explanation.
 
Old 09-08-2008, 05:18 PM   #6
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Thanks!

Thanks H_TeXMeX_H. I've modified the script according to your suggestion.

I appreciate your help!

Thanks again,
Glore2002.-

Last edited by glore2002; 09-08-2008 at 06:31 PM.
 
  


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
Creating iso image and mounting them (DVD+R, not CD-R) lawrence_lee_lee Linux - Software 1 01-14-2008 12:54 AM
Using mkisofs to make a DVD ISO image mcfiddish Linux - Software 5 07-16-2007 03:32 AM
mkisofs erro dvd image strycnine Linux - Newbie 10 09-05-2006 07:04 AM
2 GB file limit when creating an image with mkisofs ccasares Linux - Newbie 5 12-26-2004 07:48 PM
Creating dvd iso image chevy2410 Linux - Software 1 06-08-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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