когда спрашивает куда ставить загрузчик - выбираем sda - всё хорошо, грузится. но со второго диска - не грузится.
если выбираем md0 - то не грузится вообще.
пришлось загрузистя с SysResCD, и ставить загрузчик на диски вручную
монтируем корневой раздел, chroot'имся туда
Код: Выделить всё
mount /dev/md0 /mnt
root@sysresccd /root % mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
chroot /mnt/ bash
Код: Выделить всё
grub> [root@sysresccd /]# grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> geometry (hd0,0)
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 unknown, partition type 0xfd
grub> device (hd0) /dev/sda
device (hd0) /dev/sda
grub> root (hd0,0)
root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 27 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+27 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
Done.
Код: Выделить всё
grub> geometry (hd1,0)
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 unknown, partition type 0xfd
grub> device (hd1) /dev/sdb
device (hd1) /dev/sdb
grub> root (hd1,0)
root (hd1,0)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd1)
setup (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 27 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd1) (hd1)1+27 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
Done.
grub> [root@sysresccd /]#
т.е. конфигурация такая:
Код: Выделить всё
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 58G 720M 54G 2% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/md1 397G 71M 377G 1% /home
[root@localhost ~]#
[root@localhost ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Aug 4 11:23:54 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=9dcdca76-b4aa-426d-83c5-5c44b7337153 / ext4 defaults 1 1
UUID=12179261-8892-47b8-a0f9-dc15392aaf73 /home ext4 defaults 1 2
UUID=82bfaf25-cd28-4442-a668-3fb548cee895 swap swap defaults 0 0
UUID=023f84d9-00b7-4bc8-82e7-684babc94b5d swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
[root@localhost ~]#
[root@localhost ~]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda3[0] sdb3[1]
422620160 blocks super 1.1 [2/2] [UU]
[===============>.....] resync = 76.0% (321345152/422620160) finish=19.4min speed=86850K/sec
bitmap: 2/4 pages [8KB], 65536KB chunk
md0 : active raid1 sdb1[1] sda1[0]
61439872 blocks super 1.0 [2/2] [UU]
bitmap: 1/1 pages [4KB], 65536KB chunk
unused devices: <none>
[root@localhost ~]#