ich mußte in meinem Debian6 Server eine defekte Platte tauschen sda. Das System läuft im Software-Raid1. Nach dem Tausch der Platte lief der Server nicht mehr hoch. Also ab ins Rettungssystem. Die Vermutung war, das der Grub Bootloader nicht auf der sdb vorhanden ist. Folgende Schritte habe ich durchgeführt:
1. Partitionstabelle von sdb auf sda kopiert:
Code: Select all
sfdisk -d /dev/sdb | sfdisk /dev/sda
Code: Select all
sfdisk -R /dev/sda
Code: Select all
mdadm /dev/md0 -a /dev/sda1 (Swap)
mdadm /dev/md1 -a /dev/sda2 (root)
noch nicht eingebunden / synchronisiert).
Code: Select all
md122 : active raid1 sdb5[1]
1950830 blocks super 1.2 [2/1] [_U]
md123 : active raid1 sdb6[1]
19533912 blocks super 1.2 [2/1] [_U]
md124 : active raid1 sdb7[1]
97658007 blocks super 1.2 [2/1] [_U]
md125 : active raid1 sdb8[1]
1950830 blocks super 1.2 [2/1] [_U]
md126 : active raid1 sdb9[1]
683588656 blocks super 1.2 [2/1] [_U]
md127 : active raid1 sdb10[1]
97658007 blocks super 1.2 [2/1] [_U]
md1 : active raid1 sdb2[1] sda2[0]
20972736 blocks [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
8393856 blocks [2/2] [UU]
Danach in Grub:
Code: Select all
GNU GRUB version 0.97 (640K lower / 9216K 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> root (hd0,1)
Filesystem type is ext2fs, partition type 0xfd
grub> 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)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p
(hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> 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)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 d (hd1) (hd1)1+17 p
(hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub>quit
Code: Select all
e2fsck 1.41.12 (17-May-2010)
/dev/md1: clean, 36770/1313280 files, 331666/5242880 blocks
Es wäre echt Klasse, wenn mir jemand weiterhelfen könnte.
Gruß Hille