Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FAQ] Problemi con /sbin/lilo [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 1:17 pm    Post subject: [FAQ] Problemi con /sbin/lilo [RISOLTO] Reply with quote

Salve a tutti, mi sono visto costretto a reinstallare gentoo dopo che, oltre ad aver resettato /etc/, ho dato il colpo di grazia sbagliando la partizione da formattare... :?

Fila tutto liscio fino a quando lancio /sbin/lilo, mi da il seguente messaggio d'errore:

Code:
Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/ide/host0/bus0/target0/lun0/disc' -> '/dev/hda'
    The kernel was compiled with DEVFS_FS, but 'devfs=mount' was omitted
        as a kernel command-line boot parameter; hence, the '/dev' directory
        structure does not reflect DEVFS_FS device names.
Fatal: open /boot/vmlinuz-2.6.6_rc1: No such file or directory


Cercando con questo messaggio nel forum ho trovato parecchi 3d simili al mio (anche se pochi con una soluzione), con la differenza che tutti si concludevano con Added Gentoo, (e quindi gentoo partiva) il mio no 8O
Non installa nemmeno lilo nell'mbr.

Ho controllato ma il lilo.conf mi sembra corretto...non capisco...ho provato pure ad aggiungerre 'devfs=mount' al lilo.conf ma nulla...che posso fare?

Questo è il mio lilo.conf


Code:


# MBR to install LILO to:
boot = /dev/hda
map = /boot/.map

...

install = /boot/boot-menu.b   
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/vmlinuz-2.6.6_rc1
        root = /dev/hda4
        #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/hda5

        label = Mandrakka
        #table = /dev/hda
#
# DOS bootable partition config ends


Sembrerebbe che non trovi il kernel :(

Grazie


Last edited by maiosyet on Sat Apr 24, 2004 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Fri Apr 23, 2004 1:25 pm    Post subject: Reply with quote

Vuoi usare devfs? Se sì, controlla di avere compilato il kernel con

Code:
[*] /dev file system support (OBSOLETE)
[*]   Automatically mount at boot

_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 1:45 pm    Post subject: Reply with quote

Perdona l'ignoranza, che è devfs?

E dove cacchio sono i moduli da te indicati che non li trovo? 8O

Ma ne vale la pena, visto che è segnalato come obsoleto?


Grazie :roll:
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Fri Apr 23, 2004 1:54 pm    Post subject: Reply with quote

E il modo più semplice per popolare /dev, a meno che tu non voglia creare i device a mano o usare l'equivalente tool in user space, udev.

Trovi quelle voci sotto File Systems -> Pseudo filesystems.

Nonostante sia marcato come obsoleto in favore di udev, questa è la via consigliata nel manuale di installazione gentoo.
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 2:07 pm    Post subject: Reply with quote

MyZelF wrote:
Nonostante sia marcato come obsoleto in favore di udev, questa è la via consigliata nel manuale di installazione gentoo.

Il problema e' che udev e' ancora in stato di testing.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 2:24 pm    Post subject: Reply with quote

Ho ricompilato il kernel con i giusti moduli, ma niente da fare :(

Questo è l'output dopo aver chiuso e riaperto il chroot e aver smontato la partizione:

Code:
localhost / # /sbin/lilo

Warning: '/proc/partitions' does not exist, disk scan bypassed
Fatal: open /boot/vmlinuz-2.6.6_rc1: No such file or directory

localhost / # mount /proc
localhost / # /sbin/lilo

Warning: '/proc/partitions' does not match '/dev' directory structure.
    [ERRORE DI PRIMA]
Fatal: open /boot/vmlinuz-2.6.6_rc1: No such file or directory
localhost / #


Il fatto che non mi montatava /proc in automatico avveniva comunque anche prima...

Il fatto grave è che non trova il kernel...pecchè? :x 8O
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Fri Apr 23, 2004 2:35 pm    Post subject: Reply with quote

Ovviamente /boot è montata e/o c'è l'immagine specificata in lilo.conf?

Per il problema con /proc direi che o non hai incluso il supporto a /proc nel kernel oppure non è montato (controlla l'output di mount).

Non ho capito una cosa: stai usando il livecd?
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."


Last edited by MyZelF on Fri Apr 23, 2004 2:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
cataenry
Guru
Guru


Joined: 04 Nov 2003
Posts: 343

PostPosted: Fri Apr 23, 2004 2:36 pm    Post subject: Reply with quote

Hai percaso /boot in una partizione a parte come da guida?
Se sì. verifica che sia montata.... Spero d'esserti stato d'aiuto.......
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 2:48 pm    Post subject: Reply with quote

MyZelF wrote:
Ovviamente /boot è montata e/o c'è l'immagine specificata in lilo.conf?

Per il problema con /proc direi che o non hai incluso il supporto a /proc nel kernel oppure non è montato (controlla l'output di mount).

Non ho capito una cosa: stai usando il livecd?


Per proc non è un problema perchè mi era capitato anche nella vecchia installazione, ma una volta montato (con gentoo avviata) il problema non c'era più...

La partizione /boot è montata, ma non capisco cosa intendi con 'se c'è l'immagine specifica in lilo.conf'' - comunque te l'ho postato sopra :wink:

Il problema maggiore che persiste è quel

Code:
Fatal: open /boot/vmlinux-2.6.6_rc1: No such file or directory


:?
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Fri Apr 23, 2004 2:57 pm    Post subject: Reply with quote

Posta l'output di
Code:
# ls -l /boot


L'errore dice vmlinux-ecc-ecc, in lilo.conf hai vmlinuz-ecc-ecc. :?
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 7:52 pm    Post subject: Reply with quote

Chiedo scusa per l'ultimo errore, ricontrollando lilo.conf avevo effettivamente editato per sbaglio e risostituito con 'vmlinux :?

Infatti ora l'errore lo da normale.

In risposta alla tua domanda di prima a cui mi sono dimenticato di rispondere, sono chrottato in gentoo dalla mandrake perchè ho un solo computer...

L'output del ls boot però si rifà solo alla configurazione di mandrake, e /boot è montato ne sono sicuro.

Code:

localhost / # ls -l /boot
totale 2153
-rw-r--r--    1 root     root          512 21 apr 17:54 boot.0300
lrwxrwxrwx    1 root     root           21 23 apr 20:40 config -> config-2.4.21-0.13mdk
-rw-r--r--    1 root     root        47295 14 mar  2003 config-2.4.21-0.13mdk
drwxr-xr-x    2 root     root         1024 21 apr 17:49 grub
-rw-r--r--    1 root     root        50068 21 apr 17:53 initrd-2.4.21-0.13mdk.img
lrwxrwxrwx    1 root     root           25 21 apr 17:53 initrd.img -> initrd-2.4.21-0.13mdk.img
-rw-r--r--    1 root     root          256 21 apr 17:54 it-latin1.klt
lrwxrwxrwx    1 root     root           29 23 apr 20:40 kernel.h -> /boot/kernel.h-2.4.21-0.13mdk
-rw-r--r--    1 root     root          441 21 apr 17:55 kernel.h-2.4.21-0.13mdk
-rw-------    1 root     root       152576 21 apr 17:54 map
lrwxrwxrwx    1 root     root           15 21 apr 17:54 message -> message-graphic
-rw-r--r--    1 root     root        96382 21 apr 17:53 message-graphic
-rw-r--r--    1 root     root          162 21 apr 17:54 message-text
lrwxrwxrwx    1 root     root           25 21 apr 17:55 System.map -> System.map-2.4.21-0.13mdk
-rw-r--r--    1 root     root       582935 14 mar  2003 System.map-2.4.21-0.13mdk
lrwxrwxrwx    1 root     root           22 21 apr 17:53 vmlinuz -> vmlinuz-2.4.21-0.13mdk
-rw-r--r--    1 root     root      1252778 14 mar  2003 vmlinuz-2.4.21-0.13mdk
localhost / #


Non riesco proprio a capire perchè mi dice che non esiste file o direcotry 8O
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 7:54 pm    Post subject: Reply with quote

maiosyet wrote:
Non riesco proprio a capire perchè mi dice che non esiste file o direcotry 8O

Perche' in /boot effettivamente non esiste l'immagine vmlinux-2.6.6_rc1ma solo vmlinuz-2.4.21-0.13mdk
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 8:01 pm    Post subject: Reply with quote

fedeliallalinea wrote:

Perche' in /boot effettivamente non esiste l'immagine vmlinux-2.6.6_rc1ma solo vmlinuz-2.4.21-0.13mdk


Eh già...ma...adesso che ci penso...

:illuminazione:

Potrebbe (per caso) essere dovuto al fatto che, ora che ci penso, non ricordo se quando ho compilato il kernel avevo effettivamente montato /boot? :roll:
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 8:07 pm    Post subject: Reply with quote

maiosyet wrote:
Potrebbe (per caso) essere dovuto al fatto che, ora che ci penso, non ricordo se quando ho compilato il kernel avevo effettivamente montato /boot? :roll:

Sicuramente :D . Vabbe capita anche a me ogni tanto.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 8:08 pm    Post subject: Reply with quote

fedeliallalinea wrote:

Sicuramente :D . Vabbe capita anche a me ogni tanto.


Ora ricompilo, se funziona vado a nascondermi per sempre nell'angolino :oops:
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Fri Apr 23, 2004 8:25 pm    Post subject: Reply with quote

non dovrebbe servire la ricompilazione: prova con un ls a /boot smontato.
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 8:32 pm    Post subject: Reply with quote

Myzelf, troppo tardi, ormai avevo ricompilato...

Stavolta sia /boot che /proc erano montati, ho controllato, ma nulla :x

Non capisco perchè non crea sta immagine :|

Il ls a boot smontato mi da questo

Code:


localhost linux # umount /boot
localhost linux # ls /boot
boot  bzImage  grub
localhost linux #


Grub è li perchè ieri, in preda a un attacco isterico, ho emerso pure grub ma tanto non funziona...
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 8:35 pm    Post subject: Reply with quote

bzImage penso si quello che hai copiato te in precedenza. Quindi prendi quello lo copi da qualche parte che non sia /boot, poi rimonti la /boot e ricopi bzImage. A questo punto configuri il lilo.conf in modo che cerchi l'immagine bzImage (e non vmlinux-2.6.6_rc1 o se vuoi questa rinomini bzImage) e poi dai un lilo -v.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 8:50 pm    Post subject: Reply with quote

fedeliallalinea wrote:
bzImage penso si quello che hai copiato te in precedenza. Quindi prendi quello lo copi da qualche parte che non sia /boot, poi rimonti la /boot e ricopi bzImage. A questo punto configuri il lilo.conf in modo che cerchi l'immagine bzImage (e non vmlinux-2.6.6_rc1 o se vuoi questa rinomini bzImage) e poi dai un lilo -v.


Ahhhhhh finalmente un progresso! :D

C'è un errore chilometrico, però gentoo è added.

Code:
localhost boot # lilo -v
LILO version 22.5.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2003 John Coffman
Released 10-Oct-2003 and compiled at 15:53:55 on Apr 22 2004

Reading boot sector from /dev/hda
Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/ide/host0/bus0/target0/lun0/disc' -> '/dev/hda'
    The kernel was compiled with DEVFS_FS, but 'devfs=mount' was omitted
        as a kernel command-line boot parameter; hence, the '/dev' directory
        structure does not reflect DEVFS_FS device names.
    Name change: '/dev/ide/host0/bus0/target0/lun0/part1' -> '/dev/hda1'
    Name change: '/dev/ide/host0/bus0/target0/lun0/part2' -> '/dev/hda2'
    Name change: '/dev/ide/host0/bus0/target0/lun0/part3' -> '/dev/hda3'
    Name change: '/dev/ide/host0/bus0/target0/lun0/part4' -> '/dev/hda4'
    Name change: '/dev/ide/host0/bus0/target0/lun0/part5' -> '/dev/hda5'
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/bzImage
Added Gentoo *

Boot other: /dev/hda5, loader CHAIN
Fatal: First sector of /dev/hda5 doesn't have a valid boot signature
localhost boot #


In particolare:

Boot other: /dev/hda5, loader CHAIN
Fatal: First sector of /dev/hda5 doesn't have a valid boot signature

Non mi sembra una buona cosa...

Ma che ho combinato con st'installazione non si sa 8O


EDIT: Non mi ricordo, ma è normale che mandrake non viene segnalata added?
Altrimenti poi devo fare il chroot da live per l'assistenza...argh
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 8:55 pm    Post subject: Reply with quote

Posta il tuo lilo.conf e dicci come sono messe le partizioni.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 9:03 pm    Post subject: Reply with quote

Il mio lilo.conf l'ho postato all'inizio, ed è cambiato solo il bzImage che hai detto tu :wink:

(scusate ma non mi tiene una formattazione decente)

Fstab:

Code:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1       /boot      ext3        noauto,noatime     1 2
/dev/hda4      /              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


Partizioni:

Code:


 Nome        Flag           Tipo di parTipo FS          [Etichetta]    Dimensione
 ------------------------------------------------------------------------------
    hda1        Avvio       Primaria  Linux ext3                          98,71
    hda2                        Primaria  Linux swap                         254,99
    hda5        Avvio       Logica    Linux ext2                          1998,75
                                    Logica    Spazio disponibile               98,71
    hda4                        Primaria  Linux ReiserFS                   37556,63

1) boot
2) swap
4) root gentoo
5) root mandrake








Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 9:06 pm    Post subject: Reply with quote

Non puoi avere due partizioni di avvio (almeno a me dava problemi cioe' niente boot). Prova a togliere a hda5 il flag avvio.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 9:17 pm    Post subject: Reply with quote

Ehmm....purtroppo non è quello :(
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Apr 23, 2004 9:24 pm    Post subject: Reply with quote

Ma tu vuoi ilo dual boot con mandrake? Se si con la sezione
Code:
other = /dev/hda5

        label = Mandrakka
        #table = /dev/hda

del tuo lilo.conf non fai molto. Dovresti avere qualcosa simile a quella per boottare gentoo.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
maiosyet
Apprentice
Apprentice


Joined: 14 Oct 2003
Posts: 188
Location: /Italy/Milan

PostPosted: Fri Apr 23, 2004 9:28 pm    Post subject: Reply with quote

Mandrake la uso solo perchè è la più veloce da installare e da li ci installo gentoo...così se faccio casino o mentre compila posso usare il comp visto che ne ho uno solo :?

Non importa se poi non bootta più...basterebbe che andasse gentoo....

Comunque con la vecchia installazione così andava il dual boot con mandrake
(anche se, ripeto, basta che vadi gentoo...poi mandrakka per lo spazio che occupa posso pure cancellarla)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum