Kirjoittaja Aihe: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä  (Luettu 3986 kertaa)

kariukko

  • Käyttäjä
  • Viestejä: 16
    • Profiili
Päivityksen jälkeen tuli grubin latauksessa tyhjä valikko, jonka editointi ei onnistunut.

CD:ltä boottaaminen paljasti että menu.lst:n koko oli paisunut 6.3 Mt:uun ja sisältö sotkua tyyliin:

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

Päivityksen asennus saattoi antaa virheilmon, jota en tullut katsoneeksi, koska jokin fonttiongelma antaa aina kasan virheilmoja. Mielenkiinnosta kysynkin onko kellään täällä hajuakaan mistä tuollainen mammuttitauti saattaisi johtua, googlaamalla en löytänyt selitystä.



peran

  • Vieras
Vs: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä
« Vastaus #1 : 01.08.09 - klo:00.23 »
Varmaan bugi, kun on ikuiseen looppiin jäätynyt.

Pääsetköhän tiedostoon muuten käsiksi kuin live-levyllä ?

Tossa nyt on malliksi mun grubini tärkeimmät tiedot. noita uuid:tä ei kannata käyttää vaan käytä (hd0,0) tai vastaavaa...

Suoraan tämä minun esittämäni ei toimi..
Koodia: [Valitse]
# 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=57654f69-b410-4f47-aff3-ef59959beba5 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=57654f69-b410-4f47-aff3-ef59959beba5

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

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-23-generic (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro quiet splash
initrd /boot/initrd.img-2.6.24-23-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro single
initrd /boot/initrd.img-2.6.24-23-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-22-generic (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-22-generic (recovery mode) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro single
initrd /boot/initrd.img-2.6.24-22-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-19-generic (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-19-generic (recovery mode) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro single
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot


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




 Muunna tosta kerneliksi oikea, ja boottaa uudestaan

Menisiköhän seuraava...
Koodia: [Valitse]
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-19-generic (recovery mode) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=3535e7c0-fd21-452f-83ca-dbaf1cb484d3 ro single
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot

seuraavan laisesti... en tiedä, mutta tuskin kokeilemalla saat vahinkoa...

Koodia: [Valitse]
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 8.04.2, kernel 2.6.24-19-generic (recovery mode) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot

Googlaamalla varmaankin voit varmistaa asian..

kariukko

  • Käyttäjä
  • Viestejä: 16
    • Profiili
Vs: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä
« Vastaus #2 : 06.08.09 - klo:02.05 »
Kiitos vastauksesta.

Ei siis auttanut muuta kuin CD:ltä puuttaaminen: Grubin editointitila toimi yhtä kummallisesti kuin mitä oli "menu.lst":n rakaennekkin, eikä siis ollut näkyvissä noita muuten valittavina olevia vanhoja bootti-valintoja. Onneksi asennus tekee backupin ko. tiedostosta, joten oli helppo vaihtaa nimiä.

Alkuperäinen syy taitaa olla, että olen aikojen kanssa itse lisäillyt sinne "automaatti-osioon" omia vaihtoehtoja, joiden kanssa päivitys sitten meni solmuun. Solmu vain oli huikean kokoinen! En todellakaan löytänyt Googelilla kenneltäkään vastaavaa ongelmaa.

kariukko

  • Käyttäjä
  • Viestejä: 16
    • Profiili
Jos annan uuden kernelin päivityksen yhteydessä "menu.lst":n päivittyä siitä kasvaa muodoton, riveillä toistuu samat määreet uudelleen ja uudelleen. Olen taivastellut tätä ennenkin: http://forum.ubuntu-fi.org/index.php?topic=28186 ??? Esim:

title      Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
root      (hd0,4) (hd0,4) (hd0,4) (hd0,4)
kernel      /boot/vmlinuz-2.6.28-15-generic root=UUID=45e15107-4400-42fe-86cf-6e4dae79bc37 ro root=UUID=45e15107-4400-42fe-86cf-6e4dae79bc37 ro root=UUID=45e15107-4400-42fe-86cf-6e4dae79bc37 ro root=UUID=45e15107-4400-42fe-86cf-6e4dae79bc37 ro  single
initrd      /boot/initrd.img-2.6.28-15-generic

ukki

  • Käyttäjä
  • Viestejä: 156
    • Profiili
Hei!

Katso varoitustani Ubuntu 9.10- asentamisesta
-> 'Asentaminen ja käyttöönotto'

janne

  • Käyttäjä
  • Viestejä: 5150
    • Profiili
Katso varoitustani Ubuntu 9.10- asentamisesta
-> 'Asentaminen ja käyttöönotto'

voi hyvänen aika. jostain syystä sinulle ei tunnu menevän perille se, että sinä et tiedä mistä sinä puhut. ensinnäkin, kyseinen "varoituksesi" oli turha, eikä sinulla ollut sille mitään perusteita ja sattumoisin tässä ketjussa ei ole kyse siitä mistä turhaan varoittelit siinä toisessa ketjussa. varoitukseesi viittaaminen täällä on siis tuplaturhaa, sikäli kun se nyt ylipäätään on mahdollista.
Janne

ukki

  • Käyttäjä
  • Viestejä: 156
    • Profiili
Hei Janne

Tutkisit ennenkuin hutkit !

lompolo

  • Käyttäjä
  • Viestejä: 852
    • Profiili
Ei tässä ole paljon tutkittavaa. Kyseessä ei ole 9.10. Kyseessä ei ole grub2. Tutkiminen on sikäli mahdotonta, ettei ketjun aloittajan /boot/grub/menu.lst ole nähtävillä liitteenä. Varoitus ei vaan liity tähän ketjuun millään tavalla.

gdm

  • Sitä saa mitä tilaa...
  • Käyttäjä
  • Viestejä: 4363
    • Profiili
    • Keskustelualueiden säännöt
Hei Janne

Tutkisit ennenkuin hutkit !

Janne on oikeassa, tuon oman ketjusi varoitukset eivät ole millään lailla valideja tässä tapauksessa.

aiheet yhdistetty, yksi ketju per aihe riittää.

Jos kariukko laittaisi näkyville sen menu.lst tiedoston niin voisi auttaa paljon enemmän.
Lisää [Ratkaistu] aloitusviestiin jos ongelmasi selviää!
Saamasi tuki on ilmaista, joten älä vaadi tai uhkaile saadaksesi apua!

RistoH

  • Käyttäjä
  • Viestejä: 134
    • Profiili
Vs: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä
« Vastaus #9 : 01.11.09 - klo:19.42 »
Höh! menu.lst ei näyttäisi olevan enää /boot/grub -hakemistossa. Eikä Etsi-komento löytänyt sitä! Onkohan sillä tässä 9.10 versiossa joku muu nimi tai paikka?
Suomen Wiki laahaa jäljessä, että sieltä ohjeita löytyisi!

juyli

  • Vieras
Vs: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä
« Vastaus #10 : 02.11.09 - klo:11.08 »
Höh! menu.lst ei näyttäisi olevan enää /boot/grub -hakemistossa.

Nyt 9.10 lähtien on käytössä oletuksena Grub 2, joka ei käytä menu.lst tiedostoa määrittelytiedostona, kuten vanhempi versio Grub:sta.
http://packages.ubuntu.com/karmic/grub2
Tietysti on aina mahdollista asentaa "vanha" grub, jos haluaa käpistellä /boot/grub/menu.lst tiedostoa:
http://packages.ubuntu.com/karmic/grub

RistoH

  • Käyttäjä
  • Viestejä: 134
    • Profiili
Vs: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä
« Vastaus #11 : 02.11.09 - klo:11.56 »
Uusi Grub varmaan on ihan hyvä, jollei käynnistellä muita käyttiksiä vaihtoehtoisesti ja haluta vaikuttaa niiden latautumiseen.

nm

  • Käyttäjä
  • Viestejä: 16252
    • Profiili
Vs: grubin mammuttikokoinen menu.lst 2.6.28-14 päivityksessä
« Vastaus #12 : 04.11.09 - klo:15.40 »
Uusi Grub varmaan on ihan hyvä, jollei käynnistellä muita käyttiksiä vaihtoehtoisesti ja haluta vaikuttaa niiden latautumiseen.

Ihan yhtä hyvä se on edelleen tuohon tarkoitukseen.

Perusasetukset tehdään /etc/default/grub -tiedostossa. Siellä voi esimerkiksi asettaa vakiona käynnistettävän kohteen.

Omat lisäykset valikkoon voi tehdä editoimalla /etc/grub.d/40_custom -tiedostoa.

Muokkausten jälkeen komennetaan sudo update-grub
« Viimeksi muokattu: 04.11.09 - klo:15.42 kirjoittanut nm »