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

Re: How to boot alternative Debian version safely?



On (11/02/05 00:24), Clive Menzies wrote:
> 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.
Hi Greg

I've just rechecked the grub menu.lst and the automatic kernels list
looks very strange even though the system boots fine:

each entry has the numbering hd0 v hda 2 steps apart instead on 1.  I'm
sure that when I set up the manual entries I adopted the numbering
sequence you describe above but :

title           Debian GNU/Linux, kernel 2.6.10-9-amd64-k8 Default
root            (hd0,12)
kernel          /vmlinuz root=/dev/hda14 ro
initrd          /initrd.img
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.10-9-amd64-k8 Default
(recovery mode)
root            (hd0,12)
kernel          /vmlinuz root=/dev/hda14 ro single
initrd          /initrd.img
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.8-10-amd64-k8 Previous
root            (hd0,12)
kernel          /vmlinuz.old root=/dev/hda14 ro
initrd          /initrd.img.old
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.8-10-amd64-k8 Previous
(recovery mode)
root            (hd0,12)
kernel          /vmlinuz.old root=/dev/hda14 ro single
initrd          /initrd.img.old
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.10-9-amd64-k8
root            (hd0,12)
kernel          /vmlinuz-2.6.10-9-amd64-k8 root=/dev/hda14 ro
initrd          /initrd.img-2.6.10-9-amd64-k8
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.10-9-amd64-k8 (recovery
mode)
root            (hd0,12)
kernel          /vmlinuz-2.6.10-9-amd64-k8 root=/dev/hda14 ro single
initrd          /initrd.img-2.6.10-9-amd64-k8
savedefault
boot

So why does the system boot?

Regards

Clive

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




Reply to: