Re: [Xen-users] How to Backup and Restore MBR within Logical Volumes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-11-12 at 09:45 +0000, Mr. Teo En Ming (Zhang Enming) wrote:
> > dd if=/dev/virtualmachines/windows7-x64 of=mbr.w7-x64 bs=512 count=1
> 
> I think if you do this, you are only backing up the first 512 bytes of
> the logical volume, not the MBR.
> 
> Someone correct me if I am wrong.

That *is* the MBR (it's the 0th sector of the disk image).

Take a look at the sector on the device (or an image of it) with e.g.
file or a hexdump tool:

[bmr@hex ~]$ sudo dd if=/dev/mapper/vg_hex-lv_win7 bs=512 count=1 | file
-
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0184184 s, 27.8 kB/s
/dev/stdin: x86 boot sector; partition 1: ID=0x7, active, starthead 1,
startsector 63, 125821017 sectors, code offset 0xc0, OEM-ID "      м",
Bytes/sector 190, sectors/cluster 124, reserved sectors 191, FATs 6,
root entries 185, sectors 64514 (volumes <=32 MB) , Media descriptor
0xf3, sectors/FAT 20644, heads 6, hidden sectors 309755, sectors
2147991229 (volumes > 32 MB) , physical drive 0x7e, dos < 4.0 BootSector
(0x0)

[bmr@hex ~]$ sudo dd if=/dev/mapper/vg_hex-lv_win7 bs=512 count=1 | xxd
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00285548 s, 179 kB/s
0000000: 33c0 8ed0 bc00 7c8e c08e d8be 007c bf00  3.....|......|..
0000010: 06b9 0002 fcf3 a450 681c 06cb fbb9 0400  .......Ph.......
0000020: bdbe 0780 7e00 007c 0b0f 850e 0183 c510  ....~..|........
0000030: e2f1 cd18 8856 0055 c646 1105 c646 1000  .....V.U.F...F..
0000040: b441 bbaa 55cd 135d 720f 81fb 55aa 7509  .A..U..]r...U.u.
0000050: f7c1 0100 7403 fe46 1066 6080 7e10 0074  ....t..F.f`.~..t
0000060: 2666 6800 0000 0066 ff76 0868 0000 6800  &fh....f.v.h..h.
0000070: 7c68 0100 6810 00b4 428a 5600 8bf4 cd13  |h..h...B.V.....
0000080: 9f83 c410 9eeb 14b8 0102 bb00 7c8a 5600  ............|.V.
0000090: 8a76 018a 4e02 8a6e 03cd 1366 6173 1cfe  .v..N..n...fas..
00000a0: 4e11 750c 807e 0080 0f84 8a00 b280 eb84  N.u..~..........
00000b0: 5532 e48a 5600 cd13 5deb 9e81 3efe 7d55  U2..V...]...>.}U
00000c0: aa75 6eff 7600 e88d 0075 17fa b0d1 e664  .un.v....u.....d
00000d0: e883 00b0 dfe6 60e8 7c00 b0ff e664 e875  ......`.|....d.u
00000e0: 00fb b800 bbcd 1a66 23c0 753b 6681 fb54  .......f#.u;f..T
00000f0: 4350 4175 3281 f902 0172 2c66 6807 bb00  CPAu2....r,fh...
0000100: 0066 6800 0200 0066 6808 0000 0066 5366  .fh....fh....fSf
0000110: 5366 5566 6800 0000 0066 6800 7c00 0066  SfUfh....fh.|..f
0000120: 6168 0000 07cd 1a5a 32f6 ea00 7c00 00cd  ah.....Z2...|...
0000130: 18a0 b707 eb08 a0b6 07eb 03a0 b507 32e4  ..............2.
0000140: 0500 078b f0ac 3c00 7409 bb07 00b4 0ecd  ......<.t.......
0000150: 10eb f2f4 ebfd 2bc9 e464 eb00 2402 e0f8  ......+..d..$...
0000160: 2402 c349 6e76 616c 6964 2070 6172 7469  $..Invalid parti
0000170: 7469 6f6e 2074 6162 6c65 0045 7272 6f72  tion table.Error
0000180: 206c 6f61 6469 6e67 206f 7065 7261 7469   loading operati
0000190: 6e67 2073 7973 7465 6d00 4d69 7373 696e  ng system.Missin
00001a0: 6720 6f70 6572 6174 696e 6720 7379 7374  g operating syst
00001b0: 656d 0000 0063 7b9a 998c 3463 0000 8001  em...c{...4c....
00001c0: 0100 07fe ffff 3f00 0000 59e0 7f07 0000  ......?...Y.....
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa  ..............U.

Regards,
Bryn.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux