You are not logged in.

#1 2020-03-16 15:26:03

scippie
Member
Registered: 2019-06-07
Posts: 136

[SOLVED] grub-install; error: disk `md126,1` not found.

I am trying to reinstall my desktop pc. It had an old Arch installation but it was so messed up (and it probably even had corrupt disk data because of possible incorrect partition mappings with windows).
I decided to remove every other OS and just go for Arch as on my laptops.
Installing Arch has becoming easy for me (have done it lots of times now), so it should work fine, but this time, I am facing a problem and I can't figure it out.

Info: the system has an on board RAID sata hardware and I have always used it to put two 512GB SSD's (Samsung 840 PRO) in striped raid (raid0). This has always worked before, also on my Arch installation.
Next to it is a 1TB SSD (Samsung 860 PRO) outside of any raid volume.

I follow the installation steps from the wiki:
- The raid-volume is detected and mapped on /dev/md126
- I fdisk to it and make it a simple MBR system with only one partition (I don't need swap) starting at default and ending at default sectors
- I make the partition bootable, not sure if it is necessary
- I do the formatting to ext4, the mounting, the pacstrapping
- I install grub, intel-ucode and then I come to the step where I need to install grub:

# grub-install --target=i386-pc /dev/md126
Installing or i386-pc platform.
grub-install: error: disk `md126,1` not found.
and I can't continue my installation.

I found some info on raids that it might be necessary to just use grub-install on both of the physical disks in the raid (sda and sdb in my case) but that doesn't work either with the same error.

Help?

Edit: md126p1 does exist by the way. Where does this ',' come from anyway?

Last edited by scippie (2020-03-17 10:12:15)

Offline

#2 2020-03-17 10:12:02

scippie
Member
Registered: 2019-06-07
Posts: 136

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

I found the problem. As a last resort, I took a Manjaro live usb and tried to install it.
It also gave errors and could not create partitions.
It seems that that was the problem with my previous installation all along. It had warned me about sector boundaries and things like that but I found places where they said that was ok.
It certainly explains all those odd problems I was having with that installation (which I didn't have on any other computer with Arch): network not starting, audio no longer playing, games starting sometimes and sometimes not, firefox changing color theme, ... the list goes on...
So, my RAID controller seems to be broken.
I disabled it in the BIOS, did an extensive test on all my SSD's and tried installing Manjaro again, and it worked perfectly.

Now I am going to read up on software RAID and LVM to set up a new clean Arch environment.

Last edited by scippie (2020-03-17 10:14:04)

Offline

#3 2020-12-22 14:57:23

kira50
Member
Registered: 2020-12-22
Posts: 6

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

Why is this marked as solved..!? Is it really solved I am getting the same error. Please suggest any other solution if available

Offline

#4 2020-12-22 14:59:42

scippie
Member
Registered: 2019-06-07
Posts: 136

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

kira50 wrote:

Why is this marked as solved..!? Is it really solved I am getting the same error. Please suggest any other solution if available

The issue was very most likely hardware related as Manjaro wasn't able to install it properly either, so I simply no longer use it.

Last edited by scippie (2020-12-22 15:00:01)

Offline

#5 2020-12-22 15:27:16

kira50
Member
Registered: 2020-12-22
Posts: 6

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

So how Did you install grub on raid 0 if you use it right now? or did you replace/change the hardware?

Last edited by kira50 (2020-12-22 15:28:10)

Offline

#6 2020-12-22 15:48:43

scippie
Member
Registered: 2019-06-07
Posts: 136

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

kira50 wrote:

So how Did you install grub on raid 0 if you use it right now? or did you replace/change the hardware?

I said I no longer use it. So the RAID hardware is disabled now and I am now simply using the standard SATA hardware which works perfectly fine.
I've been looking into using LVM to join the disks and maybe even use software striping but I haven't had the time to do that.

Offline

#7 2020-12-23 07:07:01

kira50
Member
Registered: 2020-12-22
Posts: 6

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

scippie wrote:
kira50 wrote:

So how Did you install grub on raid 0 if you use it right now? or did you replace/change the hardware?

I said I no longer use it. So the RAID hardware is disabled now and I am now simply using the standard SATA hardware which works perfectly fine.
I've been looking into using LVM to join the disks and maybe even use software striping but I haven't had the time to do that.

So it's not possible to install grub on RAID hardware? I don't get it, why is it marked solved though? Did you try to clean install it on RAID after fixing your drives?

Last edited by kira50 (2020-12-23 07:07:41)

Offline

#8 2020-12-23 08:40:21

scippie
Member
Registered: 2019-06-07
Posts: 136

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

I'll try to reply as clearly as possible: I am 99.99% certain that my hardware is defective/malfunctioning. So by no longer using it, my problem was solved. In other words, I think I wouldn't have had this problem if my hardware wasn't defective/malfunctioning.

My disks were perfectly fine. My RAID controller was the problem. I disabled it... problem solved!

Offline

#9 2020-12-24 08:47:58

kira50
Member
Registered: 2020-12-22
Posts: 6

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

It is not a hardware error. My disks are brand new and work perfectly fine with Windows but when I try to install arch. Everything is fine until I install grub, which gives me same kind of error you mentioned in this topic but now if post it, it will be marked as duplicate and I still don't have a solution for it. So thank you for nothing.

Offline

#10 2020-12-24 09:28:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,428

Re: [SOLVED] grub-install; error: disk `md126,1` not found.

Kira50 the thread is marked as [SOLVED] by scippie, if you get a similar error open a new topic providing details about your own setup. We don't generally mark topics as duplicate because they have the same error message. Certainly not if the solutions between them differ.

If scripe's solution doesn't work for you, then stop harassing them about providing an alternate solution and open your own thread instead: https://wiki.archlinux.org/index.php/Co … ther_users

Closing, to prevent further drift offs.

Offline

Board footer

Powered by FluxBB