Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] restoring master boot record
Date: Mon, 12 Jan 2015 18:55:03
Message-Id: 20150112184711.GA1037@ca.inter.net
In Reply to: Re: [gentoo-user] restoring master boot record by Adam Carter
1 150112 Adam Carter wrote:
2 >> I may need to rewrite the master boot record onto the new SSD.
3 >> I use Lilo, which has a line 'boot=<device-name>':
4 >> would it be enough to simply run Lilo, perhaps from System-Rescue ?
5 >> Should I have a back-up copy of the present MBR to use & if so,
6 >> what is the correct command to copy it & later put it in the proper place ?
7 > To copy boot record with partition table :
8 > 'dd if=/dev/sda of=/boot/mbr_backup bs=512 count=1' ;
9 > To restore boot record without partition table :
10 > 'dd if=/boot/mbr_backup of=/dev/sda bs=446 count=1' ;
11 > so you can just write the MBR to a file
12 > and either include the partition table (bs=512) or exclude it (bs=446).
13
14 Thanks ! -- someone else who keeps careful notes : added to mine.
15
16 --
17 ========================,,============================================
18 SUPPORT ___________//___, Philip Webb
19 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
20 TRANSIT `-O----------O---' purslowatchassdotutorontodotca