Linux Lite Forums

Hardware - Support => Hard Drives and SSDs => Topic started by: dks on December 29, 2018, 04:17:40 PM

Title: floppy boot sector
Post by: dks on December 29, 2018, 04:17:40 PM
Using C how to read the floppy drive boot sector (connected to USB port)
Title: Re: floppy boot sector
Post by: torreydale on December 29, 2018, 09:13:42 PM
You might want to try re-explaining.  I've read this several times, and I'm not sure what you're asking. 
Title: Re: floppy boot sector
Post by: dks on December 30, 2018, 05:25:56 AM
I want to read the FAT boot sector of a floppy disk. The floppy drive is connected to  a USB port
Title: Re: floppy boot sector
Post by: torreydale on December 30, 2018, 07:37:07 AM
Are you not seeing what you want when doing a web search on something like "how to read the fat boot sector of a floppy disk using linux"?
Title: Re: floppy boot sector
Post by: dks on December 30, 2018, 10:58:21 AM
yes
Title: Re: floppy boot sector
Post by: Nenad Randjelovic on January 01, 2019, 02:44:52 AM
I don't have a working floppy disk to test out with Linux, but I hope these sites help you out.

FAT File System: http://www.c-jump.com/CIS24/Slides/FAT/lecture.html
C Progam that reads FAT: https://github.com/pda/cfat16
Floppy disk block device manual: https://linux.die.net/man/4/fd

Do you have any sample code you can share? Or tell us the errors that you are getting if any?