Autor |
Nachricht |
|
Titel: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 13.11.2006, 12:37 Uhr
|
|
Anmeldung: 04. Apr 2006
Beiträge: 51
|
|
I had a spare partition left on my kanotix pc and wanted to tryout another OS (freespire 1.0), so I installed it on that partition (/dev/hda6).
I didn't let the installer from freespire install grub on MBR.
I started kanotix and made a enty in grub menu.list manualy and after that I did , update-grub, which gave no errors.
But afer reboot there was no entry for freespire in boot menu from kanotix.
What did I do wrong?
ps here's my menu.list :
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
gfxmenu (hd0,0)/message
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hda3 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=false
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.17.8-rc1-slh-1 Default
root (hd0,0)
kernel /vmlinuz root=/dev/hda3 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
initrd /initrd.img
boot
title Debian GNU/Linux, kernel 2.6.17.8-rc1-slh-1
root (hd0,0)
kernel /vmlinuz-2.6.17.8-rc1-slh-1 root=/dev/hda3 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
initrd /initrd.img-2.6.17.8-rc1-slh-1
boot
title Debian GNU/Linux, kernel 2.6.17-kanotix-1
root (hd0,0)
kernel /vmlinuz-2.6.17-kanotix-1 root=/dev/hda3 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
initrd /initrd.img-2.6.17-kanotix-1
boot
title Debian GNU/Linux, kernel 2.6.15.6-kanotix-1
root (hd0,0)
kernel /vmlinuz-2.6.15.6-kanotix-1 root=/dev/hda3 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
initrd /initrd.img-2.6.15.6-kanotix-1
boot
title Debian GNU/Linux, kernel 2.6.14-kanotix-9
root (hd0,0)
kernel /vmlinuz-2.6.14-kanotix-9 root=/dev/hda3 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
initrd /initrd.img-2.6.14-kanotix-9
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP (hda2)
root (hd0,1)
makeactive
chainloader +1
title Freespire 1.0
root (hd0,5)
kernel /vmlinuz root=/dev/hda6 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x317
boot |
|
|
|
|
 |
|
Titel: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 13.11.2006, 13:40 Uhr
|
|
Anmeldung: 06. Jan 2005
Beiträge: 638
|
|
in my opinion your menu.lst looks funny, - how could you boot into kanotix?
for the Kanotix installed on hda3 the entry for root should be (hd0,2) instead of (hd0,0), just as for your Win_install on hda2 it is (hd0,1) and for your Freespire on hda6 it is (hd0,5).
I would change the above mentioned entries, would run grub-install /dev/hda from your Kanotix and everything should be ok |
|
|
|
|
 |
|
Titel: Re: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 13.11.2006, 15:22 Uhr
|
|
Anmeldung: 04. Apr 2006
Beiträge: 51
|
|
gs hat folgendes geschrieben::
in my opinion your menu.lst looks funny, - how could you boot into kanotix?
for the Kanotix installed on hda3 the entry for root should be (hd0,2) instead of (hd0,0), just as for your Win_install on hda2 it is (hd0,1) and for your Freespire on hda6 it is (hd0,5).
I would change the above mentioned entries, would run grub-install /dev/hda from your Kanotix and everything should be ok
I have a seperate partition for /boot on kanotix (= /dev/hda1)
I try to run grub-install from whitin kanotix, I only did update-grub sofar. |
|
|
|
|
 |
|
Titel: Re: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 13.11.2006, 16:16 Uhr
|
|
Anmeldung: 06. Jan 2005
Beiträge: 638
|
|
o sorry, suppose my "advice" may not work with a separate /boot partition - have no experience with this setup (which, by the way might have been useful with old BIOS but appears not to be necessary with modern BIOS)
the way I have described works reliably if Kanotix is installed completely (including /boot) onto one partition and if, during installation or thereafter, GRUB is placed in the MBR.
hope you get your problem solved nevertheless.... |
|
|
|
|
 |
|
Titel: RE: Re: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 13.11.2006, 19:06 Uhr
|
|
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
|
|
Try this
title Freespire 1.0
chainloader (hd0,5)+1
If that don't work, reinstall Freespire and put grub to mbr, then use the Kanotix cd to fix grub, then go to the partition that Freespire is on and copy the menu (Freespire part) onto the Kanotix menu. |
_________________ h2's d-u script
h2's rdiff-backup script
|
|
|
|
 |
|
Titel: RE: Re: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 14.11.2006, 00:11 Uhr
|
|
Anmeldung: 26. Jun 2005
Beiträge: 389
|
|
Zitat:
I started kanotix and made a enty in grub menu.list manualy and after that I did , update-grub, which gave no errors.
But afer reboot there was no entry for freespire in boot menu from kanotix.
What did I do wrong?
If you edited the menu.list and what you edited didn't show on reboot, you must have edited the wrong menu.list file. Unless your list is too long and it is outside the box? It may not work, but it should show. |
|
|
|
|
 |
