28.03.2024, 09:18 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
tuxedo
Titel: Tweaking GRUB menu.lst  BeitragVerfasst am: 29.12.2006, 01:53 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

I have just installed 2006-01-RC4 on dev/hda3 and XP on /dev/hda1 plus Windows 2000 on /dev/hda2

The mbr restore procedure of the Kanotix installer does not fully recognise my setup by getting my partitions muddled up a bit, although, after reinstalling all OS's several times only to try get the mbr records right, it finally worked, but in a somewhat roundabout way.

These are the last entries of the GRUB menu.lst file which the Kanotix installer generated: ...
Code:
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows 2K/XP/2003 (hda1)
chainloader (hd0,0)+1
title Windows 2K/XP/2003 (hda2)
chainloader (hd0,1)+1

... the first title entry loads into a non-graphical DOS style sub-menu which I think was created by my last XP repair install from where I can therafter boot 2K or XP.

The second title entry leads to a non-functional screen with an error which says "A kernel file is missing from the disk. Insert a system diskette and restart the system".

There is definitely a functional XP on hda1 and a functional Windows 2000 on hda2, but I'm not quite sure in case I'm actually I'm booting from the Linux root partition. I had set the Linux reiserfs partition as active. Kanotix booting works fine in any case.

How should the entries in the GRUB configuration file appear in order to boot already at the GRUB stage, directly into either XP or Window 2000?

In other words, what should the entries be in the menu.lst file to boot either:
XP on hda1
OR
Windows 2K on hda2

Many thanks for any tips! This is how my current partition table looks like:



partitions.gif
 Beschreibung:
Current partition table
 Dateigröße:  50.17 KB
 Angeschaut:  33426 mal

partitions.gif


 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
stryder
Titel: RE: Tweaking GRUB menu.lst  BeitragVerfasst am: 29.12.2006, 05:39 Uhr



Anmeldung: 26. Jun 2005
Beiträge: 389

Don't know very much, but my menu.lst has it this way:

rootnoverify (hd0,0)
makeactive
chainloader +1

HTH.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
penguin.ch
Titel:   BeitragVerfasst am: 29.12.2006, 06:57 Uhr



Anmeldung: 11. Dez 2006
Beiträge: 31

Two more versions:

Code:
title Windoze XP
rootnoverify (hd0,0)
chainloader +1
title Windoze 2K
rootnoverify (hd0,1)
chainloader +1

Code:
title Windoze XP
chainloader = (hd0,0)+1
title Windoze 2K
chainloader = (hd0,1)+1

HTH
Birdy

_________________
There are two major products that came out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence. (Jeremy S. Anderson)
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
tuxedo
Titel:   BeitragVerfasst am: 29.12.2006, 09:36 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

Thanks - I'll test around with the above bits of code.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
drb
Titel:   BeitragVerfasst am: 29.12.2006, 11:54 Uhr



Anmeldung: 03. Jul 2004
Beiträge: 525

Mine is as follows :

Code:
title Windows 95/98/ME (hda1)
root (hd0,0)
makeactive
chainloader +1
title Windows 2K/XP/2003 (hdb1)
chainloader (hd1,0)+1


drb

_________________
Kernel 2.6.21-slh-up-7
_____________________
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kano
Titel:   BeitragVerfasst am: 29.12.2006, 12:04 Uhr



Anmeldung: 17. Dez 2003
Beiträge: 16783

To boot from 2nd hd you need before chainloader:

map (hd0) (hd1)
map (hd1) (hd0)
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
tuxedo
Titel:   BeitragVerfasst am: 30.12.2006, 10:21 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

All installations are on the one and same physical hardrive, and all are primary partitions:
/dev/hda1 ntfs <- XP
/dev/hda2 ntfs <- Windoze
/dev/hda3 Reiserfs <- Kanotix
/dev/hda4 Linux-swap

I could not get any of the above the posted examples to work, but thanks anyway for posting them .

