CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 3 123 LastLast
Results 1 to 15 of 33

Thread: Mbr

  1. #1
    Join Date
    Jul 2010
    Posts
    15

    Mbr

    Hi Members

    How to read MBR table for FAT and NTFS?I am new in programing as well as forum,so please give me tutorial link or example?

    Forum ever reply help me.

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

    Re: Mbr

    Could you say why you need it (MBR)?
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Mbr

    You can just open the raw disk device:

    Code:
      CFile f,w;
      unsigned char buf[512];
    
      f.Open(L"\\\\.\\PHYSICALDRIVE0",0);
      f.Read(buf,512);
      f.Close();

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

    Re: Mbr

    Quote Originally Posted by hoxsiew View Post
    You can just open the raw disk device:
    That will only give you the data of track 0. It doesn't enable you to read the FAT/MBR if you don't know how to interpret the data of track 0.

  5. #5
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Mbr

    Quote Originally Posted by Skizmo View Post
    That will only give you the data of track 0. It doesn't enable you to read the FAT/MBR if you don't know how to interpret the data of track 0.
    Agreed, but the OP asked how to read it, not interpret it.

  6. #6
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Mbr

    the interpretation is just the same as when you would be able to read sectors explicitely as well. you would "need to know" how to interpret it then also.

    opening the disk as a physical volums essentially puts all the sectors of the disk one after the other and you can access it linearly using the known file functions. It takes the cylinder/track/sector calculations out of the issue so it's a lot simpler at least. But interpretation still is the same.

  7. #7
    Join Date
    Jul 2010
    Posts
    15

    Re: Mbr

    Quote Originally Posted by VictorN View Post
    Could you say why you need it (MBR)?
    For retrieve deleted folder and files.

  8. #8
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Mbr

    Quote Originally Posted by calme View Post
    For retrieve deleted folder and files.
    Why not just use one of the many utilities out there that do that already?

  9. #9
    Join Date
    Jul 2010
    Posts
    15

    Re: Mbr

    Quote Originally Posted by GCDEF View Post
    Why not just use one of the many utilities out there that do that already?
    Sir i need to write program.I know there are so many utilities present here.

  10. #10
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Mbr

    Quote Originally Posted by calme View Post
    Sir i need to write program.I know there are so many utilities present here.
    Sir, you have no posting history here and you're asking questions that indicate you could be up to no good. You won't get that kind of help here, so you'll need to explain why you're asking what you're asking.

  11. #11
    Join Date
    Jul 2010
    Posts
    15

    Re: Mbr

    Quote Originally Posted by GCDEF View Post
    Sir, you have no posting history here and you're asking questions that indicate you could be up to no good. You won't get that kind of help here, so you'll need to explain why you're asking what you're asking.
    Sir so many expert here.I ask How to read MBR table for FAT and NTFS? I think in MBR have some kind of information,so i ask How to read MBR table for FAT and NTFS.
    If i am wrong then please give me information how to get deleted folder and file.

  12. #12
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Mbr

    Quote Originally Posted by calme View Post
    Sir so many expert here.I ask How to read MBR table for FAT and NTFS? I think in MBR have some kind of information,so i ask How to read MBR table for FAT and NTFS.
    If i am wrong then please give me information how to get deleted folder and file.
    And I asked why not just download one of the utilities that are available, which is a reasonable question, and you got snippy.

    Personally, I have no idea, but if my goal was to retrieve deleted files, I'd let somebody else do the work and use what was out there.

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

    Re: Mbr

    Quote Originally Posted by calme View Post
    Sir so many expert here.I ask How to read MBR table for FAT and NTFS? I think in MBR have some kind of information,so i ask How to read MBR table for FAT and NTFS.
    What does MBR ( http://en.wikipedia.org/wiki/Master_boot_record ) have to do with File Allocation Table? with deleted folder and files?
    Victor Nijegorodov

  14. #14
    Join Date
    Jul 2010
    Posts
    15

    Re: Mbr

    Quote Originally Posted by GCDEF View Post
    And I asked why not just download one of the utilities that are available, which is a reasonable question, and you got snippy.

    Personally, I have no idea, but if my goal was to retrieve deleted files, I'd let somebody else do the work and use what was out there.
    ok sir i am waiting for document...

  15. #15
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Mbr

    Quote Originally Posted by calme View Post
    ok sir i am waiting for document...
    You don't seem to be paying attention here, but enjoy the wait.

Page 1 of 3 123 LastLast

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