All Things Microsoft > Microsoft Software
using rawwrite
voidmain:
And if you have trouble with the DOS version here's a Windows version:
http://uranus.it.swin.edu.au/~jn/linux/rawwrite.htm
Calum:
so, what about if somebody had, say, a floppy image of size 1.44 Mb called something.bin and it's a one floppy distro of an operating system, and they wanted instead of putting it on a floppy (for booting off of) to put the bootable image on a CD or a hard drive partition?
this isn't a rawrite question, i know, but just interested in how to do this, and it is related... could one just create the bootable floppy, then copy the files?
voidmain:
If you wanted the bootable image of a floppy on a hard drive partition you could create a small partition and "dd" it to that partition just like you would to the floppy. Say you create a 2MB /dev/hda2. You would "dd if=floppy.img of=/dev/hda2" which you could then set partition 2 active and boot it just as if you were booting from floppy. Now if you just want to copy the files from the image you can either dd the image to floppy, mount it and copy the files, or just mount the image file itself:
mount floppy.img /mnt -o loop
Then "cd /mnt" and there's your floppy filesystem.
And if you wanted it to be a bootable 1.44MB CD (what a waste of space) just use "cdrecord" or "xcdroast" just like you would with any *.ISO image. I believe that would work, haven't actually tried it. It wouldn't be an iso9660 file system so it may not work. But I do know for sure that the hard drive trick will work because I've done it on a system that I only had a network card on and no floppy or CD (and an already running Linux partition where I downloaded the bootnet disk image and wrote it to a spare partition, then booted from that partition and did a network upgrade/install).
[ May 09, 2002: Message edited by: VoidMain ]
Calum:
x11, that sounds fab! does it run directly off the CD with no need to install? if so, can i get a copy? ;)
thanks a lot for that VoidMain, i never would have expected it to be so simple! cdrecord doesn't support my USB CDwriter though, but that's not what i want really, i just want to put PicoBSD on my hard drive. I also have Trinux which i want to put there, it's in 3 different floppy.img type files, and comes with a DOS .bat file to write them to floppy, now that i know about dd though, i will go and have a shot.
Scorcher2005:
Thanks for that Windows version of Rawwrite Voidmain. It worked! Now i cant seem to get the bootdisk to work!!!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version