View previous topic :: View next topic |
Author |
Message |
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Wed Sep 24, 2014 1:34 am Post subject: initramfs ... No volume groups found. |
|
|
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 |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
|
Back to top |
|
|
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Wed Sep 24, 2014 5:19 pm Post subject: |
|
|
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 |
|
|
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Fri Sep 26, 2014 2:58 am Post subject: |
|
|
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 |
|
|
|