Re: [gentoo-user] restoring master boot record

2015-01-12 Thread Adam Carter
 One question, if anyone can help : in order to have a working system,
 I think I'ld need to rewrite the master boot record onto the new SSD.
 I use Lilo, which has a line 'boot=device-name':
 would it be enough to simply run Lilo, perhaps from System-Rescue ?
 Should I have a back-up copy of the present MBR to use  if so,
 what is the correct command to copy it  later put it in the proper place ?

 If I do find myself facing this problem one day, I may not have e-mail,
 so I'ld like to have the necessary info saved for when it's needed.


From some old notes:
To copy boot record with partition table; dd if=/dev/sda
of=/boot/mbr_backup bs=512 count=1
To restore boot record without partition table; dd if=/boot/mbr_backup
of=/dev/sda bs=446 count=1

So you can just write the MBR to a file, and either include the partition
table (bs=512) or exclude it (bs=446).


Re: [gentoo-user] restoring master boot record

2015-01-12 Thread Philip Webb
150112 Adam Carter wrote:
 I may need to rewrite the master boot record onto the new SSD.
 I use Lilo, which has a line 'boot=device-name':
 would it be enough to simply run Lilo, perhaps from System-Rescue ?
 Should I have a back-up copy of the present MBR to use  if so,
 what is the correct command to copy it  later put it in the proper place ?
 To copy boot record with partition table :
   'dd if=/dev/sda of=/boot/mbr_backup bs=512 count=1' ;
 To restore boot record without partition table :
   'dd if=/boot/mbr_backup of=/dev/sda bs=446 count=1' ;
 so you can just write the MBR to a file
 and either include the partition table (bs=512) or exclude it (bs=446).

Thanks ! -- someone else who keeps careful notes : added to mine.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] restoring master boot record

2015-01-11 Thread Philip Webb
I'm trying to be prepared in case my SSD fails.
If it did, I would buy a replacement  use my sync'ed copy of system files
to restore the Gentoo system without needing to re-install it.

One question, if anyone can help : in order to have a working system,
I think I'ld need to rewrite the master boot record onto the new SSD.
I use Lilo, which has a line 'boot=device-name':
would it be enough to simply run Lilo, perhaps from System-Rescue ?
Should I have a back-up copy of the present MBR to use  if so,
what is the correct command to copy it  later put it in the proper place ?

If I do find myself facing this problem one day, I may not have e-mail,
so I'ld like to have the necessary info saved for when it's needed.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca