I'm experiencing problems with booting gentoo on intel RAID 0 array. Apparently can't get it working and I'm slowly getting out of ideas.
It's a RAID 0 volume made of 2 128GiB SSD's with built-in Intel (pseudo)RAID controller version 1.0 on MSI GT60 2PC(basically 16F4 whitebook but the hardware is the same).
I'm installing it next to Windows 10, partition table is GPT, booting with UEFI. The array is detected by LiveCDs and mounts without problems, fdisk shows:
Code: Select all
GPT PMBR size mismatch (500129791 != 250069679) will be corrected by w(rite).
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x6dcb6716
Device Boot Start End Sectors Size Id Type
/dev/sda1 1 500129791 500129791 238.5G ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md126: 238.5 GiB, 256066453504 bytes, 500129792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 16384 bytes / 32768 bytes
Disklabel type: gpt
Disk identifier: 60194ECA-E7AA-463B-8F89-AC395D24C425
Device Start End Sectors Size Type
/dev/md126p1 2048 923647 921600 450M Windows recovery environment
/dev/md126p2 923648 1128447 204800 100M EFI System
/dev/md126p3 1128448 1161215 32768 16M Microsoft reserved
/dev/md126p4 1161216 369247092 368085877 175.5G Microsoft basic data
/dev/md126p5 436932608 438685695 1753088 856M Windows recovery environment
/dev/md126p6 369248256 436932607 67684352 32.3G Linux filesystem
/dev/md126p7 438685696 498020351 59334656 28.3G Linux filesystem
/dev/md126p10 498286592 500129758 1843167 900M Linux swap
Partition table entries are not in disk order.
I've installed Fedora on LVM once(but I prefer distribution for adults like gentoo
I've configured kernel manually (there are rumors that genkernel won't configure kernel properly for RAID), generated initramfs with genkernel with --mdadm option, added
Code: Select all
CONFIG_CMDLINE="CONFIG_CMDLINE=\"domdadm root=UUID=5645bde7-efbe-4adf-a741-bce9a8b86044 rootfstype=ext4\""The problem is that kernel can't mount the filesystem, tried with grub(grub.cfg:https://www.dropbox.com/s/82d434k1mhl54 ... enryk?dl=0)- "muuid/(...) not found"(tried with two muuids because I'm not sure which one is correct) and with EFI configured with efibootmgr- "can't mount block device (0,0)" but it looks like framebuffer is enabled(i mean there are colors etc
I think the problem is in the kernel configuration.
Here's what I've enabled for RAID:
Code: Select all
livecd /usr/src/linux # cat .config | grep RAID
CONFIG_RAID_ATTRS=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
CONFIG_DM_RAID=y
CONFIG_DMA_ENGINE_RAID=y
# CONFIG_ASYNC_RAID6_TEST is not set
CONFIG_ASYNC_RAID6_RECOV=y
CONFIG_RAID6_PQ=y
About the controller, lspci -v:
Code: Select all
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 05)
Subsystem: Micro-Star International Co., Ltd. [MSI] 82801 Mobile SATA Controller [RAID mode]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 25
I/O ports at f0b0 [size=8]
I/O ports at f0a0 [size=4]
I/O ports at f090 [size=8]
I/O ports at f080 [size=4]
I/O ports at f060 [size=32]
Memory at f7f16000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci
Kernel modules: ahci
Code: Select all
livecd /usr/src/linux # cat .config | grep AHCI
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y
# CONFIG_AHCI_CEVA is not set
# CONFIG_AHCI_QORIQ is not set
# CONFIG_SATA_ACARD_AHCI is not set
Code: Select all
livecd /usr/src/linux # cat .config | grep EXT[2,3,4]
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
CONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_ENCRYPTION=y
CONFIG_EXT4_FS_ENCRYPTION=y
CONFIG_EXT4_DEBUG=y
Code: Select all
UUID=1AD7-F7D7 /boot vfat defaults,noatime 0 2
UUID=a10e1c67-bd67-450d-9638-4b4e175eedfe none swap sw 0 0
UUID=5645bde7-efbe-4adf-a741-bce9a8b86044 / ext4 noatime 0 1
UUID=090ede1b-ced9-4200-b926-364d47956e6a /usr ext4 noatime 0 1
I'm compiling the kernel with:
Code: Select all
make && make modules_installCode: Select all
make installCode: Select all
genkernel --mdadm --install initramfsthen adding it to EFI(.efi file I'm also updating)
Code: Select all
efibootmgr -c -d /dev/md126 -p 2 -L "GentooEFIBMGR" -l '\efi\Gentoo\boot\Gentoox64.efi' initrd='initramfs-genkernel-x86_64-4.14.64-gentoo'(sorry for gdocs)
Basically I suspect that I've either didn't configure kernel properly for SATA/RAID support(but I don't see any errors here so I may have over-configured it) or doing something wrong in the compiling/installing process, so I would be very grateful for any advise or guidance. It's been about ten years since I've installed gentoo for the last time(or maybe thirteen because it doesn't need reinstallation for upgrading
Thank you in advance
EDIT:
here's my .config: https://www.dropbox.com/s/09pjhmo2qky8d ... k.txt?dl=0
(I know it's messy, I'll work on it
Regards,
Paweł



