Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...