Nieuws:

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

Auteur Topic: GRUB narigheden...  (gelezen 2652 keer)

GRUB narigheden...
« Gepost op: 2010/01/26, 10:04:45 »
Hallo,

Ik heb een configuratie met 2 harddiks en 5 besturingssystemen, waaronder WinXP.
Nu wil het geval, dat na het maken van een usb-opstartschijf (van een custom distributie, gemaakt met Remastersys) GRUB in de war is geraakt...
Ik heb van alles al zitten uitproberen en ten einde raad Linux Mint en Ubuntu 9.04 zelfs opnieuw geïnstalleerd, maar WinXP wil niet meer opstarten.
Alle partities zijn overigens wel gewoon te mounten.
Hieronder screenshots van de indeling van beide schijven:




Op het moment start ik op van sdb en kan ik wel in 9.04 komen, maar niet in de andere systemen.
Als ik opstart van sda, kom ik in Linux Mint, of 8.04, of Mandriva, maar weer niet in de systemen op schijf sda (9.04 en WinXP)...

output van 'sudo blkid' :
nico@nico-desktop:~$ sudo blkid
[sudo] password for nico:
/dev/sda1: LABEL="Ubuntu-8.04.3" UUID="c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="0B302B022D17E8FD" LABEL="Data" TYPE="ntfs"
/dev/sda4: LABEL="Gloria_home" UUID="37664d3f-afd0-4c86-b55c-90b531e9b9b2" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="32db0697-f3ff-40a7-864f-90743d5cc72e"
/dev/sda6: LABEL="mandriva-2009" UUID="073a1253-8cc8-42f6-b85d-ba9a569ae2b5" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda7: UUID="6675b84e-da3a-4e28-ae12-b5dcb193d172" SEC_TYPE="ext2" TYPE="ext3" LABEL="LinuxMint_Gloria"
/dev/sdb1: UUID="DAEC3BC8EC3B9E27" LABEL="Windows-XP" TYPE="ntfs"
/dev/sdb2: UUID="827c937d-b4d8-4841-869d-286724ca901d" TYPE="ext3"
/dev/sdb3: TYPE="swap" UUID="b1c27e59-edb9-47c4-a4e5-7422c6bb29d4"
/dev/sdb4: LABEL="9.04_home" UUID="28692763-9557-495c-a827-e78c352ca599" TYPE="ext3"
/dev/sdc1: UUID="FA8043E78043A8C9" LABEL="Lacie" TYPE="ntfs"
nico@nico-desktop:~$

Output van 'fdisk -l' :
nico@nico-desktop:~$ sudo fdisk -l

Schijf /dev/sda: 500.1 GB, 500107862016 bytes
255 koppen, 63 sectoren/spoor, 60801 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes
Schijf-ID: 0x0aa5569e

 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sda1   *           1        5533    44443791   83  Linux
/dev/sda2            5534        9543    32210325    5  Uitgebreid
/dev/sda3            9544       59389   400387995    7  HPFS/NTFS
/dev/sda4           59390       60801    11341890   83  Linux
/dev/sda5            5534        5738     1646631   82  Linux wisselgeheugen
/dev/sda6            5739        8261    20265966   83  Linux
/dev/sda7            8262        9543    10297633+  83  Linux

Schijf /dev/sdb: 80.0 GB, 80026361856 bytes
255 koppen, 63 sectoren/spoor, 9729 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes
Schijf-ID: 0xf02bf02b

 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sdb1   *           1        8153    65488941    7  HPFS/NTFS
/dev/sdb2            8154        9348     9598837+  83  Linux
/dev/sdb3            9553        9729     1421752+  82  Linux wisselgeheugen
/dev/sdb4            9349        9552     1638630   83  Linux

Partitietabel-items liggen niet in schijfvolgorde.

Schijf /dev/sdc: 120.0 GB, 120034123776 bytes
255 koppen, 63 sectoren/spoor, 14593 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes
Schijf-ID: 0x301510a9

 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sdc1   *           1       14593   117218241    7  HPFS/NTFS
nico@nico-desktop:~$

Voor uitgebreide boot- en partition info, zie bijlage.

Ik besef dat dit geen eenvoudig probleem is, maar ik hoop echt dat iemand een idee heeft hoe ik hier uit kan komen, zonder WinXP opnieuw te moeten installeren...


