LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-03-2008, 03:11 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
What Can Create a Bootable ISO


I have a OS CD / DVD which is obviously bootable however I want to create a bootable .ISO image from the CD / DVD rather than normally creating a bootable disk from the .ISO image.

Can someone please tell me what I need to do in order to get this .ISO file from the disk?

Thanks for any help!
 
Old 10-03-2008, 03:20 PM   #2
Linuxmaster001
Member
 
Registered: Sep 2008
Posts: 40

Rep: Reputation: 15
as far as i know you cant boot a .iso format, but maybe someone with more knowledge will tell you more. if you just need to make an .iso image that you can later burn to a cd/dvd so it will be bootable, that isnt a problem, you just do it like a normal non bootable cd/dvd.

Linux Archive

Last edited by Linuxmaster001; 10-06-2008 at 03:37 AM.
 
Old 10-03-2008, 05:16 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I would assume there has to be some kind of way. Lets say I have a bootable Linux DVD or CD and someone on my network wants this. I would assume there is a way to create a .ISO file from my DVD or CD and then pass the .ISO file over the LAN so the user can download it and then in turn create a bootable .ISO for himeself...
 
Old 10-03-2008, 05:28 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,318

Rep: Reputation: 126Reputation: 126
An image is an image is an image. If you actually create an actual image of an actual bootable drive, then by definition a CD made from that image will be bootable - regardless of where the person retrieves it from.

But, you cannot boot from an iso, unless you're talking about booting a virtual machine, such as VMware or VirtualBox. In both cases, you're actually mounting a CD from the image, so, you're booting a CD, not the actual iso.
 
Old 10-06-2008, 08:42 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Maybe I am not explaining this correctly. I have a Linux install CD, I want to take the CD and create an .ISO image from that CD so I can host it on a local server and other users can download the .ISO file later and create their own bootable CD's from...
 
Old 10-06-2008, 09:38 AM   #6
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Use the copy option in a CD writing program to create a .iso from the CD.
 
Old 10-06-2008, 10:52 AM   #7
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
If you want to make an ISO from the CD/DVD use this:

mkisofs -r -o your_file.iso /mnt/cdrom


make changes as needed.


The user can use deepburner/etc to burn the CD/DVD as a bootable disc.

Last edited by ncsuapex; 10-06-2008 at 10:54 AM. Reason: .
 
Old 10-06-2008, 11:16 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Quote:
Maybe I am not explaining this correctly. I have a Linux install CD, I want to take the CD and create an .ISO image from that CD so I can host it on a local server and other users can download the .ISO file later and create their own bootable CD's from...
I think this should be simple:
Code:
dd if=/dev/cdrom of=/path/to/my.iso
Once the iso is created you can check it like this:
Code:
mkdir /mnt/test
mount  -t  iso9660  -o  loop  /path/to/my.iso  /mnt/test
ls  /mnt/test
umount  /mnt/test
[Edit:] You need to be root for the above code block to work [/Edit]

Last edited by tredegar; 10-06-2008 at 11:17 AM.
 
Old 10-06-2008, 01:22 PM   #9
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by tredegar View Post
I think this should be simple:
Code:
dd if=/dev/cdrom of=/path/to/my.iso
Thanks - I am however doing something wrong. I placed a Microsoft OS install disk in my CDROM since that is what was closest to me at the time.

I placed the CD in /media/cdrom0 and it auto mounted. I am assuming the fact the drive is mounted in not an issue, right?

As we can see I can "ls" into the CD and see what I expect.

Code:
root@tunafish:/media/cdrom# ls -l
total 1540
-r-xr-xr-x 1 root root     110 2005-11-30 07:00 autorun.inf
dr-xr-xr-x 1 root root     334 2005-11-30 07:00 docs
dr-xr-xr-x 1 root root  256920 2005-11-30 07:00 i386
dr-xr-xr-x 1 root root     184 2005-11-30 07:00 printers
-r-xr-xr-x 1 root root    9643 2005-11-30 07:00 readme.htm
-r-xr-xr-x 1 root root 1306624 2005-11-30 07:00 setup.exe
dr-xr-xr-x 1 root root     142 2005-11-30 07:00 support
-r-xr-xr-x 1 root root      10 2005-11-30 07:00 win51
-r-xr-xr-x 1 root root      10 2005-11-30 07:00 win51is
-r-xr-xr-x 1 root root      10 2005-11-30 07:00 win51is.sp1
I then try to create an ISO image from the cd to /tmp.

Code:
root@tunafish:/media/cdrom# dd if=/media/cdrom0 of=/tmp
dd: opening `/tmp': Is a directory
Perhaps I need to give the file a name in the save directory so I did...

Code:
root@tunafish:/media/cdrom# dd if=/media/cdrom0 of=/tmp/test.iso
dd: reading `/media/cdrom0': Is a directory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000415041 s, 0.0 kB/s
What am I doing wrong?
 