I think the problem is in fact besides GRUB, and has something to do with some DOS log-in procedure on both separate Windows partitions, which was maybe configured by the Windows install CD, whether it was XP, 2K or perhaps a service pack upgrade. Who knows!

In any case all operating systems will boot, which is the main point.

A GUI GRUB menu editor for mere mortals would have been nice however....
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
stryder
Titel:   BeitragVerfasst am: 31.12.2006, 00:34 Uhr



Anmeldung: 26. Jun 2005
Beiträge: 389

Out of curiousity, how do you boot the windows OSes presently?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
tuxedo
Titel:   BeitragVerfasst am: 31.12.2006, 07:46 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

When selecting windows from GRUB it switches over to what I believe must be a Windows bootloader on either hda1 (ntfs) or /dev/hda2 (ntfs) which one of the windows installation must have put there, from where I can select XP or 2K. It looks like a black DOS style screen.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
penguin.ch
Titel:   BeitragVerfasst am: 31.12.2006, 08:08 Uhr



Anmeldung: 11. Dez 2006
Beiträge: 31

tuxedo hat folgendes geschrieben::
It looks like a black DOS style screen.

This is the Windoze boot loader (at least in "2K style").

_________________
There are two major products that came out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence. (Jeremy S. Anderson)
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
gs
Titel:   BeitragVerfasst am: 31.12.2006, 08:10 Uhr



Anmeldung: 06. Jan 2005
Beiträge: 638

one of your Windows contains a file "boot.ini" - the file tells Windows which version to boot. You can look at the file with an editor and, as root if you wish, modify it to boot as default either this or that......
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
stryder
Titel:   BeitragVerfasst am: 31.12.2006, 13:04 Uhr



Anmeldung: 26. Jun 2005
Beiträge: 389

I think gs is right - This is my XP boot.ini:

[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
tuxedo
Titel:   BeitragVerfasst am: 31.12.2006, 14:57 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

Found it! Thank you for the excellent Microsoft support!

Also, on GRUB when logging in, what purpose do the 2 different entries for Kanotix serve?

For example, on a standard 2005-04 install there may be:

-> Debian GNU/Linux, kernel
-> Debian GNU/Linux, kernel 2.6.14-kanotix-9
-> Windows 2K/XP/2003 (hda1)

Does it make any difference whether loading the first of the second option?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
drb
Titel:   BeitragVerfasst am: 31.12.2006, 15:59 Uhr



Anmeldung: 03. Jul 2004
Beiträge: 525

On 2005-04, the first option was the default which was followed by . . . the default.

later kernel update scripts removed this first option.

drb

_________________
Kernel 2.6.21-slh-up-7
_____________________
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
tuxedo
Titel:   BeitragVerfasst am: 31.12.2006, 16:40 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

Thats what I suspected as I've seen the same thing on other distros too, so one can safely remove one or the other from the menu.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
tuxedo
Titel:   BeitragVerfasst am: 01.01.2007, 20:27 Uhr



Anmeldung: 07. Mai 2005
Beiträge: 153

I opted for a plain old LILO which is installed on the mbr and functioning well. Does anyone know off-hand the commands for copying this onto a rescue-floppy?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
michael7
Titel:   BeitragVerfasst am: 28.01.2007, 14:14 Uhr



Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
tuxedo hat folgendes geschrieben::
On GRUB when logging in, what purpose do the 2 different entries for Kanotix serve?

For example, on a standard 2005-04 install there may be:

-> Debian GNU/Linux, kernel
-> Debian GNU/Linux, kernel 2.6.14-kanotix-9
-> Windows 2K/XP/2003 (hda1)

Does it make any difference whether loading the first of the second option?

If you should add kernels, they will be added to the GRUB menu.lst so that you can boot any of them. The first selection, however, will boot the latest kernel.

_________________
Debian Social Contract
 
 Benutzer-Profile anzeigen Private Nachricht senden  
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.