|
Titel: RE: Re: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 14.11.2006, 03:02 Uhr
|
|

Anmeldung: 02. Mai 2004
Beiträge: 471
Wohnort: Portland, OR, USA
|
|
Doesn't "update-grub" recreate a default "menu.lst"? Sounds like you might have edited yours, then wiped out your changes by running "update-grub".
There's no need to run anything after editing menu.lst, unlike when you use LILO. Like stryder said, after you edit menu.lst your changes should show up there the next time you reboot. The easiest way to make sure your new entry is correct, is to crib from the "menu.lst" that Freespire created in its /boot/grub directory.
(There's no need to reinstall an OS in order to fix GRUB.) |
|
|
|
|
 |
|
Titel: RE: Re: Add another linux-distro entry in kanotix boot menu?
Verfasst am: 14.11.2006, 03:21 Uhr
|
|
Anmeldung: 12. Mar 2005
Beiträge: 1005
|
|
update-grub changes everything between these lines of menu.lst, but leaves anything above or below them untouched, so if you have your other os boot stuff below it remains untouched.
In other words, only have your kanotix stuff between these lines, and have all other boot stuff below them.
## ## End Default Options ##
........................
### END DEBIAN AUTOMAGIC KERNELS LIST |
_________________ Read more on dist-upgrades using du-fixes-h2.sh script.
New: rdiff-backup script
|
|
|
|
 |
|
Titel: Re: RE: Re: Add another linux-distro entry in kanotix boot m
Verfasst am: 14.11.2006, 03:49 Uhr
|
|
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
|
|
h2 hat folgendes geschrieben::
update-grub changes everything between these lines of menu.lst, but leaves anything above or below them untouched, so if you have your other os boot stuff below it remains untouched.
In other words, only have your kanotix stuff between these lines, and have all other boot stuff below them.
## ## End Default Options ##
........................
### END DEBIAN AUTOMAGIC KERNELS LIST
Exactly !
The easiest and fastest way is to chainload. |
_________________ h2's d-u script
h2's rdiff-backup script
|
|
|
|
 |
|
Titel:
Verfasst am: 14.11.2006, 13:06 Uhr
|
|
Anmeldung: 04. Apr 2006
Beiträge: 51
|
|
Try this
title Freespire 1.0
chainloader (hd0,5)+1
Tried it , but didn't work , grub gave error 13
I think the problem is that gub isn't installed at freespire /root partition.
The freespire installer gave an option to install grub on MBR , but I
unchecked it cause I was afraid it would mess up my kanotix boot.
There was no option to install grub on /root partition.
here is menu.list from freespire;
# Generated by jiffyboot version 9.1. If this file is edited, the
# system will stop modifying it. To allow the system to resume
# management of this file, remove it and run /sbin/jiffyboot
default=0
timeout=0
fallback
title hidden
configfile (hd0,5)/boot/grub/menu-normal.lst
So should I try to reinstall grub for freespire on hda6 instead of MBR? |
|
|
|
|
 |
|
Titel:
Verfasst am: 14.11.2006, 13:31 Uhr
|
|
Artist


Anmeldung: 11. Aug 2005
Beiträge: 451
Wohnort: Australia
|
|
Freespire is a bit odd. It uses jiffymount. You need something like this in your /boot/grub/menu.lst:
Code:
title Freespire Ver. 1.0.13
root (hd0,5)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/ide/host0/bus0/target0/lun0/part6 rootdev=0x0303 ramdisk=35392 video=vesafb:nomtrr jiffymount=noatime resume2=swap:/dev/hda6:0x44000 vga=0x311 splash=silent
initrd /boot/initrd-2.6.14-gratis.gz
|
_________________ Cathbard.com
The real pirates by Courtney Love
|
|
|
|
 |
|
Titel:
Verfasst am: 14.11.2006, 20:04 Uhr
|
|
Anmeldung: 04. Apr 2006
Beiträge: 51
|
|
Cathbard hat folgendes geschrieben::
Freespire is a bit odd. It uses jiffymount. You need something like this in your /boot/grub/menu.lst:
Code:
title Freespire Ver. 1.0.13
root (hd0,5)
kernel /boot/vmlinuz-2.6.14-gratis root=/dev/ide/host0/bus0/target0/lun0/part6 rootdev=0x0303 ramdisk=35392 video=vesafb:nomtrr jiffymount=noatime resume2=swap:/dev/hda6:0x44000 vga=0x311 splash=silent
initrd /boot/initrd-2.6.14-gratis.gz
Yes, that did it.
Thanks Catbarf and everybodyelse for help, all works fine now. |
|
|
|
|
 |
|