mvg,  nico.
« Laatst bewerkt op: 2017/03/22, 13:58:24 door nicolaasjan »
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #1 Gepost op: 2010/01/26, 12:50:06 »
Als je in de partitie van de laatst geïnstalleerde linux versie die grub heeft geïnstalleerd in /boot/grub/menu.lst het volgende toevoegt zou windows er weer bij kunnen staan:

title        Windows
root        (hd1,0)
makeactive
chainloader  +1

Staat windows er niet bij, dan gebruikt grub een menu.lst van een andere partitie.

Staat windows er nu wel bij, maar wil hij niet opstarten, vervang dan in /boot/grub/menu.lst (hd1,0) door (hd0,0).

Re: GRUB narigheden...
« Reactie #2 Gepost op: 2010/01/26, 13:47:22 »
Als je in de partitie van de laatst geïnstalleerde linux versie die grub heeft geïnstalleerd in /boot/grub/menu.lst het volgende toevoegt zou windows er weer bij kunnen staan:

title        Windows
root        (hd1,0)
makeactive
chainloader  +1

Staat windows er niet bij, dan gebruikt grub een menu.lst van een andere partitie.

Staat windows er nu wel bij, maar wil hij niet opstarten, vervang dan in /boot/grub/menu.lst (hd1,0) door (hd0,0).

Hoi Thomas,

Het werkt, bedankt! :)
WinXP stond er wel in, echter naar nu blijkt, foutief denk ik:

title Microsoft Windows XP Home Edition
rootnoverify (hd1,0)
savedefault
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1

Nadat ik dit heb vervangen door wat jij voorstelde:

title        Windows
root        (hd1,0)
makeactive
chainloader  +1

start WinXP wel op!

Echter zit ik nog wel met het euvel dat ik vanuit deze schijf de Linuxen op de sda-schijf niet kan opstarten.
(of ik moet dan iedere keer als ik in die systemen wil zijn, in het BIOS de opstartschijven wisselen...)
Hoe lossen we dat op? :|


mvg,  nico.
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #3 Gepost op: 2010/01/26, 16:23:06 »
De sda schijven kan je ook handmatig toevoegen aan /boot/grub/menu.lst . Het is wel even een flink karwei..

Per schijf een stuk tekst als de volgende toevoegen aan /boot/grub/menu.lst:
# Handmatig toegevoegd ubuntu op /dev/sda6
title           Ubuntu 9.04
root            (hd0,5)
kernel          /boot/vmlinuz-2.6.27-14-generic root=UUID=601126fc-a07a-4552-ae19-adcf53445802
initrd          /boot/initrd.img-2.6.27-14-generic
savedefault
boot

De title mag je zelf verzinnen, dat komt in het grub menu. De root daar moet je invullen (hd0,x) waar x het partitienummer minus één is. (In het bovenstaande voorbeeld dus sda6 geeft (hd0,5) ) De partitie dus waarop het os staat wat je wilt booten.
De kernellijn die moet je laten verwijzen naar het juiste kernelbestand op de partitie waar  het os staat dat je vanuit grub wilt opstarten. In het voorbeeld staat er dus op de partitie /dev/sda6 een bestand /boot/vmlinuz-2.26.27-14-generic. Idem het initrd bestand.

Het UUID kan je vinden door het commando sudo blkid.  Je krijgt dan voor alle schijven de uuid's.

succes. :)

Wellicht kan het een en ander ook automatisch, maar het lijkt erop dat dat niet helemaal goed gaat.


Re: GRUB narigheden...
« Reactie #4 Gepost op: 2010/01/26, 17:06:08 »
@Thomas,

De output van 'blkid' had ik in m'n eerste post al genoemd.
Voor bv. Ubuntu 8.04 geeft ie:
/dev/sda1: LABEL="Ubuntu-8.04.3" UUID="c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0" SEC_TYPE="ext2" TYPE="ext3"Het stukje in mijn huidige "/boot/grub/menu.lst" voor Ubuntu 8.04 luidt:
title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro quiet splash
initrd /boot/initrd.img-2.6.24-26-generic
savedefault
boot
Ik zie niet zo snel wat hierin niet zou kloppen...  ???
« Laatst bewerkt op: 2010/01/26, 18:04:30 door nicolaasjan »
Linux Mint 19.3 Mate

