Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub&fstab [risolto..era un problema di kernel..]
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
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Mar 27, 2004 1:49 am    Post subject: grub&fstab [risolto..era un problema di kernel..] Reply with quote

ciao.
mi sto dando all'installazione di gentoo..però ho dei problemi con il boot..! nn riesco ad avviare gentoo. io uso grub, però utilizzo quello di suse: ho cercato di configurare quello di suse anche per gentoo, ma senza successo.
di seguito scrivo la mia fstab:
/dev/hda9 /boot ext3 noatime,noauto 0 2
/dev/hda10 / reiserfs noatime 0 1
/dev/hda6 none swap sw 0 2
/dev/hda11 /home ext3 noatime 0 2
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user,exec 0 0
/dev/fd0 /mnt/floppy auto noauto,user,exec 0 0
/dev/hda2 /mnt/windows/D vfat defaults,umask=000 0 2
/dev/hda8 /mnt/suse/home ext3 defaults,umask=000 0 2

e di seguito la mia conf di grub relativa a gentoo:
title Gentoo 2004.0 [kernel 2.6.3]
root (hd0,9)
kernel (hd0,9)/kernel-2.6.3-gentoo-r1 root=/dev/hda10
initrd (hd0,9)/initrd-2.6.3-gentoo-rc1

io ho usato genkernel, mi sembra 3.0.1, comunque l'ho emerso poche ore fa..!

grazie e ciao

mati


Last edited by redview on Sat Apr 03, 2004 9:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sat Mar 27, 2004 8:48 am    Post subject: Re: grub&fstab Reply with quote

redview wrote:

title Gentoo 2004.0 [kernel 2.6.3]
root (hd0,9)
kernel (hd0,9)/kernel-2.6.3-gentoo-r1 root=/dev/hda10
initrd (hd0,9)/initrd-2.6.3-gentoo-rc1


Prima cosa: butta genkernel e compila il kernel a mano, impari molto di più e soprattutto ti eviti una marea di problemi che genkernel può dare.

In secondo luogo, nel tuo fstab viene indicata come partizione di boot hda9, che in gergo grub corrisponde a hd0,8. Quindi correggi le voci root, kernel e initrd in questo modo:
Code:
root (hd0,8)
    kernel (hd0,8)/kernel-2.6.3-gentoo-r1 root=/dev/hda10
    initrd (hd0,8)/initrd-2.6.3-gentoo-rc1


Prova e facci sapere. Se non partisse riportaci l'output esatto dell'errore che ti viene dato e spiegaci con maggiore calma e precisione la situazione del tuo pc: os installati, partizioni, bootloader di quale os usi, etc
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Mar 27, 2004 12:20 pm    Post subject: Reply with quote

ora parte..
però:
ho questo output che nn capisco:
STEP4: Determining root device
Root block device unspecified or root undetected
Please specify a device to boot, or "shell" for a shell

poi scrivo /dev/hda10 e va avanti, ma nn capisco perchè nn lo veda, dal momento che nella conf del bootloader ho specificato root=/dev/hda10.
ma cmq poi mi fa un kernel panic..dice che nn riesce a montare il fs di root..che è reiserfs..possibile che genkernel nn l'abbia messo?!
ho scelto di usare genkernel, ma comunque avrei ricompilato appena in possesso del sistema funzionante.
cmq io ho 3 os installati:
xp in hda1
suse 9.0 (di cui uso il bootloader grub) con /boot in hda5, / in hda7, /home in hda8,
gentoo 2004.0 con /boot in hda9, / in hda10, /home in hda11.
inoltre ho hda2 di dati in fat32 e la swap in hda6.
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sat Mar 27, 2004 1:09 pm    Post subject: Reply with quote

redview wrote:
ma cmq poi mi fa un kernel panic..dice che nn riesce a montare il fs di root..che è reiserfs..possibile che genkernel nn l'abbia messo?!


Se non erro genkernel mette reiserfs come modulo, mentre se hai la root con tale fs devi metterlo built-in nel kernel. Ricompilalo mettendoci il supporto statico e facci sapere se va tutto a posto (e abbandona genkernel, l'unica cosa ancora non all'altezza di gentoo :P ).
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Mar 27, 2004 1:18 pm    Post subject: Reply with quote

ok procedo, però:
come faccio a recuperare il sistema?
posso usare il livecd? se sì, come?
grazie
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sat Mar 27, 2004 1:20 pm    Post subject: Reply with quote

