Results 1 to 2 of 2
hi ,i want to wirte a file (boot.bin) to my usb flash drive's boot sector with c++(or assembly) to boot my pc with usb.
i tried ah=03 , int 13 ...
- 12-27-2008 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 3
write at usb bootsector
hi ,i want to wirte a file (boot.bin) to my usb flash drive's boot sector with c++(or assembly) to boot my pc with usb.
i tried ah=03 , int 13 and i was failed many times.
how can i do this?
thanks
- 12-27-2008 #2
You want to invoke real-mode BIOS functions, but Linux switches to protected mode when it boots.
You can use the dd userspace program to write bytewise to any device.
Type "man dd".Debian GNU/Linux -- You know you want it.


Reply With Quote