01.05.2025, 20:13 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
janice21475
22 Titel: how to: chainload for dual boot?  BeitragVerfasst am: 11.07.2006, 23:29 Uhr



Anmeldung: 02. Jul 2006
Beiträge: 15
Wohnort: North Central Florida\USA
Hello,

Installed XP on it's own partition then installed kanotix. Now only Kanootix loads. It loads so quickly, even if there was an option to select XP, I can not see it.

I heard mention of 'chainloader' and looked in the grub folder and found this at the bottom of 'menu.1st.'
title Windows 2K/XP/2003 (hda1)
chainloader (hd0,0)+1
title Windows 95/98/ME (hda3)
root (hd0,2)
makeactive
chainloader +1

Can this be edited to allow a selection at boot?

Thanks,
janice21475
Doing 'baby steps.'
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
max11max
Titel:   BeitragVerfasst am: 11.07.2006, 23:53 Uhr



Anmeldung: 24. Jun 2006
Beiträge: 27
Wohnort: Canvey Island
Now I'm no expert but I think the file you need to be looking at is in /boot/grub/ and is called menu.lst

at the bottom of the file I have an entry like

### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows 2K/XP/2003 (sdb1)
chainloader (hd1,0)+1

You need to edit this with the correct HDD settings.

max

_________________
# cd /pub
# more beer
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel: Re: how to: chainload for dual boot?  BeitragVerfasst am: 12.07.2006, 00:44 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
janice21475 hat folgendes geschrieben::


Can this be edited to allow a selection at boot?

Thanks,
janice21475
Doing 'baby steps.'


Sure, just set the timeout in /boot/grub/menu.lst
This section:
Code:
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      5

Of course you must edit that file as root.
If you add a chainloader section for winxp do it either BEFORE or AFTER the automagic kernel list. I usually put a WIndows entry after this line:
Code:
### END DEBIAN AUTOMAGIC KERNELS LIST

This way it will never change when GRUB is updated.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
piper
Titel: RE: Re: how to: chainload for dual boot?  BeitragVerfasst am: 12.07.2006, 01:06 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
Part of my grub:

## ## End Default Options ##

timeout 35

title Kanotix
root (hd0,11)
kernel /boot/vmlinuz root=/dev/hda12 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=791
initrd /boot/initrd.img
boot

title Utopian
root (hd0,12)
kernel /boot/vmlinuz root=/dev/hda13 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=0x31A
initrd /boot/initrd.img
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP
chainloader (hd0,0)+1


Adding "timeout 35" can slow it down so you can read it Winken adjust it if you want

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
janice21475
Titel: Re: RE: Re: how to: chainload for dual boot?  BeitragVerfasst am: 12.07.2006, 06:00 Uhr



Anmeldung: 02. Jul 2006
Beiträge: 15
Wohnort: North Central Florida\USA
piper hat folgendes geschrieben::
. . . . Adding "timeout 35" can slow it down so you can read it Winken adjust it if you want


Hi piper,

Increasing the 'timeout' was all it took. I may to the 'chainload' but at this point it is no longer necessary. Actually, I really don''t know what to expect if I should use it?

I am loving this OS more every time I boot into it.

To all of you who replied, thanks for the help!

Cheers,
janice21475
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
eco2geek
Titel:   BeitragVerfasst am: 12.07.2006, 07:46 Uhr



Anmeldung: 02. Mai 2004
Beiträge: 471
Wohnort: Portland, OR, USA
Fedora uses
Code:
title Microsoft Windows 2000
rootnoverify (hd0,0)
chainloader +1

and Kanotix/Debian uses the GRUB commands others have posted above.

"rootnoverify" tells GRUB, "Don't mount this partition." (With Linux, GRUB evidently mounts boot partitions before passing boot parameters to the OS.) "chainloader" means, "Hand off control to Microsoft's boot loader.". And "+1" means that GRUB looks for Windows' boot loader on the first sector of the Windows partition.

All this assumes that Windows is on the first partition of the first hard drive, hd(0,0) in GRUB-speak. If it's not, things are a bit more complicated.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
janice21475
Titel:   BeitragVerfasst am: 12.07.2006, 14:45 Uhr



Anmeldung: 02. Jul 2006
Beiträge: 15
Wohnort: North Central Florida\USA
eco2geek hat folgendes geschrieben::
Fedora uses
Code:
title Microsoft Windows 2000
rootnoverify (hd0,0)
chainloader +1

and Kanotix/Debian uses the GRUB commands others have posted above.

"rootnoverify" tells GRUB, "Don't mount this partition." (With Linux, GRUB evidently mounts boot partitions before passing boot parameters to the OS.) "chainloader" means, "Hand off control to Microsoft's boot loader.". And "+1" means that GRUB looks for Windows' boot loader on the first sector of the Windows partition.

All this assumes that Windows is on the first partition of the first hard drive, hd(0,0) in GRUB-speak. If it's not, things are a bit more complicated.


Hello eco2geek,

Thanks for a further explanation. It is just a bit above my understanding, at the moment, but as I keep reading and doing I am sure things will fall into place.

I don't know if this is harder or easier than when I first got into computing (Win 3.1). Guess it is easier since I have the experience I do have. I really need to get all the new commands and file names straight in my head. That, plus, all the new program names has this old gal very busy learning. I haven't had as much fun since I started learning to write HTML.

regards,
janice21475
a new linux supporter
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
michael7
Titel:   BeitragVerfasst am: 14.07.2006, 01:19 Uhr



Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
eco wrote:
Zitat:
"rootnoverify" tells GRUB, "Don't mount this partition." (With Linux, GRUB evidently mounts boot partitions before passing boot parameters to the OS.) "chainloader" means, "Hand off control to Microsoft's boot loader.". And "+1" means that GRUB looks for Windows' boot loader on the first sector of the Windows partition.

Thank you for a simple and clear explanation. I don't dual boot but I have wondered what "rootnoverify" and "chainloader" and "+1" meant.

_________________
Debian Social Contract
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
boomshalek
Titel: Tell Grub to chainload LiLo  BeitragVerfasst am: 30.08.2006, 18:33 Uhr



Anmeldung: 07. Jan 2006
Beiträge: 23

Hi
I have a triple-OS-System (XP(hda1),Kanotix(hda6),Knoppmyth(hda10)). I have Grub in my MBR and want to chainload to LiLo on hda10

In my menu.lst
Zitat:

title KnoppMyth
chainloader (hd0,9)+1

this gives me an Error 13 on choosing this Entry on boot
Zitat:

Error 13: Invalid or unsupported executable format


is it the +1 that's wrong or should i check if lilo really was installed in / of hda10?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel: RE: Tell Grub to chainload LiLo  BeitragVerfasst am: 30.08.2006, 19:59 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
Try

title KnoppMyth
chainloader (hd0,11)+1

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
boomshalek
Titel:   BeitragVerfasst am: 30.08.2006, 20:54 Uhr



Anmeldung: 07. Jan 2006
Beiträge: 23

Zitat:

title KnoppMyth
chainloader (hd0,11)+1

gives
Zitat:
Error 22: No such partition

which makes sense, because there is no hda11 and (hd0,9) should correspond to hda10
more hints?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 30.08.2006, 21:06 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
Thought you said Knoppmyth(hda10)

post your /boot/grub/menu.lst

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
boomshalek
Titel:   BeitragVerfasst am: 30.08.2006, 21:28 Uhr



Anmeldung: 07. Jan 2006
Beiträge: 23

yeah, but if i am right /dev/hda10 corresponds to (hd0,9) in Grub-Code ...
here is my menu.lst. with the second "title entry" i start KnoppMyth directly frim GRUB, but i need a chainload ...
Zitat:

# Deutsche Tastaturbelegung

setkey y z
setkey z y
setkey Y Z
setkey Z Y
setkey equal parenright
setkey parenright parenleft
setkey parenleft asterisk
setkey doublequote at
setkey plus bracketright
setkey minus slash
setkey slash ampersand
setkey ampersand percent
setkey percent caret
setkey underscore question
setkey question underscore
setkey semicolon less
setkey less numbersign
setkey numbersign backslash
setkey colon greater
setkey greater bar
setkey asterisk braceright

default 0
timeout 5
color cyan/blue white/blue
gfxmenu (hd0,5)/message

title KANOTIX, kernel 2.6.15.1-kanotix-3
root (hd0,5)
kernel /vmlinuz-2.6.15.1-kanotix-3 root=/dev/hda7 ro ramdisk_size=100000 lang=de apm=power-off nomce vga=0x317
initrd /initrd.img-2.6.15.1-kanotix-3
boot

title KNOPPMYTH, kernel 2.6.17-chw-8
root (hd0,5)
kernel /vmlinuz-2.6.17-chw-8 root=/dev/hda10 ro ramdisk_size=100000 lang=de apm=power-off nomce vga=0x317 splash=silent
initrd /initrd.splash
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP Professional
chainloader (hd0,0)+1

title KnoppMyth
chainloader (hd0,11)+1
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 30.08.2006, 22:04 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
Very confusing to me

title KNOPPMYTH, kernel 2.6.17-chw-8
root (hd0,5)

What is that ?????

-----------------------

title KnoppMyth
chainloader (hd0,11)+1

Is this different than above ??????

I am confused with this

If so try putting it above ### END DEBIAN AUTOMAGIC KERNELS LIST

KnoppMyth is what, a Microsoft Media Center clone

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
schnorrer
Titel:   BeitragVerfasst am: 31.08.2006, 09:29 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

fdisk -l will bring light to the sceene. all aother is guessing.

a Chainloder for hda10 kann only used with an other grub in msr of had10
I think this grub is missing. so no need for an extra chainloader.

Here his problem:

title KNOPPMYTH, kernel 2.6.17-chw-8
root (hd0,5)
kernel /vmlinuz-2.6.17-chw-8 root=/dev/hda10 ro ramdisk_size=100000 lang=de apm=power-off nomce vga=0x317 splash=silent
initrd /initrd.splash
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP Professional
chainloader (hd0,0)+1

title KnoppMyth
chainloader (hd0,11)+1
####### end of faullty grub.menu

here his soluttion:

title KNOPPMYTH, kernel 2.6.17-chw-8
root (hd0,5)
kernel /vmlinuz-2.6.17-chw-8 root=/dev/hda10 ro ramdisk_size=100000 lang=de apm=power-off nomce vga=0x317 splash=silent
initrd /initrd.splash
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP Professional
chainloader (hd0,0)+1
######## end of grub.menu

Since his KnoppMyhth is a Found @ KNOPPMYTH. This is a korrekt booting entry.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 31.08.2006, 10:34 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
Pretty much what I said in english, except the fdisk -l part, solution, and why I said confused. (asking about both KNOPPMYTH)

schnorrer

Ich verstehe nicht
Entschuldigen Sie mein schlechtes Deutsch
Sprechen Sie Englisch?

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
boomshalek
Titel:   BeitragVerfasst am: 01.09.2006, 13:04 Uhr



Anmeldung: 07. Jan 2006
Beiträge: 23

KnoppMyth is a MythTV-System (i think it existed before MCE was invented) based on Knoppix. It features a Live-CD with usable Frontend (Clients) and an Install-Script for Backends and Frontends.

Zitat:

title KNOPPMYTH, kernel 2.6.17-chw-8
root (hd0,5)

What is that ?????

ahh, you're right, it is confusing. i have got a seperate /boot partition hda6. to get GRUB in MBR to boot KnoppMyth i have copied the kernel and initrd from Knoppmyth's /boot on hda10 to hda6.

@schnorrer
Zitat:
so no need for an extra chainloader.

trying fdisk -l later ...
do you mean that i can only chainload to GRUB if the system is on hda10 and not to LiLo?
I want to chainload to LiLo which was installed in MSR of hda10. Why? Because LiLo is already configured for suspend2, bootsplash etc. and it would make updates of Knoppmyth much more easier, because i could leave my Grub config in MBR as it is and a Kanotix Automatic-Kernel-Update (Update-Gui) would not mess it all up again.

thanks

chris
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 01.09.2006, 13:59 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
I am more confused now, and will leave this one to others.

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.