Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] mount /dev/md0 to /newroot failed: invalid argument
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 362
Location: Inner Space

PostPosted: Thu Aug 04, 2016 7:47 pm    Post subject: [solved] mount /dev/md0 to /newroot failed: invalid argument Reply with quote

i have a raid mirror setup on /
i have updated the system with genkernel --mdadm to the 4.4.6. in device drivers/ multiple devices (raid,lvm)/ i have set all the current settings from m to *.
then did run grub2-mkconfig -o /boot/grub/grub.cfg
then copied initramfs and kernel and that grub.cfg to the other disc /boot

when i run the new kernel from any disc i get: mount /dev/md0 to /newroot failed: invalid argument
when i run the old 4.1.15 kernel it runs fine.

why there is not the invalid argument listed? what argument is the system talking about? grub linux argument? or something else?

---edit---
further messages where array not found either automatically or in mdadm.conf

i was building the initramfs with genkernel --mdadm. In /etc/mdadm.conf i have found this setting:
MDADM="no"

after switching that to yes genkernel finally produced RAID enabled initramfs.

i do not rember to have seen or touched that genkernel option before also i do not understand why genkernel did not produce RAID enabled initramfs before just because of the command line option --mdadm.
_________________
((O.o))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum