FAT destroyed by dd:ing bootsector

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
SirTheori
Posts: 2
Joined: Thu Apr 02, 2015 8:51 am

FAT destroyed by dd:ing bootsector

Post by SirTheori »

Sorry if this has been asked before or is a stupid question,

I have followed the BrokenThorn tutorial for writing a stage 1 bootloader but when using dd to put it on a (FAT formatted) disk it removes the FAT and the file(s) on the disk.
Shouldn't this bootloader have FAT support?

BTW, I'm on Debian Jessie if that matters

Thank you for any help and please excuse my bad English.
User avatar
iansjack
Member
Member
Posts: 4707
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: FAT destroyed by dd:ing bootsector

Post by iansjack »

The very first bootloader in the Broken Thorn tutorial (Chapter 3) doesn't preserve the OEM Parameter Block, so will destroy the filesystem. The ones in Chapter 4 onwards shouldn't destroy the filesystem.
SirTheori
Posts: 2
Joined: Thu Apr 02, 2015 8:51 am

Re: FAT destroyed by dd:ing bootsector

Post by SirTheori »

Thank you!
Post Reply