[clug] How to make my server robust for booting

Tony Lewis tony at lewistribe.com
Wed Sep 11 23:57:51 UTC 2019


On 11/9/19 11:01 am, Chris Smart via linux wrote:
>
> Yep, pretty sure I've done that successfully before. I'm not sure if I used grub install or just dd'd the first 446 from one to the other, it's been a while.
>
> Can you use hexdump to check if Grub is at least embedded in the second drive?

It appears so:

root at new:~# strings /dev/sda | head -5
ZRr=
`|f
\|f1
GRUB
Geom
root at new:~# strings /dev/sdb | head -5
ZRr=
`|f
\|f1
GRUB
Geom

>
> What does your Grub device.map look like? Does it only have hd0?

The device map file doesn't exist, but when I generate one with 
grub-mkdevicemap it looks like:

(hd0)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB29039c3d-ed7e722e
(hd1)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB3a1155f8-e0c92901
(hd2)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB60bba84b-9f02a0a4
(hd3)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB5904c26b-058c6d9e
(hd4)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB7fcecf61-5922e86d
(hd5)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB63aaa4e5-ab899d91
(hd6)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB8cc0b0b5-a2bb939f
(hd7)   /dev/disk/by-id/ata-VBOX_HARDDISK_VB45074f63-35bb57db

Which maps to all the virtual disks I have installed.

Tony




More information about the linux mailing list