View previous topic :: View next topic |
Author |
Message |
over_score n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 May 2007 Posts: 9 Location: France
|
Posted: Sat Feb 26, 2011 11:13 am Post subject: [Grub + RAID1] Error 2: Bad file or directory type (résolu) |
|
|
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.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 |
|
![](templates/gentoo/images/spacer.gif) |
ghoti Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/15463172846237c094abba7.jpg)
Joined: 30 Dec 2002 Posts: 3636 Location: Belgium
|
Posted: Sat Feb 26, 2011 11:35 am Post subject: |
|
|
Salut,
Question idiote : la partition de boot était-elle bien montée sur /boot lorsque tu as emergé grub ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
over_score n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 May 2007 Posts: 9 Location: France
|
Posted: Sat Feb 26, 2011 11:58 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
over_score n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 May 2007 Posts: 9 Location: France
|
Posted: Sat Feb 26, 2011 3:27 pm Post subject: |
|
|
En installant simplement sur /dev/sda1 (donc sans RAID1) cela fonctionne, mais ce n'est pas ce que je voudrais. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
netfab Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 03 Mar 2005 Posts: 1964 Location: 127.0.0.1
|
Posted: Sat Feb 26, 2011 6:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
over_score n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 May 2007 Posts: 9 Location: France
|
Posted: Mon Feb 28, 2011 12:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|