redview wrote:
ok procedo, però:
come faccio a recuperare il sistema?
posso usare il livecd? se sì, come?


Usi il livecd e rientri nell'ambiente chrooted. In pratica segui i passi della guida all'installazione per entrare nel chroot, con la sola differenza che non devi più formattare o scompattare stage :)

Una volta nell'ambiente chrooted compili e installi ciò che ti serve come se non avessi mai abbandonato l'installazione.
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Mar 27, 2004 5:06 pm    Post subject: Reply with quote

ok..ho ricompilato il kernel..ma ho un errore nell'avvio:

STEP4: determing root device
Root block device unspecified or not detected
Please specify a device to boot, a "shell" for shell

ecco la mia grub conf (uso il grub di suse..):
title Gentoo 2004.0 [kernel 2.6.3]
root (hd0,9)
kernel (hd0,8)/kernel-2.6.3-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/hda10 vga=0x317 splash=silent
initrd (hd0,8)/initrd-2.6.3-gentoo-r1

dove:
-root(hd0,9) è la mia part / di gentoo
-(hd0,8) indica la partizione /boot di gentoo con kernel e initrd

dove sta l'errore?!

grazie
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sat Mar 27, 2004 6:57 pm    Post subject: Reply with quote

redview wrote:
dove sta l'errore?!


Nel non aver seguito *con attenzione* le mie direttive :twisted:

Ti avevo detto di mettere anche root a (hd0,8 ). La root di grub.conf non è la root del sistema, ma la partizione di boot (in teoria avanzerebbe il (hd0,8 ) nelle voci kernel e initrd, ma lasciale pure che male non fanno)
In sintesi metti:
Code:
root (hd0,8)


Facci sapere se risolvi (e se risolvi... tag [Risolto] nel titolo ;) ).
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Mar 27, 2004 7:32 pm    Post subject: Reply with quote

mi ero accorto di quell'errore e l'avevo corretto prima di riavviare..però mi ha dato appunto l'output riportato sopra.
ricapitolando. con questa grubconf
title Gentoo 2004.0 [kernel 2.6.3]
root (hd0,8)
kernel (hd0,8)/kernel-2.6.3-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/hda10 vga=0x317 splash=silent
initrd (hd0,8)/initrd-2.6.3-gentoo-r1

ho l'errore STEP4..

grazie
ciao
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sun Mar 28, 2004 10:11 am    Post subject: Reply with quote

E' genkernel che fa casino, dovrebbe essere un errore legato a initrd. Prova a fare una ricerca sul forum con chiave di ricerca "STEP4:", trovi diversi topic sull'argomento, anche in italiano.

Prova a commentare la linea dell'initrd in grub.conf e riavviare, se non risolvi spulcia i topic che trovi con la ricerca e faccia sapere che accade.

p.s: ma soprattutto, butta genkernel e fa le cose a mano ;)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 4:17 pm    Post subject: Reply with quote

allora..
nn ho letto ancora i topic..cmq ho provato a commentare la linea di initrd in grub.conf.
ed ecco il risultato dell'output di boot:
UDF-fs:No VRS found
XFS: bad magic number
XFS: SB validate failed
Kernel panic:VFS:Unable to mount root fs on ram0.

suggerimenti? (a parte ricompilare a mano..cmq, io ho ricompilato con genkernel --menuconfig all..)

grazie
mati
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


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

PostPosted: Sun Mar 28, 2004 4:21 pm    Post subject: Reply with quote

Hai modificato anche l'fstab di gentoo in modo che rispecchi le tue partizioni e fs?
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 4:29 pm    Post subject: Reply with quote

sì, la mia fstab è all'inizio del topic..se leggi i miei primi due post in cima alla pagina capisci com'è la mia fstab..
penso sia giusta..
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


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

PostPosted: Sun Mar 28, 2004 4:37 pm    Post subject: Reply with quote

Sono un po' perplesso per i messaggi di errore relativi ad XFS (l'fstab fornito di default dall'installazione di gentoo è impostato con XFS per la root, per questo motivo ho chiesto se l'avevi modificato).
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 4:40 pm    Post subject: Reply with quote

ma XFS cos'è? un filesystem? mi ricordo di averlo visto nel kernel..ma nn mi sembra di averlo selezionato..cmq se è un filesystem..io ho tutto in ext3..anche la / che all'inizio era in reiserfs ora ce l'ho in ext3..
devo selezionarlo nel kernel?
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


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

PostPosted: Sun Mar 28, 2004 4:48 pm    Post subject: Reply with quote

