Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to mount RAID1 partitions in gentoo (SOLVED)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54208
Location: 56N 3W

PostPosted: Tue Feb 06, 2018 6:26 pm    Post subject: Reply with quote

Featherfoot,

I was expecting to see a grub/ directory in boot but its not there.
How do you boot your system?

You do have two matching kernels and initrd files though.

Code:
genkernel --dmraid all
should produce initrd files that support the dodmraid kerlel command line option.

What does
Code:
uname -a
show on your Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Featherfoot
Veteran
Veteran


Joined: 28 Dec 2002
Posts: 1108
Location: Stuart, Florida

PostPosted: Tue Feb 06, 2018 6:55 pm    Post subject: Reply with quote

I think you're right that it's the in it's rip as nothing seems to mount the RAID partktions. Poking around, Dracut seems to ce the best candidate as I don't feel comfortable doing it from scratch and I don't see a way to get at the script that Gen kernel uses.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54208
Location: 56N 3W

PostPosted: Tue Feb 06, 2018 7:19 pm    Post subject: Reply with quote

Featherfoot,

I'm not convinced you are using the content of the /boot you showed.

The initrd is either a cpio archive or a filesystem in a compressed file.
Either can be unpicked. The file command will tell which you have.

The genkernel command you quoted used to produce working fakeraid.
I'm not convinced you are using it though.

Code:
uname -a
will tell some useful information about your running kernel.
Code:
ls -l /boot
will list the content of /boot with timestamps.

The content of /boot/grub/grub.cfg will show which files are being loaded by grub.
I think you have fixed the issue but you are not running the kernel you think you are, so its not working.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Featherfoot
Veteran
Veteran


Joined: 28 Dec 2002
Posts: 1108
Location: Stuart, Florida

PostPosted: Thu Feb 08, 2018 11:18 pm    Post subject: Reply with quote

Sorry not to respond sooner. Life intruded.

As discussed, I have a partition with Mint on it and one with Gentoo on it. I have a /boot partition for gentoo and a boot directory for Mint. It evolved this way because Mint used Grub2 while gentoo used Grub. My solution was to create a file that I named 07_jc that I put in Mint's /etc/grub.d directory . This put the gentoo boot code into the list first. When I do a new gentoo kernel, I update my 07_jc file with the new information and do an update-grub in Mint.

A comment in the dracut documentation was that it mounted all root partitions by default and implied that other partitions were not necessarily mounted, which would be consistent with what I am seeing. Genkernel documentation implies that it builds initscripts using its own code, but dracut came up with this convention somewhere and makes me suspicious that it does the same thing. That would also be consistent with my older kernels working as critical parts of the system were located on the RAID array.

Dracut seems to be my next shot at an initscript as it does look like I can force mount code for everything into the initscript. I am going to go over the documentation again and try to set up a script that will work.
Back to top
View user's profile Send private message
Featherfoot
Veteran
Veteran


Joined: 28 Dec 2002
Posts: 1108
Location: Stuart, Florida

PostPosted: Fri Feb 09, 2018 8:34 pm    Post subject: Reply with quote

I eventually emerged genkernel-next and it worked!

Thank you, NeddySeagoon and eveybody else! I appreciate your time very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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