Advertisement

07.19.2008 at 09:43PM PDT, ID: 23579723
[x]
Attachment Details

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

Asked by star6868 in Linux, C / C++ / C# Editors and IDEs

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!Start Free Trial
 
Loading Advertisement...
 
[+][-]07.20.2008 at 08:35PM PDT, ID: 22047907

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, C / C++ / C# Editors and IDEs
Sign Up Now!
Solution Provided By: duncan_roe
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.22.2008 at 04:55AM PDT, ID: 22058326

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 10:17PM PDT, ID: 22076256

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628