OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 1:19 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Linux and bootsectors
PostPosted: Thu Feb 21, 2002 12:00 am 
Under Linux, how do I get my bootsector to a FAT12 floppy. I know how to do it with PartCopy under Windows. My guess is that I have to use DD under Linux.

Thanks in advance,
K.J.


Top
  
 
 Post subject: RE:Linux and bootsectors
PostPosted: Thu Feb 21, 2002 12:00 am 
>On 2002-02-21 03:07:29, K.J. wrote:
>Under Linux, how do I get my bootsector to a FAT12 floppy. I know how to do it with PartCopy under Windows. My guess is that I have to use DD under Linux.
>
>Thanks in advance,
>K.J.
I think it was "dd in=YourBootsector out=/dev/fd0", but I'm not sure!!!

The Legend


Top
  
 
 Post subject: RE:Linux and bootsectors
PostPosted: Thu Feb 21, 2002 12:00 am 
>On 2002-02-21 10:18:36, Anonymous wrote:
>>On 2002-02-21 03:07:29, K.J. wrote:
>>Under Linux, how do I get my bootsector to a FAT12 floppy. I know how to do it with PartCopy under Windows. My guess is that I have to use DD under Linux.
>>
>>Thanks in advance,
>>K.J.
>I think it was "dd in=YourBootsector out=/dev/fd0", but I'm not sure!!!

Close, dude :)

I'm pretty sure it's
dd if=./bootSect of=/dev/fd0

if = input file
of = output file

However, you're probably gonna want to put a size
argument in there as well... it _might_ go
beyond your 512 bytes, unless you specifically
tell it not to.

Also, note that the size argument (I think it's
just size=x, but check the man page to be sure)
is based on block size, which, for a floppy device,
would no doubt be 512 bytes, so set size to 1,
not 512.

Jeff


Top
  
 
 Post subject: RE:Linux and bootsectors
PostPosted: Sat Mar 09, 2002 12:00 am 
Here's what I found(haven't had time to test it yet though):

dd if=my_boot skip=0 count=3 of=/dev/fd0
dd if=my_boot skip=36 count=476 of=/dev/fd0 seek=36

K.J.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: scippie and 77 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group