Page 1 of 1
Write to second sector of floppy
Posted: Fri Feb 07, 2003 7:03 pm
by damonbrinkley
Anyone know the command to tell dd to write to the second sector of a floppy diisk in Linux? I'm trying to write something to the sector after the bootsector.
Re:Write to second sector of floppy
Posted: Sat Feb 08, 2003 12:55 am
by gtsphere
try this:
dd if=yourfile of=/dev/fd0 bs=512 seek=18
Re:Write to second sector of floppy
Posted: Sat Feb 08, 2003 3:17 am
by Tim
Where does 'seek=18' come from? Surely the second sector is block 1, i.e. seek=1.
Re:Write to second sector of floppy
Posted: Sat Feb 08, 2003 5:15 am
by distantvoices
seek=1 = sector 1, seek=18 = sector 18 as far as i have found out .
Re:Write to second sector of floppy
Posted: Sat Feb 08, 2003 7:42 am
by damonbrinkley
Thanks guys. I'll try that out this afternoon.
Re:Write to second sector of floppy
Posted: Sat Feb 08, 2003 11:13 am
by Schol-R-LEA
It has, however, occurred to me that logical sector 18 is the first sector of the second track. Perhaps there's been a bit of confusion here...
(Note that this assumes zero-indexed sectors. While dd(1) and just about all other Linux utilities use 0-indexing, the BIOS INT 13h routines use 1-indexing for the sectors and 0-indexing for everything else. This has been the source of considerable confusion in the past.)