Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading From Floppy Disk

Status
Not open for further replies.

sun1350

Technical User
Apr 7, 2000
13
0
0
MY
Visit site
I have mounted my floppy (/dev/hda0) to /mnt/floppy. The mounting was successful. However, I'm not able to see anything when I executed the ls command in the /mnt/floppy directory. It seems that it is not reading from my floppy disk. What is wrong?<br><br><br>My second question is I have a linux boot disk and I would like to make a backup copy of it incase the original copy is corrupted. How could I do that?<br><br>Thanks....
 
OK, one thing at a time...<br><br>What format is the floppy in?&nbsp;&nbsp;And what filesystem type did you use when you mounted it?&nbsp;&nbsp;If it's DOS formatted, the following should work:<br><FONT FACE=monospace><br>mount -t msdos /dev/fd0 /mnt/floppy<br></font><br>Or, alternatively:<br><FONT FACE=monospace><br>mount -t vfat /dev/fd0 /mnt/floppy<br></font><br>The first will mount all MS-DOS/Windows formatted floppies.&nbsp;&nbsp;The second will as well, but it understands long file names.<br><br>As to backing up your boot floppy, you can use dd:<br><FONT FACE=monospace><br>dd if=/dev/fd0 of=/tmp/boot.img<br><i>Insert a new floppy</i><br>dd if=/tmp/boot.img of=/dev/fd0<br></font><br>dd will take a byte for byte copy from the input file (<b>if<b>) and place it in the output file (<b>of</b>).&nbsp;&nbsp;So, the first dd command reads from the floppy and write to a file.&nbsp;&nbsp;The second dd reads from the file and writes back to the floppy.<br><br>Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top