Sponsored Content
Full Discussion: Master Boot Record Editing
Special Forums Windows & DOS: Issues & Discussions Master Boot Record Editing Post 302631521 by touvlo2000 on Friday 27th of April 2012 11:44:35 AM
Old 04-27-2012
Master Boot Record Editing

Hello everyone,

I'm having some difficulty trying to convert a MBR file with hex codes into a "translated" version, where the output explains the contents of the file. For example, a table of primary partitions that I want to translate into plain english:

Code:
--- MBR: ---

Partition 1 - 80 01 01 00 83 FE 3F 01 3F 00 00 00 43 7D 00 00
Partition 2 - 00 00 01 02 83 FE 3F 0D 82 7D 00 00 0C F1 02 00
Partition 3 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Partition 4 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00



--- Translation: ---

partition 1: ID=0x83, active, starthead 1, startsector 63, 32067 sectors;
partition 2: ID=0x83, starthead 0, startsector 32130, 192780 sectors, code offset 0x48

According to a webpage I found, it can be done by using the following commands:

Code:
a) $dd if=/dev/YOUR_DATA_STORAGE_DEVICE of=DESTINATION_FILE bs=512 count=1

b) $file YOUR_EXTRACTED_MBRE

The only problem is that I'm looking for a way to do this in Windows through a text-editor of some sorts. I have a .txt file with the hex values as plain text (80 01 01 00 83 FE 3F 01 3F 00 00 00 43 7D 00 00 etc...). Any assistance would be appreciated. Thanks!
This User Gave Thanks to touvlo2000 For This Post:
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Does WIN2K stomp on the boot record like NT?

My home PC is dual boot with Linux and Win98. I want to upgrade both to a newer version, and have the Linux CD's now. What I need to know is does Win2K Pro stomp (write over LiLo) on the boot record like NT (2 Replies)
Discussion started by: 98_1LE
2 Replies

2. UNIX for Dummies Questions & Answers

Where is the master boot record located?

From doing some research it should be /dev/sda (SCSI drive) but mine doesn't display that. How can I find out where it is located? (1 Reply)
Discussion started by: shorty
1 Replies

3. UNIX Desktop Questions & Answers

How can I replicate master master and master master MySQL databse replication and HA?

I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database. For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies

4. Shell Programming and Scripting

Convert vi editing to text editing

Dear Guru's I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response. Srini (6 Replies)
Discussion started by: thummi9090
6 Replies

5. AIX

Error received when I was trying to check state of boot record

Hello, This is a test/lab LPAR. Recently installed and updated the SP/TL. everything seems to be working fine. (ran all post install checks) I checked the state of boot record, received the following error/failed message. Can you please explain what does this mean ? />ipl_varyon -i ... (1 Reply)
Discussion started by: dio34
1 Replies

6. UNIX for Beginners Questions & Answers

Question about Volume Boot Record

Hello and thanks in advance for any help anyone can offer Hopefully this is a simple question but is the Volume Boot Record (VBR) only used in Windows? I've seen references to it in relationship to Windows & not Linux... but I'm not sure if that means it's unique to Windows or not. If it is... (1 Reply)
Discussion started by: bodisha
1 Replies

7. Solaris

How to recover x86 Solaris 10 u10 boot record/grub menu overwritten by Debian 9?

I installed x86 Solaris 10 update 10 after Windows XP, later I removed xp and installed Debian 9 stretch on the same partition but, Debian couldn't find any other os so it deleted Solaris 10 grub or did something like that I couldn't got. I thought I would be able to recover the lost record by... (0 Replies)
Discussion started by: vectrum
0 Replies
MBRLABEL(8)						    BSD System Manager's Manual 					       MBRLABEL(8)

NAME
mbrlabel -- update disk label from MBR label(s) SYNOPSIS
mbrlabel [-fqrw] [-s sector] device DESCRIPTION
mbrlabel is used to update a NetBSD disk label from the Master Boot Record (MBR) label(s) found on disks that were previously used on DOS/Windows systems (or other MBR using systems). mbrlabel scans the MBR contained in the very first block of the disk (or the block specified through the -s flag), then walks through every extended partition found and generates additional partition entries for the disk from the MBRs found in those extended partitions. Each MBR partition which does not have an equivalent partition in the disk label (equivalent in having the same size and offset) is added to the first free partition slot in the disk label. A free partition slot is defined as one with an fstype of 'unused' and a size of zero ('0'). If there are not enough free slots in the disk label, a warning will be issued. The raw partition (typically partition c, but d on i386 and some other platforms) is left alone during this process. By default, the proposed changed disk label will be displayed and no disk label update will occur. Available options: -f Force an update, even if there has been no change. -q Performs operations in a quiet fashion. -r In conjunction with -w, also update the on-disk label. -s sector Specifies the logical sector number that has to be read from the disk in order to find the MBR. Useful if the disk has remapping drivers on it and the MBR is located in a non-standard place. Defaults to 0. -w Update the in-core label if it has been changed. See also -r. SEE ALSO
disklabel(8), dkctl(8), fdisk(8), mbr(8) HISTORY
The mbrlabel command appeared in NetBSD 1.4. BSD
April 5, 2010 BSD
All times are GMT -4. The time now is 02:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy