Sorry for my English..
I have some problem with grub..
First about system..
2 HDD
Code: Select all
/dev/sda1 * 2048 264191 131072 fd Linux raid autodetect
/dev/sda2 264192 8652799 4194304 82 Linux swap / Solaris
/dev/sda3 8652800 976773167 484060184 fd Linux raid autodetect
/dev/sdb1 * 2048 264191 131072 fd Linux raid autodetect
/dev/sdb2 264192 8652799 4194304 82 Linux swap / Solaris
/dev/sdb3 8652800 976773167 484060184 fd Linux raid autodetectCode: Select all
modprobe raid1
mknod /dev/md1 b 9 1
mknod /dev/md3 b 9 3
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3Code: Select all
grub> geometry (hd0,0)
drive 0x80: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sda
Partition num: 0, Filesystem type is ext2fs, partition type 0xfd
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type is ext2fs, partition type 0xfd
grub> geometry (hd1,0)
drive 0x81: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sdb
Partition num: 0, Filesystem type is ext2fs, partition type 0xfd
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type is ext2fs, partition type 0xfd
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
grub> find (stage1)
Error 15: File not foundCode: Select all
(chroot) livecd linux # ls -al /boot/
total 3924
drwxr-xr-x 4 root root 1024 Oct 13 13:03 .
drwxr-xr-x 21 root root 4096 Oct 6 10:24 ..
-rw-r--r-- 1 root root 0 Oct 6 07:13 .keep
lrwxrwxrwx 1 root root 1 Oct 13 13:03 boot -> .
drwxr-xr-x 2 root root 1024 Oct 13 13:03 grub
-rw-r--r-- 1 root root 3981392 Oct 13 12:46 kernel-2.6.39-gentoo-r3
drwx------ 2 root root 12288 Oct 13 2011 lost+found
(chroot) livecd linux # ls -al /boot/grub/
total 331
drwxr-xr-x 2 root root 1024 Oct 13 13:03 .
drwxr-xr-x 4 root root 1024 Oct 13 13:03 ..
-rw-r--r-- 1 root root 197 Oct 13 13:03 default
-rw-r--r-- 1 root root 8604 Oct 13 13:03 e2fs_stage1_5
-rw-r--r-- 1 root root 7904 Oct 13 13:03 fat_stage1_5
-rw-r--r-- 1 root root 7152 Oct 13 13:03 ffs_stage1_5
-rw-r--r-- 1 root root 642 Oct 13 13:04 grub.conf
-rw-r--r-- 1 root root 7168 Oct 13 13:03 iso9660_stage1_5
-rw-r--r-- 1 root root 8604 Oct 13 13:03 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Oct 13 13:03 menu.lst -> grub.conf
-rw-r--r-- 1 root root 7320 Oct 13 13:03 minix_stage1_5
-rw-r--r-- 1 root root 9548 Oct 13 13:03 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Oct 13 13:03 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 13 13:03 stage1
-rw-r--r-- 1 root root 104584 Oct 13 13:03 stage2
-rw-r--r-- 1 root root 104584 Oct 13 13:03 stage2_eltorito
-rw-r--r-- 1 root root 7420 Oct 13 13:03 ufs2_stage1_5
-rw-r--r-- 1 root root 6784 Oct 13 13:03 vstafs_stage1_5
-rw-r--r-- 1 root root 9236 Oct 13 13:03 xfs_stage1_5
