CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2012
    Posts
    5

    Thumbs down CHS or LBA translation

    I only have the MBR of my Hard Disk now I need to know in what sector is the boot sector to read this but I don't know how to find with the CHS. How to find the boot sector through LBA?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: CHS or LBA translation

    And what does it have to do with Visual C++ programming?
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2012
    Posts
    5

    Angry Re: CHS or LBA translation

    What a DUMB question!!! <<comment removed by admin >>Is obvius is OF COURSE that is possible to read and write in the first sector of a hard disk using MSVC!!!
    Last edited by Brad Jones; May 1st, 2012 at 09:01 PM. Reason: negative comment unnecessary

  4. #4
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: CHS or LBA translation

    Calling the people you are asking for help dumb isn't really helping...

  5. #5
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: CHS or LBA translation

    Yes it's possible but if you run under anything NT based it's not possible to do that from user space.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  6. #6
    Join Date
    Apr 1999
    Posts
    27,449

    Re: CHS or LBA translation

    Quote Originally Posted by 0x3D0 View Post
    What a DUMB question!!! You must be a BRAINOFF to say this Is obvius is OF COURSE that is possible to read and write in the first sector of a hard disk using MSVC!!!
    It is possible to write any program that does anything you want it to do in Visual C++. So if I want a program that keeps my bread recipes in order, and I don't mention anything about Visual C++, how does that help the discussion? You need to ask a specific question pertaining to Visual C++. If you have a problem declaring something, a struct is not defined when you compile, a missing header that should be there, etc. then ask about that.

    As to your question:
    I only have the MBR of my Hard Disk now I need to know in what sector is the boot sector to read this but I don't know how to find with the CHS. How to find the boot sector through LBA?
    The answer to that need not even be a program, regardless of the language. It could just as well be a basic description of what to do in general.

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; April 29th, 2012 at 07:55 PM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured