1 |
On Sun, 17 Dec 2006, Grant wrote: |
2 |
|
3 |
> Does anyone know if there are any special options I should use with |
4 |
> mkisofs to create a perfect copy of an XP CD including making it |
5 |
> bootable? |
6 |
|
7 |
If you're making copy of a CD-- if you're trying to *clone* it-- then you |
8 |
shouldn't use mkisofs. (Recommendations for cloning are found below.) |
9 |
|
10 |
In order for you to be able to use mkisofs this way, you'd have to mount |
11 |
the CD somewhere, recursively copy its contents somewhere else, use |
12 |
mkisofs to reconstitute those contents into a new iso9660 image, and then |
13 |
burn that image. |
14 |
|
15 |
Somewhere between the copy and mkisofs steps you'd lose whatever "magic" |
16 |
it was that made that CD unique. If the original CD contained an El |
17 |
Torito bootable image, then it would be gone (since the El Torito image |
18 |
isn't accessible from the mounted iso9660 filesystem). If the iso9660 |
19 |
image contained bad sectors on purpose, then the sectors would be |
20 |
recreated correctly during the mkisofs. |
21 |
|
22 |
If you're just trying to clone an existing CD without changing any of its |
23 |
contents, it's simpler and more reliable to do it the old fashioned way: |
24 |
|
25 |
$ dd if=/dev/cdrom of=cd-image.iso |
26 |
$ cdrecord dev=(whatever) -v cd-image.iso |
27 |
|
28 |
If you really want to take a CD, change its contents, and then burn it so |
29 |
that it's still bootable, you'd need to find a way to extract the El |
30 |
Torito image from the original CD and restore it to the copy. |
31 |
|
32 |
I rarely need to do this, so I can't offer much useful advice. If there |
33 |
exist utilities in portage which are capable of extracting an El Torito |
34 |
image from a CD, then I don't know about them. (Anyone?) |
35 |
|
36 |
The following turns up on sourceforge; if it works for you, then you might |
37 |
consider making an ebuild and filing a bug to have it added to the tree: |
38 |
|
39 |
http://eltoritoextract.sourceforge.net/ |
40 |
|
41 |
Anyway, once you extract your El Torito image from the CD, you wind up |
42 |
with (IIRC) a 1.44 or 2.88 MB file whose contents are a dump of a regular |
43 |
bootable floppy disk. |
44 |
|
45 |
When you make your new iso9660 filesystem, you can shove this El Torito |
46 |
image back into the new CD by passing "-b eltorito_boot_image" to mkisofs. |
47 |
(See mkisofs(1).) From there, you burn as usual. |
48 |
|
49 |
Paul Thurrott discusses this practice from a Windows perspective. Even if |
50 |
the execution is different, the concepts remain the same: |
51 |
|
52 |
http://www.winsupersite.com/showcase/windowsxp_sp2_slipstream.asp |
53 |
|
54 |
Joe |
55 |
-- |
56 |
gentoo-user@g.o mailing list |