I simply made a following bootloader
jmp $
times 510 - ($ - $$) db 0
db 0x55
db 0xaa
then I did following
nasm bootloader.asm -o bootloader
dd if=bootloader of=/dev/sdb bs=512 count=1
I tested on 2 computers. I set usb hdd as highest boot priority for both computer.
Old computer with Intel Pentium M process (lenovo) boot with the bootloader from usb drive
but Newer computer with Intel i5 process(lenovo) says that there's no operating system.
(if there's hdd on boot sequence, the usb led blinks several times and the computer boot from hdd drive. if there's no hdd on boot sequence, An error Operating System Missing occurs)
I opened a ubuntu utility called 'Bless' as super user and check /dev/sdb
indeed there is 0x55 0xaa at the 0x1fe and 0x1ff respectively.
I have no idea why I can't boot with it on some computer.
both computer has same UEFI setting, boot priority, no password.
please help