Old 10-06-2008, 01:25 PM   #10
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
^ try my command


mkisofs -r -o your_file.iso /media/cdrom


may have to install mkisofs
 
Old 10-06-2008, 01:32 PM   #11
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by ncsuapex View Post
^ try my command


mkisofs -r -o your_file.iso /media/cdrom


may have to install mkisofs
I tried that however I don't think that ISO sizes looks right and it did it faster than I can blink my eyes...

Code:
root@tunafish:/home/cwilliams/Desktop# mkisofs -r -o test.iso /media/cdrom
I: -input-charset not specified, using utf-8 (detected in locale settings)
Total translation table size: 0
Total rockridge attributes bytes: 259
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
175 extents written (0 MB)
root@tunafish:/home/cwilliams/Desktop# ls -lh test.iso 
-rw-r--r-- 1 root root 350K 2008-10-06 13:31 test.iso
 
Old 10-06-2008, 01:40 PM   #12
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,318

Rep: Reputation: 126Reputation: 126
What will work is
Code:
dd if=/dev/dvd of=Something.iso
It may be that you need to use /dev/hdc or something like that if you don't have a /dev/dvd, but you do not want to use the mounted drive, and you do not want to direct the output to a directory. It so happens that I am copying a Windows install CD to an iso at this moment, and I will use that to install on virtualbox. My command was exactly this

Code:
dd if=/dev/hdc of=Win2K.iso
I took a quick look and /dev/dvd is simply a link to /dev/hdc, so I could have used either. Hmm. As it happens, the copy just finished, and virtualbox is now installing from the iso.
 
Old 10-06-2008, 01:43 PM   #13
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
Ive never tried to make an iso off an MS CD/DVD so not sure if that's a problem.

Reading through the man pages for mkisofs I see this:

Quote:
-J Generate Joliet directory records in addition to regular ISO9660 filenames. This is primarily useful when the discs are to be used on Windows machines. Joliet filenames
are specified in Unicode and each path component can be up to 64 Unicode characters long. Note that Joliet is not a standard only Microsoft Windows and Linux systems can
read Joliet extensions. For greater portability, consider using both Joliet and Rock Ridge extensions.

so maybe add a -J ?
 
Old 10-06-2008, 01:48 PM   #14
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Quote:
What am I doing wrong?
Maybe two things -
1] I wouldn't try to copy a MS CD like this - they probably have copy-protection. Try a linux distro CD.

2] "root@tunafish:/media/cdrom# dd if=/media/cdrom0 of=/tmp/test.iso
dd: reading `/media/cdrom0': Is a directory"

Yup, it is a directory, we need the device, which will be something like /dev/sdc1
Plug in the CD to wish to make an ISO of, and look at the output of mount to see what it is mounted as and where. For my kubuntu install CD I get this:
Code:
tred@vaio:~$ mount
/dev/sda6 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-19-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal,data=ordered)
tred@vaio:~$
So it is at /dev/sdb1
So the command should be
Code:
sudo dd if=/dev/sdb1 of=/home/tred/kubuntuCD.iso
You need to be root to access the device file



Wait!

I just tried this myself. dd keeps copying while the ISO file is >1.3GB and it's only a 700MB CD.
If I CTRL-c (stop) the dd command, and then try to mount the ISO, it fails:
Code:
root@vaio:~# mount -t iso9660 -o loop /home/tred/kubuntuCD.iso /mnt/test
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
I have always managed this with HDD partitions (dd to make an image, then mount with the loop option, and all is well), but maybe there is something strange with CD images. I'll have to think about this for a bit.
Sorry.

Can ncsuapex shed light on the problem?
 
Old 10-06-2008, 01:56 PM   #15
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
^ Im not sure why your ISO is over 1.3 GBs and the CD is 700MB, would have to think about that one. BUT if the DD command wasnt finished when you CTRL-C and you tried to mount the iso it will fail.. It didn't finish writing all its pieces to make it an iso...


Try your DD command and let it run till it's complete, then mount it.
 
  


Reply


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
How to create a CD bootable ISO image for 2.6.16 kernel vb_sridevi Linux - Newbie 4 06-25-2008 02:47 PM
Create bootable ISO? twistedpair Linux - General 11 11-13-2005 11:27 PM
how to create an iso BOOTABLE abd_bela Debian 1 06-04-2005 08:07 PM
Question: How to create a bootable install custom ISO? jsokko Linux - Software 6 04-20-2004 07:54 AM
unable to create a bootable cd from iso image abhijit Linux - Newbie 4 09-01-2003 05:16 PM

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

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