Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Installazione] Problema a pescare la root al boot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ianstilo
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 196
Location: Merlino

PostPosted: Sat Aug 06, 2005 6:50 am    Post subject: [Installazione] Problema a pescare la root al boot Reply with quote

Slave..sto installando...

ho installato grub..e ho problemi ad avviare la root.

la mia fstab è così:

/dev/sda1 /boot ext2 noauto,noatime 1 1
/dev/sda3 / reiserfs noatime 1 1
/dev/sda2 none swap sw 0 0


il bootloader mi pesca l'immagine di sfondo e l'immagine del kernel..

quindi suppongo che con hd0(0,0) mi peschi boot....

ma non riesco a farmi trovare la root...

come devo fare?:cry:
Back to top
View user's profile Send private message
ianstilo
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 196
Location: Merlino

PostPosted: Sat Aug 06, 2005 7:22 am    Post subject: Reply with quote

Ecco...ora me la vede...ma mi dice:

root(hd0,2)
Filesystem type is reiserfs, partition type 0x83
kernel /bzImage root=/dev/sda3

Error 15: File not found
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sat Aug 06, 2005 8:01 am    Post subject: Reply with quote

ianstilo wrote:
Ecco...ora me la vede...ma mi dice:

root(hd0,2)
Filesystem type is reiserfs, partition type 0x83
kernel /bzImage root=/dev/sda3

Error 15: File not found


scusa ma immagine l'hai messa in root (hd0,0) dove c'e' /boot quindi sembra giusto che in root (hd0,2) non la trovi
Back to top
View user's profile Send private message
ianstilo
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 196
Location: Merlino

PostPosted: Sat Aug 06, 2005 8:21 am    Post subject: Reply with quote

ovvero?

sia boot che root devono essere a 0,0?


e in fstab?
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sat Aug 06, 2005 8:31 am    Post subject: Reply with quote

ianstilo wrote:
ovvero?

sia boot che root devono essere a 0,0?


e in fstab?


cia mi sembra di vedere che tu abbia in sda1 /boot e la root in sda3 quindi dovresti avere qualcosa come
root (hd0,0)
mentre root=/dev/sda3

Per evitare problemi poi mi aspetto che supporto a reiserfs sia builtin nel kernel
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Aug 06, 2005 9:14 am    Post subject: Reply with quote

ianstilo wrote:
ovvero?
sia boot che root devono essere a 0,0?
e in fstab?

no, aspetta GRUB è una cosa, e il sistema operativo è un'altra.
quello che grub chiama root non è la root del sistema, ma la SUA root, che per il sistema è la partizione di boot.

fstab non lo devi toccare. correggi in GRUB root=hd0,0 e hai risolto
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sat Aug 06, 2005 9:15 am    Post subject: Reply with quote

Per grub la voce root indica la partizione in cui si trova il file di configurazione e anche quella predefinita dove cercare i kernel.
Probabilmente dovrai fare qualcosa del genere:
Code:
# grub -- apre grub in modalità interattiva
root (hd0,0) -- la partizione dove si trova la configurazione è la prima del primo disco
setup (hd0) -- installa grub sull'MBR
quit

Questo immaginando che /dev/sda == (hd0)
Il grub.conf (o menu.lst)
Code:
default 0
timeout 10

splashimage = (hd0,0)/grub/splash.xpm.gz

title = Gentoo Linux
        kernel (hd0,0)/bzImage root=/dev/sda3 argomenti vari
altri comandi, come initrd
        boot

Controlla di avere una directory grub in /boot (/dev/sda1). Nel caso, monta /boot e riemergi grub.
Back to top
View user's profile Send private message
ianstilo
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 196
Location: Merlino

PostPosted: Sat Aug 06, 2005 10:36 am    Post subject: Reply with quote

Ora mi dice

VFS : Cannot open root device "sda3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel Panic - not syncin: VFS: Unable to mount root fs on unknown-block(0,0)


il modulo per reiser ce l'ho nel kernel...
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sat Aug 06, 2005 10:47 am    Post subject: Reply with quote

Sei sicuro di aver compilato staticamente il supporto per i dischi SCSI?
Back to top
View user's profile Send private message
ianstilo
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 196
Location: Merlino

PostPosted: Sat Aug 06, 2005 10:58 am    Post subject: Reply with quote

che intendi per staticamente?

io nella configurazione del kernel ho:

Device Drivers-->SCSI device support-->*SCSI disk support

è built-it
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Aug 06, 2005 11:06 am    Post subject: Reply with quote

hai compilato in-kernel anche il supporto per il controller e per il file system o hai lasciato tutto come modulo?
in questo caso devi creare un initrd
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sat Aug 06, 2005 11:32 am    Post subject: Reply with quote

Sì, se c'è l'aterisco è compilato staticamente
Code:
<*> SCSI device support

Altrimenti con la M è un modulo
Code:
<M> SCSI device support

Se fosse compilato come modulo, prima di poter usare i dischi SCSI dovresti caricare il modulo relativo, che si trova in una sottodirectory di /lib/modules. Ma naturalmente non potresti accedere al disco in quanto disco SCSI. Comunque controlla come ti è stato suggerito di aver compilato staticamente il supporto per il tuo controller
Code:
Device Drivers-->SCSI device support--><*> SCSI device support
<*>   SCSI disk support
SCSI low-level drivers  ---> <*> Tuo controller
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
Page 1 of 1

 
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