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

Re: Small faux pas with LILO



On Fri, 20 Aug, 1999 à 09:07:38PM -0500, Stephen Pitts wrote:
> On Sat, Aug 21, 1999 at 12:08:31PM +1000, Andrew Pollock wrote:
> > I installed Linux on /dev/hdb and inadvertantly set boot=/dev/hda1 instead
> > of /dev/hda in /etc/lilo.conf and now I'm having trouble booting that
> > partition (a Windows 95 partition). Have I done inrepairable damage to that
> > partition or can I recover from this boo boo?
> > 
> 
> I've made this mistake too!
> 
> LILO should have backed up the boot sector of /dev/hda1 to
> /boot/boot.0301. So, this incantation of dd should get things back the
> way they were:
> dd if=/boot/boot.0301 of=/dev/hda1 bs=512 count=1
> 
lilo -u (or lilo -u /dev/hda1 if you've already modified your /etc/lilo.conf)
will restore your previous boot sector.

-- 
 ( >-   Laurent PICOULEAU                                      -< )
 /~\       lcrpic@a2points.com                                  /~\
|  \)    Linux : mettez un pingouin dans votre ordinateur !    (/  |
 \_|_    Seuls ceux qui ne l'utilisent pas en disent du mal.   _|_/


Reply to: