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

Re: How to boot alternative Debian version safely?



On (10/02/05 18:21), Greg Folkert wrote:
> On Thu, 2005-02-10 at 17:09 +0000, Anthony Campbell wrote:
> > I want to install a second version of Debian on a different partition
> > (don't ask why, it's a long story; I need to experiment).
> > 
> > My  main version is at /dev/hdb9. I therefore installed a second version
> > at /dev/hda7. 
> > 
> > I wanted to make a floppy to boot this but that didn't work. I therefore
> > added the  following entry to my /boot/grub/menu.lst:
> > 
> > 
> > title 		Debian test system, kernel 2.4.27-1-386
> > root       	(hd0,7)
> > kernel		/boot/vmlinuz=2.4.27-1-386 root=/dev/hda7 ro
> > savedefault
> > boot
> 
> Whoop, Whoop... error, error!
> 
> change the entry to this:
> 
> title 		Debian test system, kernel 2.4.27-1-386
> root       	(hd0,6)
> kernel		/boot/vmlinuz=2.4.27-1-386 root=/dev/hda7 ro
> savedefault
> boot
> 
> Grub starts from 0. So:
>         /dev/hda1 == (hd0,0)
>         /dev/hda2 == (hd0,1)
>         /dev/hda3 == (hd0,2)
>         /dev/hda4 == (hd0,3)
>         /dev/hda5 == (hd0,4)
>         /dev/hda6 == (hd0,5)
>         /dev/hda7 == (hd0,6)
> 
> That would definitely make a difference.
Thanks Greg

I also just spotted another error:
title           Debian GNU/Linux, kernel 2.6.8-1-386 (on /dev/hda7)
root            (hd0,5)
kernel          /vmlinuz-2.6.8-1-386 root=/dev/hda7 ro
initrd          /initrd.img-2.6.8-1-386
savedefault
boot

should be (hd0,6) - I typically play with these things late at night
... I claim diminished responsibility.  Good job I haven't needed to
boot into my reserve system.

Cheers

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business




Reply to: