Hello I am new to linux, please help me. I tried to install a package using apt on my ubuntu 24. getting the following error. Code: GRUB failed to install to the following devices: │ │ │ │ /dev/md2 │ │ │ │ Do you want to continue anyway? If you do, your computer may not start up properly. │ │ │ │ Writing GRUB to boot device failed - continue? My server have raid configured with two disks sda sdb. Please tell me what to do
Which package was that? It seems GRUB tries to install the boot block to /dev/md2, which is the multidisk device for RAID. I'm not familiar with the multidisk system you use, because you do not mention what multidisk system you used to set up that RAID. Check which of the real hardware disk drives you system boots from, and install GRUB on that device, so either sda or sdb. It may be the other disk does not automatically get the boot block, so you do not get failover if the boot disk starts failing.
I tried to install whatweb using the command Code: apt install whatweb Please have my raid details Code: root@isp:~# cat /proc/mdstat Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10] md3 : active raid1 sdb3[1] sda3[0] 1951805440 blocks super 1.2 [2/2] [UU] bitmap: 3/15 pages [12KB], 65536KB chunk md2 : active raid1 sdb2[1] sda2[0] 1046528 blocks super 1.2 [2/2] [UU]
It might be better to install whatweb on you workstation, not on server host. You should install grub on the same device as when you were installing Ubuntu on that host. Did the apt system offer a default device for installing grub to? If yes use that. My guess is your system boots from /dev/sda, so you should install grub on sda.