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

Re: Small faux pas with LILO



hi ya

try the following /etc/lilo.conf 

- note...you can boot anything ( on any other drives ) from hda...
	ie even if you have Win95 on /dev/hda1 and linux on /dev/hdb1

- fdisk /mbr fixes it too...but...you still have to boot linux 

#
# Dual Boot config
#
#	see /usr/doc/lilo-*  for more info
#
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
#
# Boot linux
# ----------
image=/boot/vmlinuz
        label=linux
        root=/dev/hdb1
#       append="mem=128M"
        read-only
#
# wish I had access to my dual-boot box right now...guessing at options...
#
# Boot Win95
# ----------
other=/dev/hda1
        label=Win95
#
# end of file lilo.conf

#
# reinstall lilo
#
root# lilo

#
# if you are paranoid... make a boot floppy first...
#
root# dd if=/boot/vmlinuz of=/dev/fd0

#
# try it...
#
root# shutdown -rf now
...rebooting...
	lilo:	[tab]	to see the boot options


have fun
alvin

> 
> On Sat, Aug 21, 1999 at 12:08:31PM +1000, Andrew Pollock wrote:
> > Hi,
> > 
> > I have a PC with two hard drives, /dev/hda and /dev/hdb
> > 
> > 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
> 
> -- 
> Stephen Pitts
> smpitts@midsouth.rr.com
> webmaster - http://www.mschess.org
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 


Reply to: