Re: How to backup MBR/ GRUB ? (Dual-boot Linux & Win XP)
Bryce wrote:
Bit Twister wrote:
On Thu, 19 Feb 2009 04:36:53 -0800 (PST), habibielwa7id wrote:
Very easy man using Linux dd from rescue mode or within Linux,
Check what is mbr you installed your boot loader in, hda, sda or sdb.
suppose it's sda,
dd if=/dev/sda of=/root/mbr.img bs=512 count=1
I thought the boot loader was bs=1 count=446 if using
bs=512 count=1 you also picked up the partition table.
You're right ... but the partition table is the jelly in the
doughnut: the best part!
Very true, and I use this method also. BUT there is risk in everything
and here it'd be that if you repartition in-between then the said
recovery will be a hosedown. I'd suggest to all to still use all 512
bytes as you do (the entire root sector) but with caution concerning
possible oops-i-forgot's :-)
Just my 2 cents.
.
Relevant Pages
- Thanks Matt; re: Ubuntu 8.04.2, just installed, doesnt allow ... To Matt and mks.
... still works well but apparently uses hda not sda): ... Partition Table: msdos ... I think this means there's nothing called sda in my FileSystem's dev ... sudo parted /dev/hda print ... (Ubuntu) - Re: RAID disk failure
... Carefully review the existing partition layout on what I presume is your good disk, /dev/sdb, and compare it with your recreated partition table on /dev/sda. ... Hopefully, on /dev/sdb, your first partition starts on sector 2048, and not sector 63. ... Create a new partition table on sda, recreating the partitions exactly how they are on sdb, starting with sector 2048, matching the start and the end of each partition, on sda, exactly how they exist on sdb. ... (Fedora) - Re: LVM Logical Volumes viewing partitions, mounting, creating, sda moved to sdb
... Grub finds the 9.04 install on sdb,& installs fine on sda. ... Both installs have a /home partition in their sda4 logical partition, probably sda5 on each drive when they were installed. ... (Ubuntu) - Re: why does the installer change the partition table?
... selected which sdb partitions I wanted ... sda has been changed. ... format or change in partition table for sda. ... (Ubuntu) - Re: Installing a new HDD and mounting others
... Of course, the HDDs are sda and sdb, but you need the partition ... designations. ... (Debian-User) |
|