Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Grub.conf
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
Shaden
n00b
n00b


Joined: 08 Jan 2005
Posts: 63
Location: Rome

PostPosted: Tue Oct 18, 2005 7:22 pm    Post subject: [Risolto] Grub.conf Reply with quote

Secondo voi cosa non va nel seguente grub.conf ?
Code:
default 1
timeout 10
splashimage=(sd0,1)/grub/splash.xpm.gz

title=Gentoo
root(sd0,3)
kernel /kernel-2.6.9-gentoo-r12

title=WindowsXP Professional
rootnoverify(sd0,0)
makeactive
chainload +1


Tenendo conto che la mia tabella delle partizione è:

sda1 windows
sda2 boot
sda3 swap
sda4 root

Suppongo di aver scritto una cavolata con la riga:
Code:
kernel /kernel-2.6.9-gentoo-r12


Altra cosa:
il manuale (handbook) spesso indica due diversi procedimenti a seconda se l'utente ha utilizzato
genkernel o meno. Come faccio a saperlo se mi trovo sotto mano una macchina installata da un altro utente?!

Scusate per queste piccole cose, ma questi newbie devono rompere in qualche modo :wink:
_________________
~< Viaggiare non solo allarga la mente.... le dà forma. >~


Last edited by Shaden on Tue Oct 18, 2005 11:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Oct 18, 2005 7:34 pm    Post subject: Reply with quote

Non sd0 ma hd0!

Mentre in Linux i device di archiviazione vengono visti come hd[a-z]X (o sd[a-z]X), GRUB li identifica semplicemente con hdX, ordinandoli da come vengono visti dal BIOS (qualcuno mi corregga se sbaglio)

Inoltre al kernel devi passare il parametro root=/dev/partizionediroot (nel tuo caso partizionediroot=sda4), altrimenti non riesce a montarla e continuare la fase di boot!

Per il discorso genkernel/nogenkernel non so darti una risposta esauriente, ma sicuramente un kernel creato con esso sarà più voluminoso ed avrà un bel pò di moduli, in quanto genkernel abilita più o meno tutte le opzioni, e inoltre crea un ramdisk; se leggi l'handbook dice questo
Quote:

Una volta completato genkernel, viene creato un kernel completo di moduli e root disk iniziale (initrd). Il kernel e initrd intervengono quando si configura un boot loader. E' consigliabile dunque annotare il nome del kernel e del initrd, poichè servono quando si scrive il file di configurazione del bootloader. Initrd si avvia subito dopo il boot per effettuare un rilevamento automatico dell'hardware (come nel CD di Installazione), prima che si avvii il sistema "reale".


Prova a controllare :)
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Shaden
n00b
n00b


Joined: 08 Jan 2005
Posts: 63
Location: Rome

PostPosted: Tue Oct 18, 2005 8:29 pm    Post subject: Reply with quote

Ti ringrazio per l'aiuto.

Pensa che la prima versione di grub,conf che avevo fatto "usava" hdn.
Poi dandomi dell'imbecille per non aver ricordato che il mio hard disk viene identificato con sda (perchè è un serial ata?) avevo subito modificato in sdn 8O

Vado a fare subito le modifiche e vi faccio sapere come è andata.


:D
_________________
~< Viaggiare non solo allarga la mente.... le dà forma. >~
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Oct 18, 2005 8:35 pm    Post subject: Reply with quote

Shaden wrote:
il mio hard disk viene identificato con sda (perchè è un serial ata?)


Yes, nei kernel 2.6.x i dischi SATA vengono gestiti come device SCSI!
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


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

PostPosted: Tue Oct 18, 2005 9:18 pm    Post subject: Reply with quote

sì, ma GRUB identifica le periferiche in un modo totalmente scorrelato dal sistema operativo, perché è nato con l'intento di essere multipiattaforma
Back to top
View user's profile Send private message
Shaden
n00b
n00b


Joined: 08 Jan 2005
Posts: 63
Location: Rome

PostPosted: Tue Oct 18, 2005 9:43 pm    Post subject: Reply with quote

Uff... che stress ogni volta accedere con il cd-live :D

Se ottengo

Code:
root (hd0,3)
filesystem type is reiserfs, partition type 0x83
kernel /kernel-2.6.9.-gentoo-r12 root=/dev/sda4

error 15: file not found


Ma root serve per indicare dove sta / !!! :roll:
Che mi sta dicendo ?

P.s. niente parolacce mi raccomando :P
_________________
~< Viaggiare non solo allarga la mente.... le dà forma. >~
Back to top
View user's profile Send private message
sfragis
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2005
Posts: 95
Location: RE < IT < Europe

PostPosted: Tue Oct 18, 2005 10:29 pm    Post subject: Re: Grub.conf Reply with quote

Shaden wrote:
Tenendo conto che la mia tabella delle partizione è:

sda1 windows
sda2 boot
sda3 swap
sda4 root

Suppongo di aver scritto una cavolata con la riga:
Code:
kernel /kernel-2.6.9-gentoo-r12

Con quella no, ma con questa si :D :
Quote:
Code:
root(sd0,3)
.
Scherzi a parte, io direi piuttosto:
Code:
root(hd0,1)
dato che boot è la seconda partizione e la numerazione delle partizioni inizia da 0. Se vuoi un consiglio, giusto per saltarci fuori in futuro, ricordati che al boot grub ti permette di eseguire una sorta di shell dei comandi; un comando utililissimo è find perché, se hai specificato bene root(hdX,Y), ti permette di trovare i file nella partizione specificata, e soprattutto supporta il completamento automatico.
Back to top
View user's profile Send private message
Shaden
n00b
n00b


Joined: 08 Jan 2005
Posts: 63
Location: Rome

PostPosted: Tue Oct 18, 2005 10:49 pm    Post subject: Re: Grub.conf Reply with quote

sfragis wrote:

Scherzi a parte, io direi piuttosto:
Code:
root(hd0,1)
dato che boot è la seconda partizione e la numerazione delle partizioni inizia da 0. Se vuoi un consiglio, giusto per saltarci fuori in futuro, ricordati che al boot grub ti permette di eseguire una sorta di shell dei comandi; un comando utililissimo è find perché, se hai specificato bene root(hdX,Y), ti permette di trovare i file nella partizione specificata, e soprattutto supporta il completamento automatico.


Il brutto è che ad ogni avvio vado a finire direttamente nella shell di grub:
Code:
grub>

e da lì devo agire con il comando
Code:
configfile /boot/grub/grub.conf

per far partire la schermata che mi elenca gli OS.

Se scelgo Gentoo mi riporta gli errori che ho descritto nel post precedente.
_________________
~< Viaggiare non solo allarga la mente.... le dà forma. >~
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Tue Oct 18, 2005 11:05 pm    Post subject: Reply with quote

Code:
default 1
timeout 10
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo
root (hd0,1)
kernel (hd0,1)/kernel-2.6.9-gentoo-r12 root=/dev/sda4

title=WindowsXP Professional
rootnoverify(hd0,0)
makeactive
chainload +1


Coda
Back to top
View user's profile Send private message
Shaden
n00b
n00b


Joined: 08 Jan 2005
Posts: 63
Location: Rome

PostPosted: Tue Oct 18, 2005 11:16 pm    Post subject: Reply with quote

codadilupo wrote:
Code:
default 1
timeout 10
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo
root (hd0,1)
kernel (hd0,1)/kernel-2.6.9-gentoo-r12 root=/dev/sda4

title=WindowsXP Professional
rootnoverify(hd0,0)
makeactive
chainload +1


Coda


Ero entrato appunto per ringraziare tutti... per avermi fatto capire qualcosa. :D
Questo per dire che ci ero riuscito :P

Però prendo spunto dal tuo post per raffinare ancora qualcosa :P :P

Grazieeeeeeeee!
_________________
~< Viaggiare non solo allarga la mente.... le dà forma. >~
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