Re: dd image "auspacken"



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
.



Relevant Pages

  • Re: installation problems
    ... RH 9 had trashed my Linux partition and rendered my PC unbootable. ... >you can create the floppy from and can be created on a differnet ... >on the CD as the floppy boot image. ... and since flash drives seem to be listed in /proc as scsi devices, ...
    (comp.os.linux.misc)
  • Re: Windows multiboot (aaargh!)
    ... I've done that with my DOS floppy. ... > seems that creating a Linux boot disk is a rather more complex procedure. ... >> FDISK showing partitions swapped, ...
    (Debian-User)
  • Re: [opensuse] Beginner: How do I mount a floppy disk? Summary
    ... insert floppy ... mount: mount point /media/fd0 does not exist ... Thomas, you're a PhD, but that doesn't make you a Linux expert, or even a ... Windoze, despite your current experience. ...
    (SuSE)
  • Re: How can I lock down a Red Hat system?
    ... >>> does know Linux I don't want the to be able to run command and get ... is that gdm will do some setup and then start the X server ... booting the computer from a floppy. ... Boot from floppy to install ...
    (comp.os.linux.security)
  • Re: panteltje.com server down due to technical problem
    ... Reboot, BIOS checksum error, insert system floppy disk.... ... Anyways, I found an old win98 floppy, but how to get that flash utility and BIOS image on it??? ... You can just plug those in the USB of the laptop and can mount it as mass storage device in Linux. ...
    (sci.electronics.design)