![]() |
how to see master boot record
i don't know much about it is it possible to see the master boot record in linux console
i need the command to view the mbr in console ... how we can see the master boot record entry in console of linux? |
The MBR is defined as the first sector of the drive. (Sector = 512 bytes)
It can be viewed using dd---e.g.: Code:
dd if=/dev/sda bs=512 count=1 | hexdump -C |
Quote:
Code:
hd -n 512 /dev/sdaYou should get an output like: Code:
00000000 eb 48 90 d0 bc 00 7c fb 50 07 50 1f fc be 1b 7c |.H....|.P.P....||John G |
Quote:
Quote:
a) First we obtain a copy of the MBR; remembering that this table is the first 512 bytes of the disk, this we do: (be sure you are root): root@host--# dd if=/dev/sda of=/root/mymbr bs=512 count=1 <Enter> b) To read what is there you only read the 'mymbr' file in the root directory do this while as root: root@host--# file /root/mymbr <Enter> (Do not use 'cat', just 'file') See. You can read how partitions are accorded with their starthead sectors throughout the hardisk. This is the table that boot loader reads from in locating the partitions. Hope this helps. Good luck. |
| All times are GMT -5. The time now is 05:57 PM. |