*cough*Kemp wrote: Just a quick point that no-one seems to have picked up, the boot sector is sector 0, not 1.
LBA sector 0, CHS cluster 0 head 0 sector 1.
In CHS, there is no sector 0.
*cough*Kemp wrote: Just a quick point that no-one seems to have picked up, the boot sector is sector 0, not 1.
Dumb question: CHS or LBA?Kemp wrote: Just a quick point that no-one seems to have picked up, the boot sector is sector 0, not 1.
Your disk is probably partitioned. That means that the first sector contains a partition table between 0x1be and 0x1fd which explains where the actual partitions are. The sector you found is probably from your partition, being the first sector in the partition. If your master boot record doesn't exist though, you still can't boot from it.OS ? wrote: Hi all.
I have run a disk sector editor on the usb stick and searched for a string that I know is in boot sector and found a good 1000 sectors into the usb memory stick. The first sector is what you would expect to find from a none bootable disk :-\
Is it possible to find out what sector I the boot sector is loaded from after it has been loaded and run ??? I cannot figure out why the boot sector is not located right at the beginning :-\. Anyway according to documentation I have
read the bios just see's it as being a harddrive! I have tried to create an image with the required code at the beginning but fasm runs out of memory (the image is about 119mb) with the intention of writing the entire image.
Thanks for everybody's help. I hope this extra infomation helps
Code: Select all
mov esi,446 ;offset from start of boot sector
mov al,byte[ds:esi]
cmp al,80h
jne LoadMbrError
mov dx,word[ds:esi] ; set DH/DL for INT 13 call
mov cx,word[ds:esi+2] ; set CH/CL for INT 13 call
mov [count],0
int13hloop1:
call FddRead ; int 13h call
jc HddTryAgain1
FAT16. FAT12 disks can not be that large (fat12 only supports 4086 clusters, which accounts for only 128-something MB, not 256), not counting that it would be very very wasteful.Dex4u wrote: Hi, first off i do not use XP but win98 for this.
but first make shore you highlight Fat not fat32 as fat is short for fat12