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

Re: How to boot alternative Debian version safely?



Anthony Campbell wrote:
On 10 Feb 2005, Bob Alexander wrote:

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


However, when I select this at boot it says Error 22: there is no such
partition as (hd07).

Should I change the entry in menu.lst or is there some other way of
booting this partition? I didn't let the installation do anything to my
hard disk because I do NOT want to mess up my main Debian version.

Anthony


Anthony,
1) are you aware that counting in grub is 0 based ?
2) send us your fdisk -l /dev/hda output

Bob


No, I hadn't realised that this applied to the partitions as well as the
disks. Changing 0,7 to 0,6 seems to work although it now reports a
kernel panic owing to root not being correctly configured. I'll have to
do some more work on this. The above _ought_ to work, I think.

ac:~:$ sd fdisk -l /dev/hda

Disk /dev/hda: 10.2 GB, 10248118272 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391    6  FAT16
/dev/hda2              14        1245     9896040    5  Extended
/dev/hda5              14          25       96358+  82  Linux swap / Solaris
/dev/hda6              26         147      979933+  83  Linux
/dev/hda7             148        1245     8819653+  83  Linux
ac:~:$

Anthony


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

should do.

Funny; look at my own entry here below:
title           Debian GNU/Linux, kernel 2.6.11-rc3.rja
root            (hd0,6)
kernel          /boot/vmlinuz-2.6.11-rc3.rja root=/dev/hda7 ro
savedefault
boot

seems we lead parallel lives :-)



Reply to: