Click to See Complete Forum and Search --> : creating DOS bootable disk from linux


crokett
07-26-2001, 11:14 AM
i can run makefs -t msdos to create a FAT filesystem on a disk. Is it possible to transfer the DOS system files from within Linux - similar to the format /s command in DOS?

thanks

Nalle
07-26-2001, 01:17 PM
Yes, you can, but you will need an image (to get the system files).

You create that by using 'dd if=/dev/fd0 of=/some/directory/somefile.img' on a dos bootable diskette.

Then you can fetch the image's systemfiles via a script while formatting the diskette.

However, since you already got a image to fetch the system files from, and it will require som heftig scripting to make this work,it's surly easier just to type'dd if=/some/directory/somefile.img of=/dev/fd0' and write the image out to a diskette again.


</nalle>

crokett
07-26-2001, 03:45 PM
ok, so basically I can create an image of a bootable diskette, then shove that image back out? cool. i think that is what I needed. That way is it also applicable to a HDD, just by making the of or if=/dev/hda1 or another partition?

thanks