Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 can't init on mdm/RAID root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1181
Location: Stuttgart, Germany

PostPosted: Sat Oct 19, 2013 10:50 am    Post subject: grub2 can't init on mdm/RAID root Reply with quote

so, I'm slowly trying to get a laptop installed with gentoo. I followed the quick-install guide for lvm/RAID found here. I got everything installed fine, but GRUB won't load the kernel properly.

I have this as my /boot/grub/grub.cfg (which is a link to /boot/grub2/grub.cfg):

Code:
default 0
timeout 7
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz


menuentry 'Gentoo' {
root=hd0,1
linux /kernel-3.11.5-gentoo root=UUID=bb492953-3a45-47ed-9ef5-615147e13e78
initrd /initrd.cpio.gz
}

menuentry 'Gentoo-prevkernel' {
root=hd0,1
linux /kernel-3.8.1-gentoo
initrd /initrd.cpio.gz
}

initrd.cpio.gz is NeddySeagoon's preloader for checking the /usr/and /var partitions prior to mounting and running init, found here.

blkid for this box says this:

Code:
# blkid
/dev/loop0: TYPE="squashfs"
/dev/sr0: LABEL="Gentoo Linux amd64 20130110" TYPE="iso9660"
/dev/sda1: UUID="f2c13ebb-9844-cf3c-cb20-1669f728008a" TYPE="linux_raid_member"
/dev/sda2: UUID="94e65518-6c42-46a8-99e7-c68aa531d574" TYPE="swap"
/dev/sda3: UUID="1cbe02c7-1530-c8f0-cb20-1669f728008a" TYPE="linux_raid_member"
/dev/sda4: UUID="dc101745-5d09-ad04-b89b-21f07ef37d1a" UUID_SUB="0dd821f0-5998-f2b4-6efd-5ecbf2630fe7" LABEL="livecd:4" TYPE="linux_raid_member"
/dev/sdb1: UUID="f2c13ebb-9844-cf3c-cb20-1669f728008a" TYPE="linux_raid_member"
/dev/sdb2: UUID="e5c374df-c0a7-4e79-9eea-80541ad71f9c" TYPE="swap"
/dev/sdb3: UUID="1cbe02c7-1530-c8f0-cb20-1669f728008a" TYPE="linux_raid_member"
/dev/sdb4: UUID="dc101745-5d09-ad04-b89b-21f07ef37d1a" UUID_SUB="a0eeea96-a7bc-6ad8-b6fe-0cbe3014e107" LABEL="livecd:4" TYPE="linux_raid_member"
/dev/md1: UUID="f3751a22-b683-43b7-a74d-5d39ff7b117b" TYPE="ext2"
/dev/md3: UUID="bb492953-3a45-47ed-9ef5-615147e13e78" TYPE="ext3"
/dev/md4: UUID="vBcv7D-jQwi-14ft-cHah-pzol-c71h-m6eNaq" TYPE="LVM2_member"
/dev/mapper/choria-tmp: UUID="79d1bc8b-e7d3-41bb-b7e8-c4df1c574320" TYPE="ext2"
/dev/mapper/choria-var: UUID="6f70de91-3fa0-4989-a9cc-832568d38499" TYPE="ext3"
/dev/mapper/choria-usr: UUID="4079e7b4-9e84-4c92-863e-ebe4b152e38f" TYPE="ext3"
/dev/mapper/choria-usr--port--dist: UUID="168ad4fa-8c4c-415b-94be-8caf0ae41638" TYPE="ext2"
/dev/mapper/choria-usr--port: UUID="a4288177-9c30-4fec-a2b3-c4ee80b7812d" TYPE="ext2"
/dev/mapper/choria-home: UUID="8d842dea-8eda-45aa-af03-091f59345ebd" TYPE="ext3


My problem is this: GRUB is not finding the kernel, or mounting it properly, so it dumps to a kernel panic about not being able to find init. The UUID in my grub.cfg corresponds to the UUID of /dev/md3, where / is located.

What am I doing wrong here?

Cheers,

EE
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1181
Location: Stuttgart, Germany

PostPosted: Mon Oct 21, 2013 6:56 pm    Post subject: Reply with quote

Or let me ask a different question:

how do I go about installing Gentoo/GRUB onto a system in which / is on a RAID1, and /usr and /var are both inside an lvm?

I can't use grub2-mkconfig, because it persistently sets /usr as my /. I know I need an initramfs/initrd, but does the kernel supply one capable of loading /usr from an lvm?

Cheers,

EE
(PS, super pretty-please someone give some advice, because I'm restricted to my currently non-functioning laptop for the next three months, starting in two days [so it's somewhat urgent]).
Back to top
View user's profile Send private message
bmadonna1401
n00b
n00b


Joined: 31 Jul 2009
Posts: 26
Location: Washington, DC

PostPosted: Fri Nov 01, 2013 5:10 am    Post subject: Grub2 mdadm and lvm2 Reply with quote

Did you ever get an answer I'm having problems also I"m trying to use systemd and all I get is a loading kernel message and loading initrd and nothing happens my system just locks. Any help would be greatly appreciated.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1181
Location: Stuttgart, Germany

PostPosted: Sat Nov 02, 2013 1:46 am    Post subject: Reply with quote

No, I never got an answer. I've never been able to get gentoo running on this laptop; not sure why. My solution was to install f"§$/&!!ing Ubuntu on a brand new SSD. :(
Back to top
View user's profile Send private message
bmadonna1401
n00b
n00b


Joined: 31 Jul 2009
Posts: 26
Location: Washington, DC

PostPosted: Sun Nov 03, 2013 5:05 am    Post subject: Reply with quote

I gave up also went back to funtoo. Something is obviously broken and needs fixing.
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
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