View previous topic :: View next topic |
Author |
Message |
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 12:13 pm Post subject: Problema dopo aggiornamento portage..[RISOLTO] |
|
|
Oggi ho dato un
il tutto è andato a buon fine..do un e tutto ok, non mi sovrascrive niente di fondamentale. Dopo un attimo ho riavviato il notebook e come per magia su gkrellm vedo segnalato come kernel un 2.4.20 mentre io da un po ero passato a un 2.6.5 ( compilato e sempre funzionante ) per un controllo do un uname -a e la cosa non cambia ..
Code: |
bash-2.05b# uname -a
Linux Gentoo 2.4.20-gentoo-r6 #1 SMP Tue Feb 24 01:31:28 CET 2004 i686 Celeron (Coppermine) GenuineIntel GNU/Linux
|
Allora deleto il link
Code: |
linux -> linux-2.6.5-gentoo/
|
lo rifaccio e ricompilo..il tutto va a buon fine, copio bzImage in /boot e vado con
e mi ritorna un errore:
Code: |
bash-2.05b# /sbin/lilo
/dev/mapper/control: open failed: No such file or directory
Is device-mapper driver missing from kernel?
Added Gentoo *
|
Che è questo errore ? posso risolvere in qualche modo ?
Last edited by f0llia on Thu Apr 15, 2004 5:38 pm; edited 2 times in total |
|
Back to top |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 12:24 pm Post subject: |
|
|
il mio problema si presenta dopo un emerge -u portage.. e mi ha prorpio cambiato kernel dopo il reboot..prima di dare l'emerge e reboottare il 2.6.5 funzionava perfettamente..li il problema mi sembra sia durante la prima compialzione del 2.6.5..non in seguito a un update del portage ..l'errore lanciando il lilo però è lo stesso..! bha
Un modo per risolvere sta cosa c'e ? |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Thu Apr 15, 2004 1:09 pm Post subject: |
|
|
f0llia wrote: | il mio problema si presenta dopo un emerge -u portage..
|
Non capisco come abbia fatto l'emerge del portage a sovrascrivere il boot-sector.
Sei sicuro di non aver lanciato lilo dopo etc-update?
f0llia wrote: |
Un modo per risolvere sta cosa c'e ? |
per caso usi l'LVM? _________________ Ciao da me! |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 1:22 pm Post subject: |
|
|
Quote: |
Sei sicuro di non aver lanciato lilo dopo etc-update?
|
Si sicuro non ho fatto nient'altro dopo l'etc-udate..
Quote: |
per caso usi l'LVM?
|
No, non lo uso |
|
Back to top |
|
|
manolo_rulez n00b
Joined: 16 Dec 2003 Posts: 42 Location: Milano
|
Posted: Thu Apr 15, 2004 3:11 pm Post subject: |
|
|
Pure io ho riscontrato lo stesso problema, ho aggiornato il portage alla r5, dato etc-update e su gkrellm mi sono trovato col kernel 2.4.22 quando da poco avevo compilato il 2.6.5!
Che si può fare? |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 3:44 pm Post subject: |
|
|
..sono abbastanza disperato.. ho provato a ritornare a un kernel 2.4.26_pre6-gentoo, la ricompilazione va a buon fine.. ma quando do
mi ritorna ancora questo errore:
Code: |
bash-2.05b# /sbin/lilo
/dev/mapper/control: open failed: No such file or directory
Is device-mapper driver missing from kernel?
Added Gentoo *
bash-2.05b#
|
Ma che succede??? Adesso se riavvio il notebook mi va tutto a puttane o no ?
Non ci capisco più nulla
HELP |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Thu Apr 15, 2004 3:56 pm Post subject: |
|
|
f0llia wrote: |
Ma che succede??? Adesso se riavvio il notebook mi va tutto a puttane o no ?
Non ci capisco più nulla
HELP |
Come ho detto nell'altro thread nel caso pessimo puoi fare il boot con il livecd e poi il chroot.
Purtroppo su quell'errore non so cosa dire, una ricerca con google aveva dato qualche post di gente che aveva quell'errore usando LVM per questo ti ho fatto la domanda di prima.
Proviamo un approccio diverso.
Che versione usi di lilo? Puoi postare il lilo.conf? e l'fstab? _________________ Ciao da me! |
|
Back to top |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Thu Apr 15, 2004 3:59 pm Post subject: Re: Problema dopo aggiornamento portage.. |
|
|
Comunque sia, alla fine sembra che la voce del kernel venga aggiunta. Io proverei a rebootare, con live cd a portata di mano, come suggerito.
Per la cronaca, io non ho alcun /dev/mapper*... mah Usi devfs? _________________ "Larry the Cow was a bit frustrated at the current state of Linux Distributions..." |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 4:17 pm Post subject: |
|
|
Quote: |
Che versione usi di lilo? Puoi postare il lilo.conf? e l'fstab?
|
Code: |
* sys-boot/lilo
Latest version available: 22.5.8-r2
Latest version installed: 22.5.8-r2
|
Ecco la versione.
Il lilo.conf invece:
Code: |
# $Header: /home/cvsroot/gentoo-x86/sys-apps/lilo/files/lilo.conf,v 1.4 2003/07/17 21:10:26 azarah Exp $
# Author: Ultanium
#
# Start LILO global section
#
# Faster, but won't work on all systems:
#compact
# Should work for most systems, and do not have the sector limit:
lba32
# If lba32 do not work, use linear:
#linear
# MBR to install LILO to:
boot = /dev/hda
map = /boot/.map
# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/disc0/disc bios=0x80 # see this as the first BIOS disk
#disk=/dev/sda bios=0x81 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82 # see this as the third BIOS disk
# Here you can select the secondary loader to install. A few
# examples is:
#
# boot-text.b
# boot-menu.b
# boot-bmp.b
#
install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you
# do not need boot-{text,menu,bmp}.b in
# /boot, as they are linked into the lilo
# binary.
menu-scheme=Wb
prompt
# If you always want to see the prompt with a 15 second timeout:
#timeout=150
delay = 50
# Normal VGA console
vga = normal
# VESA console with size 1024x768x16:
#vga = 791
#
# End LILO global section
#
#
# Linux bootable partition config begins
#
image = /boot/bzImage
root = /dev/hda3
#root = /devices/discs/disc0/part3
label = Gentoo
read-only # read-only for checking
#
# Linux bootable partition config ends
#
#
# DOS bootable partition config begins
#
#other = /dev/hda1
#other = /devices/discs/disc0/part1
# label = Windows
# table = /dev/hda
#
# DOS bootable partition config ends
#
|
Ecco l'fstab:
Code: |
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext3 noauto,noatime 1 1
/dev/hda3 / ReiserFS noatime 0 0
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
Ho provato a seguire il consiglio di MyZelF, ho reboottato e il sistema parte correttamente, a parte errori riferiti ad ALSA ( ma sono ok perche non ho emerso gli alsa-driver..)
Quote: |
Per la cronaca, io non ho alcun /dev/mapper*... mah Usi devfs?
|
Non uso devfs.. e la cartella /dev/mapper ...... manca.. |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Thu Apr 15, 2004 5:01 pm Post subject: |
|
|
f0llia wrote: |
* sys-boot/lilo
Latest version installed: 22.5.8-r2
|
Il lilo.conf e l'fstab sono normalissimi (era un tentativo...), se guardo in packages.gentoo.org vedo che il lilo é un ~x86 e, nel changelog trovo:
Quote: |
*lilo-22.5.8-r2 (13 Apr 2004)
13 Apr 2004; Thomas Raschbacher <lordvan@gentoo.org> lilo-22.5.8-r2.ebuild,
files/lilo-22.5.8-devmapper_gentoo.patch:
Added patch for lilo to work with device-mapper volumes (
http://www.saout.de/misc/ changed the patch to work with gentoo's
device-mapper install )
|
Allora o trovi il modo di "generare" il mapper oppure metti l'ultima x86 "stabile".
Il mio consiglio é per la x86 stabile _________________ Ciao da me! |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 5:14 pm Post subject: |
|
|
mmm l'ultima stabile è ? |
|
Back to top |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 5:28 pm Post subject: |
|
|
tnx MyZelF Sempre gentilissimo |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Thu Apr 15, 2004 5:37 pm Post subject: |
|
|
Ragazzi il problema è proprio la versione di lilo!! Sono tornato alla 22.5.8-r1 e tutto funziona
Code: |
bash-2.05b# /sbin/lilo
Added Gentoo *
bash-2.05b#
|
Tnx all Fantastici come sempre
Bella a tutti |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Fri Apr 16, 2004 9:17 am Post subject: |
|
|
MyZelF wrote: | http://packages.gentoo.org/search/?sstring=lilo |
Uh, e io che avevo indicato?
Comunque, giusto per chiudere il discroso c'era ancora una cosa che volevo verificare (per i posteri...):
randomaze wrote: | Sei sicuro di non aver lanciato lilo dopo etc-update?
|
Il lilo é stato lanciato da emerge, infatti andando a vedere l'ebuild di lilo si trova la sezione postinst:
Code: |
pkg_postinst() {
if [ ! -e ${ROOT}/boot/boot.b -a ! -L ${ROOT}/boot/boot.b ]
then
[ -f "${ROOT}/boot/boot-menu.b" ] && \
ln -snf boot-menu.b ${ROOT}/boot/boot.b
fi
if [ "${ROOT}" = "/" ]
then
if lilocheck
then
einfo "Running LILO to complete the install ..."
# do not redirect to /dev/null because it may display some input
# prompt
/sbin/lilo
if [ "$?" -ne 0 ]
then
echo
ewarn "Running /sbin/lilo failed! Please check what the problem is"
ewarn "before your next reboot."
echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1
echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1
sleep 5
fi
fi
echo
fi
echo
einfo "Please note that all the loader files (/boot/*.b) is now linked"
einfo "into LILO, and thus no longer installed."
echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1
sleep 3
echo
}
|
infatti (giustamente) essendo cambiato il bootloader se questo non viene re-inizializzato al sucessivo reboot non parte nulla perché il boot-sector punterebbe a un binario inesistente (in quanto la versione precedente é stata cancellata!).
Ecco spiegato come mai il kernel era ritornato ad essere un 2.4 _________________ Ciao da me! |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Fri Apr 16, 2004 9:46 am Post subject: |
|
|
miTTico anche tu randomaze |
|
Back to top |
|
|
|