Si è un filesystem e pare che il tuo sistema stia tentando di utilizzarlo erroneamente per montare una partizione. Prova a ricontrollare l'fstab di 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
MyZelF
Bodhisattva
Bodhisattva


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

PostPosted: Sun Mar 28, 2004 4:58 pm    Post subject: Reply with quote

redview wrote:
cmq ho provato a commentare la linea di initrd in grub.conf


Questo mi era sfuggito. ;) Devi modificare anche la linea kernel di conseguenza.

Code:
kernel (hd0,8)/kernel-2.6.3-gentoo-r1 root=/dev/hda10 vga=0x317 splash=silent

_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."


Last edited by MyZelF on Sun Mar 28, 2004 5:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 4:59 pm    Post subject: Reply with quote

ok..ora provo a vedere anche la config del kernel..
un'informazione:
se inserisco il livecd..per entrare nel mio sistema con chroot, devo prima montare le partizioni in /mnt/gentoo come spiega all'inizio dell'handbook?
o basta che usi chroot?
grazie
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


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

PostPosted: Sun Mar 28, 2004 5:04 pm    Post subject: Reply with quote

Devi rimontare le partizioni come hai fatto per l'installazione e poi effettuare il chroot.
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 5:41 pm    Post subject: Reply with quote

allora:
ho ricompilato il kernel a mano, con il buon vecchio make menuconfig (nn ho più usato quindi genkernel): le opzioni di fs erano giuste(per gentoo mi serve il supporto per ext3)..e avendo tutto in ext3 già che c'ero ho tolto XFS.

ora allego l'fstab attuale:
Code:

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda9      /boot      ext3      noatime         1 0
/dev/hda10      /      ext3      noatime         0 1
/dev/hda11      /home      ext3      noatime       0 2
/dev/hda6      none      swap      sw         0 0
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro      0 0
/dev/fd0      /mnt/floppy   auto      noauto         0 0
/dev/hda2      /windows/d   vfat      defaults,umask=000   0 2
/dev/hda8      /suse/home   ext3      noatime         0 2

# 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


e di seguito il grub.conf
Code:

title Gentoo 2004.0 [kernel 2.6.3]
    root (hd0,8)
    kernel (hd0,8)/kernel-2.6.3-gentoo-r1 root=/dev/hda10


dove se nn ho sbagliato:
root (hd0,8) punta alla mia part di /boot
la seconda riga indica il percorso per il kernel (ho tenuto lo stesso nome di quello di genkernel..ma ribadisco che è fatto a mano)
e poi root=/dev/hda10 e la / di gentoo.
ok?!

grazie
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


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

PostPosted: Sun Mar 28, 2004 5:48 pm    Post subject: Reply with quote

Sì, così mi sembra a posto.
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 5:52 pm    Post subject: Reply with quote

:evil:
ecco, avendo usando la conf riportata sopra mi dà questo errore in avvio:
Code:

VFS:Cannot append root device "hda10" or hda10
Please append a correct "root=" boot option
Kernel panic:VFS: unable to mount root fs on hda10


che posso fare?!
sono sicuro di avere la root con ext3..ma per sicurezza..qual'è il comando che mi permette di sapere il fs di una determinata part? lo userei da livecd..

grazie
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Sun Mar 28, 2004 5:58 pm    Post subject: Re: grub&fstab Reply with quote

redview wrote:

title Gentoo 2004.0 [kernel 2.6.3]
root (hd0,9)
kernel (hd0,9)/kernel-2.6.3-gentoo-r1 root=/dev/hda10
initrd (hd0,9)/initrd-2.6.3-gentoo-rc1


butta genkernel, poi è normale quell'"rc1" nell'initrd?
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Mar 28, 2004 6:00 pm    Post subject: Reply with quote

sì è normale..il nome è così.
cmq..quello che avevo scritto lì è ormai acqua passata..leggi la grub conf attuale..che ho scritto qualche post sopra: genkernel nn lo uso più.
vedi se ci capisci qualcosa..
grazie
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sun Mar 28, 2004 6:11 pm    Post subject: Reply with quote

Sicuro di aver messo built-in nel kernel il supporto per i tuoi filesystem (ext3, etc) e non come moduli? Hai installato i vari programmi per la gestione dei filesystem indicati nella guida all'installazione, tipo reiserfsprogs e simili? Sicuro di aver montato correttamente tutte le partizioni, /boot su tutte, quando hai fatto le varie modifiche o ricompilato il kernel?
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
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