Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Grub + RAID1] Error 2: Bad file or directory type (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
over_score
n00b
n00b


Joined: 25 May 2007
Posts: 9
Location: France

PostPosted: Sat Feb 26, 2011 11:13 am    Post subject: [Grub + RAID1] Error 2: Bad file or directory type (résolu) Reply with quote

Bonjour,

J'ai 2 disques de 120G sur chacun d'eux 2 partitions 100Mo pour /boot et le reste pour /
La création des 2 partitions RAID1 ext2 pour /boot et ext4 pour /, le montage des partitions /dev/md[12] et l'installation avec le stage 3 se passe sans problème.
Code:
emerge -v grub
se passe bien
Code:
emerge --config =grub-0.97-r10
se passe bien en lui indiquant /boot
en revanche
Code:
grub
grub> root (hd0,0)
 Filesystem type is extfs2, partition type is 0xfd
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type
grub> find /boot/grub/stage1
Error 15: File not found
Le fichier stage1 existe bel et bien dans /boot/grub
En faisant
Code:
touch /bidon
touch /boot/bidon
puis sous grub
Code:
find /bidon
Error 15: File not found

Quelqu'un a-t-il une idée ?


Last edited by over_score on Mon Feb 28, 2011 12:02 pm; edited 2 times in total
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3636
Location: Belgium

PostPosted: Sat Feb 26, 2011 11:35 am    Post subject: Reply with quote

Salut,
Question idiote : la partition de boot était-elle bien montée sur /boot lorsque tu as emergé grub ?
Back to top
View user's profile Send private message
over_score
n00b
n00b


Joined: 25 May 2007
Posts: 9
Location: France

PostPosted: Sat Feb 26, 2011 11:58 am    Post subject: Reply with quote

oui elle l'était et j'ai également refait l'installation de grub et refait l'installation du RAID1 sur /dev/sd[ab]1 et reréinstallé grub
Back to top
View user's profile Send private message
over_score
n00b
n00b


Joined: 25 May 2007
Posts: 9
Location: France

PostPosted: Sat Feb 26, 2011 3:27 pm    Post subject: Reply with quote

En installant simplement sur /dev/sda1 (donc sans RAID1) cela fonctionne, mais ce n'est pas ce que je voudrais.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1964
Location: 127.0.0.1

PostPosted: Sat Feb 26, 2011 6:17 pm    Post subject: Reply with quote

Hello,

Jette un oeil à ce topic. Une histoire de version de format du superblock.
Quote:

Version is important. If its not 0.9, grub won't work from that partition.
Back to top
View user's profile Send private message
over_score
n00b
n00b


Joined: 25 May 2007
Posts: 9
Location: France

PostPosted: Mon Feb 28, 2011 12:01 pm    Post subject: Reply with quote

Netfab a trouvé la solution :
Il faut passer à mkfs.ext[234] le paramètre -e 0.90 et après cela fonctionne en RAID

Merci
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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