Wednesday, November 25, 2009

Writing and Verifying a Floppy Image

First format a floppy with the following command:

fdformat /dev/fd0 (in Linux)
fdformat /dev/rfd0c (in OpenBSD)
format A: (in DOS)

Linux and OpenBSD

Insert a floppy and use the dd command to write an floppy image to the floppy diskette.

dd if=floppy46.fs of=/dev/fd0 bs=32k (in Linux)
dd if=floppy46.fs of=/dev/rfd0c bs=32k (in OpenBSD)

Use the following command to make sure that the image is written correctly to the floppy.

cmp /dev/fd0 floppy46.fs (in Linux)
cmp /dev/rfd0c floppy46.fs (in OpenBSD)

Windows and DOS

If you use Windows XP, Vista or Windows 7, use fdimage or ntrw to write the boot floppy. Make sure the floppy has been formatted first.

C:\> ntrw floppy46.fs a:
3.5", 1.44MB, 512 bytes/sector
bufsize is 9216
1474560 bytes written


C:\> fdimage -q floppy46.fs a:

In Windows 9x/ME or DOS, you can use rawrite to write your boot floppy.

C:\> rawrite
RaWrite 1.2 - Write disk file to raw floppy diskette

Enter source file name: floppy46.fs
Enter destination drive: a
Please insert a formatted diskette into drive A: and press -ENTER- :

About This Blog

KBlog logo This blog seeks to provide useful information to people, based on the author's knowledge and experience. Thanks for visiting the blog and posting your comments.

© Contents by KBlog

© Blogger template by Emporium Digital 2008

Follow by Email

Total Pageviews