Gå til innhold

GRUB Linux + XP


Anbefalte innlegg

Hei,

sitter her med en grub.conf jeg ikke er helt sikker på hvordan jeg skal endre for å få opp XP som et valg når jeg booter.

RedHat ligger på en egen HD, som er primary master og booter. XP ligger på /dev/hdd1 og er en ntfs partisjon.

 

Hvis noen har en grub.conf med lignende innstillinger, ville det vært særs koselig om vedkommende kunne poste den her :D

Lenke til kommentar
Videoannonse
Annonse

unnskyld at jeg spør men hæ?

 

er ikke så veldig 1337 grub.conf h4x0r :D

 

timeout=10

splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Linux 9.0 (2.4.20-8)

root (hd0,0)

kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi

initrd /initrd-2.4.20-8.img

 

title nlnx

rootnoverify (hdd,0)

chainloader +1

 

slik?

Lenke til kommentar
                                                           

title nlnx

       rootnoverify (hdd,0)

       chainloader +1

 

slik?

Nei,

rootnoverify (hdd,0)

Skal være

rootnoverify(hddx,y)

Hvor x er hvilken harddisk (starter å telle fra 0, slik at første harddisk på første kabel er 0, andre på første kabel er 1, første på andre kabel er 2, og andre på andre kabel er 3), og y er hvilken partisjon (starter også fra 0).

 

hdd(0,0) er første partisjon på første harddisk, ser ut som der du har lagt linux, ikke windows.

Lenke til kommentar

XP ligger da på hd(3,0) eller secondary slave IDE, men her står det

10. How to boot Windows (or DOS) from a non-first disk?

 

Use the command map, to exchange BIOS drives virtually, like this:  

 

grub> map (hd0) (hd1)

grub> map (hd1) (hd0)

 

jeg har følgende

title WinXP

       rootnoverify (hd3,0)

       map (hd0) (hd3)

       map (hd3) (hd0)

       chainloader +1

 

men da får jeg en melding om at disken ikke fins :(

Lenke til kommentar

Du er sikkert lei av å prøve ;)

 

DOS/Windows

 

GRUB cannot boot DOS or Windows directly, so you must chain-load them (see Chain-loading). However, their boot loaders have some critical deficiencies, so it may not work to just chain-load them. To overcome the problems, GRUB provides you with two helper functions.

 

If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:

 

grub> map (hd0) (hd1)

grub> map (hd1) (hd0)

 

This performs a virtual swap between your first and second hard drive.

 

Caution: This is effective only if DOS (or Windows) uses BIOS to access the swapped disks. If that OS uses a special driver for the disks, this probably won't work.

 

Another problem arises if you installed more than one set of DOS/Windows onto one disk, because they could be confused if there are more than one primary partitions for DOS/Windows. Certainly you should avoid doing this, but there is a solution if you do want to do so. Use the partition hiding/unhiding technique.

 

If GRUB hides a DOS (or Windows) partition (see hide), DOS (or Windows) will ignore the partition. If GRUB unhides a DOS (or Windows) partition (see unhide), DOS (or Windows) will detect the partition. Thus, if you have installed DOS (or Windows) on the first and the second partition of the first hard disk, and you want to boot the copy on the first partition, do the following:

 

 

grub> unhide (hd0,0)

grub> hide (hd0,1)

grub> rootnoverify (hd0,0)

grub> chainloader +1

grub> makeactive

grub> boot

M$ har prøvd å gjøre det lettest mulig for folk. :lol: Så prøv noe alá:

hide (hd0,0)

map (hd0) (hd3)

rootnoverify(hd0,0)

makeactive

chainloader +1

Eller noe lignende (med/uten map kommando osv). Prøv deg fram, hvis du fremdeles har ork ;)

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...