Avatar of star6868
star6868

asked on 

How to Read / Write sector on physical hardisk in Linux?

I want to read/write sector on Physical Hard Disk in Linux.

In MS-DOS, it can do by call Interupt (C language):
 asm {
    mov ah,0x41
    mov bx,0x55aa
    mov dl,DISK
    int 0x13
    mov r,ah
  }

In Windows, I already done.

But In linux, How to do this?

Thanks!
Editors IDEsLinux

Avatar of undefined
Last Comment
star6868

8/22/2022 - Mon