Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: GRUB (Ubuntu-XP-Vista)  (gelezen 1045 keer)

Offline Thomas2

  • Lid
GRUB (Ubuntu-XP-Vista)
« Gepost op: 2007/03/11, 15:18:37 »
Hallow,

Ik heb een system dat zo is geïnstalleerd:
Eerst XP dan Ubuntu en dan Vista.

Nu ben ik dus mijn GRUB op de MBR kwijt...maar deze kan ik herstellen. En ik kan Ubuntu nog booten met een cdtje.
Dus, ik kan alles, behalve Vista in mijn GRUB zetten, ik heb dit toegevoegd in menu.lst:
title         Microsoft Windows Vista Ultimate
root         (hd0,5)
chainloader      +1
Maar dat werkt dus niet...
Weet iemand wat wel kan werken?
Ik heb nu deze menu.lst:
# 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.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
#timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## 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=UUID=da765962-6232-4283-b50e-db8a9501628b ro
# kopt_2_6=root=/dev/sda7 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,6)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## 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=quiet splash locale=nl_NL

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) 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

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.17-11-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/sda7 ro quiet splash locale=nl_NL
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/sda7 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda7 ro quiet splash locale=nl_NL
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda7 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
En mijn HDD-indeeling ziet er zo uit.


Alvast bedankt!
,Thomas

Aline

  • Gast
GRUB (Ubuntu-XP-Vista)
« Reactie #1 Gepost op: 2007/03/11, 15:48:12 »
Als je partitie op die schijf /dev/sda1 is (voor je XP) moet er staan: root (hd0,0), een nummertje lager. Die is dus goed.

Vista staat op /dev/sda5 zo te zien en dus moet het zijn root (hd0,4) en NIET (hd0,5) zoals jij aangeeft.

Offline Thomas2

  • Lid
GRUB (Ubuntu-XP-Vista)
« Reactie #2 Gepost op: 2007/03/11, 18:27:58 »
Nee, dat is het em juist. Vista staat op /dev/sda6 ...

Aline

  • Gast
GRUB (Ubuntu-XP-Vista)
« Reactie #3 Gepost op: 2007/03/11, 19:12:26 »
Citaat van: thomasyola
Nee, dat is het em juist. Vista staat op /dev/sda6 ...
Nou, in je plaatje is dat een partitie van 10GB en hij zegt niets over used of unused, vandaar dat ik dat dacht. Waarom staat die driehoek met uitroepteken er?

Heeft Vista al wel normaal gewerkt (vanwege dat uitroepteken en omdat het in een extended partitie staat)?

JeeWee

  • Gast
GRUB (Ubuntu-XP-Vista)
« Reactie #4 Gepost op: 2007/03/12, 00:56:13 »
Misschien omdat je de regel "makeactive" vergeten bent? (onder "root").
Of misschien dat je de bootloader van Vista nu helemaal hebt laten verdwijnen, door met Grub te overschrijven?

Welke error krijg je? Nummer 15, 17, 22? Via Google kan je meer te weten komen over deze (vaak voorkomende) error's.

Je positie van (hd0,5) is opzich goed voor /sda6, ik heb dit ook min-of-meer zo ingevoerd (met die "makeactive" erin dan he), alleen ik heb Vista op een losse schijf gezet.

Je kan het makkelijker oplossen als het met Grub niet lukt (Grub is opzich ideaal, want hij herkent ieder OS);

Met je Vista DVD opnieuw proberen de Bootloader in de MBR te krijgen (repair optie oid) -> dan inloggen op Vista -> dan EasyBCD downloaden en installeren. Zorg ervoor dat je Grub eerst op je Ubuntu partitie geinstalleer hebt (met sudo grub-install commando) en geef dan in Vista aan met dat proggie waar die Grub staat.

Dan boot je met de loader van Vista, kies je Ubuntu en schakelt deze loader automatisch door naar de Grub van linux.

Op het moment dat je ooit Vista eraf spoelt, zet je je grub gewoon weer in de MBR.

Maar probeer het eerst met "makeactive" (ik weet zelf ook niet waar het voor dient, maar ik mis het in jouw menu.lst)

Suc6! :)