Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs ... No volume groups found.
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
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 547

PostPosted: Wed Sep 24, 2014 1:34 am    Post subject: initramfs ... No volume groups found. Reply with quote

I have UEFI booting a stub kernel on the GPT partition located on sda1. My /, usr, swap, etc... are all logical volumes within an LVM container in sda2. I also have an initramfs embedded within the efi/boot/<kernel>.

The problem is that the init script within the initramfs is unable to activate any of the volumes at the 'vgchange' command.

Here's my init script.
Code:

#!/bin/busybox sh

init=/sbin/init

rescue_shell() {
    # ... for brevity
}

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs none /dev

/sbin/lvm.static vgscan --mknodes
/sbin/lvm.static vgchange -ay
/sbin/lvm.static vgscan --mknodes

mkdir -p /mnt/root

mount -o ro /dev/mapper/vg0-root /mnt/root || rescue_shell

umount /proc
umount /sys
umount /dev

exec switch_root /mnt/root /sbin/init || rescue_shell


The error returned during boot is ...

Code:

Reading all physical volumes. This may take awhile...
No volume groups found.


At the rescue shell prompt, I try the same command that I do when I mount a live cd (using the initramfs path and static binary), but same results. Even adding the volume name, same results.

Anyone see where I've gone wrong?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Sep 24, 2014 9:51 am    Post subject: Reply with quote

hi,

in my point of view it is similar to this

https://forums.gentoo.org/viewtopic-t-1000396-highlight-.html

you may follow my advise there
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 547

PostPosted: Wed Sep 24, 2014 5:19 pm    Post subject: Reply with quote

Thanks, but most of that seemed to focus on generating a proper initramfs. The init file from my initramfs is being executed so I do believe my initramfs is properly built. Besides, I use that same thing on other machines. It would seem to me that for some reason my lvm.static isn't properly activating the volumes, or for that matter, finding them.
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 547

PostPosted: Fri Sep 26, 2014 2:58 am    Post subject: Reply with quote

Well, just an update, looks like my sda1 and sda2 do not exist under /dev. Guess I have yet to find the right drivers to include for SATA C600/X79.
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