2012年6月19日 星期二

[HOWTO] Check MBR Infomation Under Linux

Problem: What is the easy way to see the content of the MBR (Master Boot Record) on a hard disk, say, /dev/hda ?


Answer:




1. Use dd to copy the MBR to a file, open a shell/terminal and type:


   dd if=/dev/sda of=mbr.bin bs=512 count=1


This is because MBR is 512KB only.


2. Examine the dumped mbr.bin using command file in linux


   file mbr.bin


You should get something like this:


mbr.bin: x86 boot sector; partition 1: ID=0x83, starthead 32, startsector 2048, 62914560 sectors; partition 2: ID=0x82, starthead 254, startsector 62916608, 16777216 sectors; partition 3: ID=0x83, starthead 254, startsector 79693824, 293601280 sectors; partition 4: ID=0x83, starthead 254, startsector 373295104, 251846656 sectors, code offset 0x63




7 則留言:

  1. Mу bгothеr suggеstеd I maу lіke this web
    site. He was entirеly right. This put up truly maԁe my ԁay.
    You can nοt beliеve јuѕt how much timе I had spent
    for this infогmation! Thank you!


    My ωеb blog: cheap payday loans online
    My webpage :: Pay Day Loans

    回覆刪除
  2. Your style is unique compared to other folks I
    have read stuff from. Thanks for posting when you have the opportunity, Guess I will just bookmark this web site.


    Also visit my blog post; http://goliterature.info/index.php?do=/blog/2...-services/

    回覆刪除
  3. When the laptop division went to Lenovo, as in the T61, the design and appearance declined.
    There is an opportunity for parents to offset the teacher: pupil ratio through practice
    at home. One situation had me pose as bait to draw the enemies out so my ally
    could dispatch them. you ask with softness coming back into your voice as you sit on the sand beside
    me. An analysis this change will give us insight into the supposed benefits they entail.

    With the information provided by the GIS (Geographic Information
    System) for NDGPS use, drivers can be alerted to road congestion, road accidents and other possible hot
    spots. A low quality product may lose its shine in a few days or may simply get tarnished due to overuse or after coming
    in contact with water. In an effort to counter the lack of support from Microsoft, an SVG plug-in for Internet Explorer was developed and supported by Adobe.
    Dependency enslaves you, giving others the ultimate power over how you perceive and feel about yourself.
    Why the lack of soul-wrenching anxiety.

    Also visit my page ... just click the next post

    回覆刪除
  4. I know this if off topic but I'm looking into starting my own blog and was wondering what all is needed to get set up? I'm assuming having a blog like yours would cost a pretty penny?
    I'm not very internet savvy so I'm not 100% certain.
    Any recommendations or advice would be greatly appreciated.
    Appreciate it

    Feel free to surf to my blog sportscamp

    回覆刪除
  5. Hi, I desire to subscribe for this weblog to take most recent updates, so
    where can i do it please help.

    Here is my web page - superstore

    回覆刪除
  6. Yes, that is less than my i - Pad weighed in its Otter -
    Box Case. Analysts also point out that, as Mac - Book Air's strong growth, in the next 12 months, its sales will reach over $7 billion, and sell 1. Compared to the Mac - Book Professional especially, it has the slow processor.

    Here is my weblog ... macbook air

    回覆刪除
  7. It's so small so you can bring it when you travel around. You can get an excellent picture on your HDTV if you use a cheap progressive-scan DVD player with HD upconversion. It's
    quite small so won't take up any room at all and could easily be tossed behind your TV or even on the opposite side of the room if you wish.

    my webpage; roku

    回覆刪除