Re: dd image "auspacken"
- From: Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx>
- Date: Fri, 30 Dec 2005 10:12:58 -0600
On Fri, 30 Dec 2005 16:39:36 +0100, Enrique Perez-Terron staggered into
the Black Sun and said:
> On Fri, 30 Dec 2005 12:47:11 +0100, Andrew Preater
> <preater+usenet@xxxxxxxxx> wrote:
>> * Christian Maier <tomtailor@xxxxxxxxxxx>:
>>> I recived a dd maked floppy-image-file with a bootable linux kernel
>>> on it. I have no linux here and no floppy. So i would like to get
>>> these dd file onto a CD.
I'm surprised that nobody's mentioned the appropriate mkisofs commands
yet. "mkisofs -r -J -b floppyimage.raw -c boot.cat -o output.iso
/path/to/files" will write an ISO9660 file called "output.iso"
containing floppyimage.raw as the -boot floppy and boot.cat as the
-catalog, with /path/to/files on the ISO as well. You can burn this ISO
file to a CD-R blank with whatever you want. Note that floppyimage.raw
must be 1.44 or 2.88M in size; if you have the 1.7M Tom's RootBoot
image, you need to get the 2.88M one instead.
I believe that some CD-burning programs for 'Doze have the -b and -c
options, but they call them different things. Consult your manual for
Acraptek Sleazy CD Cremator or whatever; it'll probably be under the
keyword "bootable".
> I read not so long ago about a way of accessing the raw devices under
> Windows. Unfortunately I can't remember even the keywords used, so it
> would take me quite some time to find back to it. (They did of course
> not call it "raw device".)
I think this snake in the grass is barking up the wrong tree. The OP
doesn't need to fiddle with raw devices to burn a bootable CD. But:
HANDLE tapehandle;
tapehandle=CreateFile("\\\\.\\Tape0", GENERIC_READ | GENERIC_WRITE,
0, 0, OPEN_EXISTING, NULL);
if(tapehandle == INVALID_HANDLE_VALUE)
barf();
/* various tape-specific things like PrepareTape() are used instead of
* ioctl() here. ReadFile() and WriteFile() get used on the handle.
* It's fairly simple, just ... weird and verbose compared to the Unix
* Way. */
> To use it, if I recall correctly, you will have to write a small C
> program or so ... And of course search the Knowledge Base until you
> hit upon the magic term they used for it.
See above. The functions used for *tapes* are documented, but sort-of
hidden in MSDN. The functions used for *disks* may not be. Finding the
device names can be the hard part; you can't "DIR \\.\" or anything.
ISTR that opendir()ing \\.\ and trying to readdir() it didn't work
either. *Sigh*, half-assed /dev implementations make Baby Cthulhu
cry....
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
.
- References:
- dd image "auspacken"
- From: Christian Maier
- Re: dd image "auspacken"
- From: Andrew Preater
- Re: dd image "auspacken"
- From: Enrique Perez-Terron
- dd image "auspacken"
- Prev by Date: Re: dd image "auspacken"
- Next by Date: Re: Can I throw windows completely?
- Previous by thread: Re: dd image "auspacken"
- Next by thread: RAD tool? web?
- Index(es):
Relevant Pages
|