Offline Thijsg

  • Lid
Re: GRUB narigheden...
« Reactie #5 Gepost op: 2010/01/26, 17:32:58 »
Post eens de uitvoer van "ls /boot". De kernelverwijzing zou fout kunnen zijn.

Offline Mikkel

  • Lid
Re: GRUB narigheden...
« Reactie #6 Gepost op: 2010/01/26, 17:39:26 »
Het stukje in mijn huidige "/etc/menu.lst" voor Ubuntu 8.04 luidt:

Ik zie niet zo snel wat hierin niet zou kloppen...  ???

/etc/menu.lst, denk ik. ^-^ In mijn Ubuntu 8.04 staat de menu.lst in /boot/grub

Re: GRUB narigheden...
« Reactie #7 Gepost op: 2010/01/26, 17:41:37 »
Het stukje in mijn huidige "/etc/menu.lst" voor Ubuntu 8.04 luidt:

Ik zie niet zo snel wat hierin niet zou kloppen...  ???

/etc/menu.lst, denk ik. ^-^ In mijn Ubuntu 8.04 staat de menu.lst in /boot/grub
Sorry, bij mij ook natuurlijk; foutje... :-[
[edit] verbeterd...
« Laatst bewerkt op: 2010/01/26, 18:05:18 door nicolaasjan »
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #8 Gepost op: 2010/01/26, 17:44:46 »
Post eens de uitvoer van "ls /boot". De kernelverwijzing zou fout kunnen zijn.
Ik zit nu in 9.04.
Uitvoer van ls /media/Ubuntu-8.04.3/boot:
nico@nico-desktop:~$ ls /media/Ubuntu-8.04.3/boot
abi-2.6.24-26-generic         initrd.img-2.6.24-26-generic.bak
config-2.6.24-26-generic      memtest86+.bin
grub                          System.map-2.6.24-26-generic
initrd.img-2.6.24-26-generic  vmlinuz-2.6.24-26-generic
nico@nico-desktop:~$
Dus daar zit de fout niet... :|


mvg,  nico.
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #9 Gepost op: 2010/01/26, 19:44:17 »
Dan zou ik het zo ook niet weten.. krijg je een foutmelding oid als je een linux van de sda schijf wilt opstarten?

Re: GRUB narigheden...
« Reactie #10 Gepost op: 2010/01/26, 19:47:15 »
Dan zou ik het zo ook niet weten.. krijg je een foutmelding oid als je een linux van de sda schijf wilt opstarten?
Ja, ik meen me te herinneren het volgende:
Error 22: No such partition(terwijl die er toch wel degelijk is...)

[Edit]:
Heb nog even nagegaan.
De foutmelding is :
Error 17: Cannot mount selected partition
[Edit]:
menu.lst van 9.04 op sdb, waar ik nu dus nog steeds van opstart, is nu als volgt:

# 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 use 'savedefault' 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=827c937d-b4d8-4841-869d-286724ca901d ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=827c937d-b4d8-4841-869d-286724ca901d

## 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

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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-17-generic
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro quiet splash
initrd /boot/initrd.img-2.6.28-17-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-17-generic (recovery mode)
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro  single
initrd /boot/initrd.img-2.6.28-17-generic

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro  single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/memtest86+.bin
quiet

### 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 an existing
# linux installation on /dev/sda1.
title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro quiet splash
initrd /boot/initrd.img-2.6.24-26-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
#title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (recovery mode) (on /dev/sda1)
#root (hd0,0)
#kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro single
#initrd /boot/initrd.img-2.6.24-26-generic
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
#title Ubuntu 8.04.3 LTS, memtest86+ (on /dev/sda1)
#root (hd0,0)
#kernel /boot/memtest86+.bin 
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title mandriva-2009.1 (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz BOOT_IMAGE=mandriva-2009.1 root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
initrd (hd0,5)/boot/initrd.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title linux-nonfb (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e
initrd (hd0,5)/boot/initrd.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title failsafe (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 failsafe
initrd (hd0,5)/boot/initrd.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
#title linux (on /dev/sda6)
#root (hd0,5)
#kernel /boot/vmlinuz BOOT_IMAGE=linux root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
#initrd (hd0,5)/boot/initrd.img
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
#title desktop586 2.6.31.5-1mnb (on /dev/sda6)
#root (hd0,5)
#kernel /boot/vmlinuz-2.6.31.5-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.31.5-1mnb root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
#initrd (hd0,5)/boot/initrd-2.6.31.5-desktop586-1mnb.img
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
#title desktop586 2.6.29.6-3mnb (on /dev/sda6)
#root (hd0,5)
#kernel /boot/vmlinuz-2.6.29.6-desktop586-3mnb BOOT_IMAGE=desktop586_2.6.29.6-3mnb root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
#initrd (hd0,5)/boot/initrd-2.6.29.6-desktop586-3mnb.img
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Linux Mint 7 Gloria, kernel 2.6.28-17-generic (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.28-17-generic root=/dev/sda7 ro quiet splash
initrd /boot/initrd.img-2.6.28-17-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Linux Mint 7 Gloria, kernel 2.6.28-17-generic (recovery mode) (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.28-17-generic root=/dev/sda7 ro single
initrd /boot/initrd.img-2.6.28-17-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Linux Mint 7 Gloria, memtest86+ (on /dev/sda7)
root (hd0,6)
kernel /boot/memtest86+.bin 
savedefault
boot


title        Windows
root        (hd1,0)
makeactive
chainloader  +1
WinXP start wel op van deze schijf.

mvg,  nico.
« Laatst bewerkt op: 2010/01/26, 20:18:12 door nicolaasjan »
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #11 Gepost op: 2010/01/26, 22:57:04 »
Ik zo beginnen met een Grub herstel, maakt even niet uit welke linux versie je kiest.
Reparatie van grub: Start de Ubuntu live cd op. Open een terminal en type in sudo grub Nu krijg je de commando lijn van grub, grub> type nu find /boot/grub/stage1
Nu krijg je een of meerdere mogelijkheden te zien, bijv (hd0,3) type nu in
root (hdx,x) voor x het getal invullen wat jij hebt gevonden, let op er staat een spatie tussen root en (hdx,x) Nu type je in setup (hd0) let op de spatie. hd0 is je eerste harde schijf.
Type nu in quit Sluit af en start opnieuw op.
Als je bijv in Ubuntu 9.04 bent opgestart ga dan naar /boot/grub/menu.lst open dit bestand met gedit of een andere teksteditor, kan je de inhoud hier plaatsen.

Je kan ook in de BIOS de opstart volgorde omwisselen van de twee harde schijven. Ik heb dit ook wel eens meegemaakt dat de juiste Grub op de andere schijf geschreven was.
Even uitproberen. :)
In der Beschränkung zeigt sich der Meister.

Re: GRUB narigheden...
« Reactie #12 Gepost op: 2010/01/27, 19:43:29 »
@Gijsbert,

Hoi!,

Ik had eerder al tweemaal Grub-herstel geprobeerd, maar zonder het gewenste effect...
Vraag me niet hoe ik dat precies had gedaan, want het was nogal chaotisch die dag.
Eerlijk gezegd durf ik het nu voorlopig even niet aan.
Ik denk dat ik de huidige situatie, waarbij ik dus af en toe zal moeten wisselen tussen de schijven in het BIOS, maar even zal moeten aanvaarden. Of iemand moet een lumineus idee hebben... :rolleyes:

(ik hou mijn hart vast als ik er aan denk dat ik ooit met GRUB2 aan de gang moet)



mvg,  nico.
« Laatst bewerkt op: 2010/01/27, 19:46:25 door nicolaasjan »
Linux Mint 19.3 Mate

Offline Robertj

  • Lid
Re: GRUB narigheden...
« Reactie #13 Gepost op: 2010/01/28, 01:11:05 »
Misschien een rare vraag hoor maar waar heb je vijf besturingssystemen voor nodig? Is twee of drie niet genoeg? Ik ben geen specialist in computers en programmeren maar kan het niet zijn dat een maximum aan partities overschreden is. Ik dacht wel eens begrepen te hebben dat daar een maximum aan zit. Als ik het zo zie dan heb je 11 partities op twee schijven, op de één heb je er zeven en op de ander vier. kan dat niet gewoon teveel zijn voor het systeem?

Re: GRUB narigheden...
« Reactie #14 Gepost op: 2010/01/28, 11:52:14 »
Misschien een rare vraag hoor maar waar heb je vijf besturingssystemen voor nodig? Is twee of drie niet genoeg? Ik ben geen specialist in computers en programmeren maar kan het niet zijn dat een maximum aan partities overschreden is. Ik dacht wel eens begrepen te hebben dat daar een maximum aan zit. Als ik het zo zie dan heb je 11 partities op twee schijven, op de één heb je er zeven en op de ander vier. kan dat niet gewoon teveel zijn voor het systeem?
Hoi Robert,

Ik begrijp je twijfels.

Teveel voor het systeem is het zeker niet. Ik heb eens gelezen van een nerd die er 146 op had draaien... :o
Het is bij mij in de loop van de tijd zo gegroeid en tot nu toe is het eigenlijk altijd goed gegaan.
Als je er voor zorgt dat je een 'extended partition' hebt kun je er zoveel partities op zetten als je wilt.
Dus teveel voor het systeem, nee; wel voor mijzelf af en toe... XD
« Laatst bewerkt op: 2010/01/28, 11:58:26 door nicolaasjan »
Linux Mint 19.3 Mate

Offline timosha

  • Lid
Re: GRUB narigheden...
« Reactie #15 Gepost op: 2010/01/28, 21:13:22 »
Misschien een rare vraag hoor maar waar heb je vijf besturingssystemen voor nodig? Is twee of drie niet genoeg?

Inderdaad, een hele rare vraag  :rolleyes:
Stabiele OS: Solaris 10 - OS X 10.6.4 - Linux Mint 9 - Windows 7
Project OS: Linux Mint 9 Isadora
Test OS: Ubuntu 10.04 - 10.10
Server: Windows Server 2008 R2 - Exchange 2010

Contra verbosos noli contendere verbis: sermo datur cunctis, animi sapientia paucis.


Re: GRUB narigheden...
« Reactie #16 Gepost op: 2010/01/28, 21:28:22 »
NicolaasJan, op welke partitie staat de menu.lst waarin je de windows entry had gewijzigd waarna deze weer werkte?

Re: GRUB narigheden...
« Reactie #17 Gepost op: 2010/01/29, 11:14:18 »
NicolaasJan, op welke partitie staat de menu.lst waarin je de windows entry had gewijzigd waarna deze weer werkte?
Die staat op de tweede partitie van sdb (Ubuntu 9.04)...
(zie screenshot aan het begin van de post)

mvg,  nico.
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #18 Gepost op: 2010/01/29, 12:53:25 »
Post eens de uitvoer van "ls /boot". De kernelverwijzing zou fout kunnen zijn.
Ik zit nu in 9.04.
Uitvoer van ls /media/Ubuntu-8.04.3/boot:
nico@nico-desktop:~$ ls /media/Ubuntu-8.04.3/boot
abi-2.6.24-26-generic         initrd.img-2.6.24-26-generic.bak
config-2.6.24-26-generic      memtest86+.bin
grub                          System.map-2.6.24-26-generic
initrd.img-2.6.24-26-generic  vmlinuz-2.6.24-26-generic
nico@nico-desktop:~$
Dus daar zit de fout niet... :|


mvg,  nico.

Je geeft hierboven aan dat de verwijzingen in menu.lst kloppen, maar dat is de menu.lst die staat bij de 8.04 installatie op sda1. Die wordt dus niet gebruikt door grub. Grub gebruikt dus de menu.lst van de 9.04 installatie op /dev/sdb2. Als je de menu.lst van die 9.04 installatie op sdb2 hier kan posten, dan kunnen we zien of deze gewijzigd moet worden?

Re: GRUB narigheden...
« Reactie #19 Gepost op: 2010/01/29, 16:47:35 »
@Thomas,

menu.lst van 9.04:

# 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 use 'savedefault' 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=827c937d-b4d8-4841-869d-286724ca901d ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=827c937d-b4d8-4841-869d-286724ca901d

## 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

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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-17-generic
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro quiet splash
initrd /boot/initrd.img-2.6.28-17-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-17-generic (recovery mode)
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro  single
initrd /boot/initrd.img-2.6.28-17-generic

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=827c937d-b4d8-4841-869d-286724ca901d ro  single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 827c937d-b4d8-4841-869d-286724ca901d
kernel /boot/memtest86+.bin
quiet

### 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 an existing
# linux installation on /dev/sda1.
title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro quiet splash
initrd /boot/initrd.img-2.6.24-26-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
#title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (recovery mode) (on /dev/sda1)
#root (hd0,0)
#kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro single
#initrd /boot/initrd.img-2.6.24-26-generic
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
#title Ubuntu 8.04.3 LTS, memtest86+ (on /dev/sda1)
#root (hd0,0)
#kernel /boot/memtest86+.bin 
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title mandriva-2009.1 (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz BOOT_IMAGE=mandriva-2009.1 root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
initrd (hd0,5)/boot/initrd.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title linux-nonfb (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e
initrd (hd0,5)/boot/initrd.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title failsafe (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 failsafe
initrd (hd0,5)/boot/initrd.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
#title linux (on /dev/sda6)
#root (hd0,5)
#kernel /boot/vmlinuz BOOT_IMAGE=linux root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
#initrd (hd0,5)/boot/initrd.img
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
#title desktop586 2.6.31.5-1mnb (on /dev/sda6)
#root (hd0,5)
#kernel /boot/vmlinuz-2.6.31.5-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.31.5-1mnb root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
#initrd (hd0,5)/boot/initrd-2.6.31.5-desktop586-1mnb.img
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
#title desktop586 2.6.29.6-3mnb (on /dev/sda6)
#root (hd0,5)
#kernel /boot/vmlinuz-2.6.29.6-desktop586-3mnb BOOT_IMAGE=desktop586_2.6.29.6-3mnb root=UUID=073a1253-8cc8-42f6-b85d-ba9a569ae2b5 resume=UUID=32db0697-f3ff-40a7-864f-90743d5cc72e splash=silent vga=788
#initrd (hd0,5)/boot/initrd-2.6.29.6-desktop586-3mnb.img
#savedefault
#boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Linux Mint 7 Gloria, kernel 2.6.28-17-generic (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.28-17-generic root=/dev/sda7 ro quiet splash
initrd /boot/initrd.img-2.6.28-17-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Linux Mint 7 Gloria, kernel 2.6.28-17-generic (recovery mode) (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.28-17-generic root=/dev/sda7 ro single
initrd /boot/initrd.img-2.6.28-17-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Linux Mint 7 Gloria, memtest86+ (on /dev/sda7)
root (hd0,6)
kernel /boot/memtest86+.bin 
savedefault
boot


title        Windows
root        (hd1,0)
makeactive
chainloader  +1

mvg,  nico.
Linux Mint 19.3 Mate

Re: GRUB narigheden...
« Reactie #20 Gepost op: 2010/01/29, 19:37:18 »
Als je je bios zo instelt dat deze boot vanaf de schijf waarop 9.04 staat, en je wijzigt in de /boot/grub/menu.lst van 9.04 "(hd0,0)" in "(hd1,0)" bij de entry voor 8.04, en probeer dan nog eens?

Dus, in de menu.lst op sdb2
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro quiet splash
initrd /boot/initrd.img-2.6.24-26-generic
savedefault
boot
veranderen in:
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (on /dev/sda1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-26-generic root=UUID=c7550fdd-5bf0-4d59-bdbd-f6a1c36bada0 ro quiet splash
initrd /boot/initrd.img-2.6.24-26-generic
savedefault
boot

En probeer dan nog eens of Ubuntu 8.04.3 op te starten is met grub? (het klinkt tegenstrijdig, maar is volgens mij wel het proberen waard.. Het zou kunnen dat grub omdat er wordt geboot vanaf sdb denkt dat sdb hd0 is, en sda vervolgens hd1 maakt. Vreemd is dan natuurlijk wel dat windows wel gewoon boot... maar goed.. toch even proberen voor de zekerheid, je weet nooit..)
« Laatst bewerkt op: 2010/01/29, 19:39:19 door Thomas de Graaff »

Re: GRUB narigheden...
« Reactie #21 Gepost op: 2010/01/29, 21:11:43 »
@Thomas,

Ik zal het straks eens proberen.
Eerst ben ik nog een tijdje m'n vers gedownloade Ubuntu 8.04.4 iso aan het seeden... :P

[edit]:

Ik heb het uitgeprobeerd, maar helaas...
Geeft:
Error 17: Cannot mount selected partition :|

mvg,  nico.
« Laatst bewerkt op: 2010/01/29, 21:46:31 door nicolaasjan »
Linux Mint 19.3 Mate