View previous topic :: View next topic |
Author |
Message |
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Sun May 08, 2011 4:53 pm Post subject: Initrd cannot find volume group [SOLVED] |
|
|
My install has got to the stage of the first boot but it fails because the initrd program gets to the "Scanning for Volume Groups" stage and then can't find any. I have obviously created them and when I boot on the install CD, "vgscan --mknodes" finds the VG immediately. The initrd program was created with "genkernel --lvm ..." in the usual way. I can't think what I have done wrong!
TIA _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Last edited by binro on Wed May 11, 2011 8:03 pm; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sun May 08, 2011 5:13 pm Post subject: |
|
|
Are you sure that the new kernel has the modules required to operate your hard drives? You could have device nodes for the drives present, but without the supporting code, attempts to open those nodes will fail. |
|
Back to top |
|
|
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Sun May 08, 2011 5:32 pm Post subject: |
|
|
Hu wrote: | Are you sure that the new kernel has the modules required to operate your hard drives? You could have device nodes for the drives present, but without the supporting code, attempts to open those nodes will fail. |
dm-mod is under /lib/modules. I used a kernel config from another system that uses LVM. That's why I am stuck, since I just repeated what I had done before. _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Mon May 09, 2011 3:30 pm Post subject: |
|
|
Moved from Installing Gentoo to Kernel & Hardware. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Wed May 11, 2011 2:18 am Post subject: |
|
|
Root on LVM works fine for me. If you drop to a shell in the initramfs, can you read the contents of the hard disk nodes? |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Wed May 11, 2011 6:14 am Post subject: |
|
|
you will probably be better off doing a manual kernel configuration, and manually creating an initramfs to handle scanning/initializing your lvm volume groups
genkernel, at least in my experience, does not seem to do well with thinks like luks, lvm, etc as root.
The manual route is not as difficult as it may sound/seem - if you do try this, folks will be happy to help if you get stuck or have questions. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Wed May 11, 2011 8:03 pm Post subject: |
|
|
The kernel is RYO and that was the problem. I used a config from another machine and the SATA drive was slightly different, I needed the AHCI platform. Rebuilding the kernel with that solved the problem and the machine rebooted, finally! Phew.
Thanks for the suggestions. _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling |
|
Back to top |
|
|
binro l33t
Joined: 06 May 2005 Posts: 724 Location: Bangkok, Thailand
|
Posted: Fri May 13, 2011 9:02 am Post subject: |
|
|
As an addendum, the post I found above was correct. When I got the boot going it was using a 2.6.37-r4 kernel; when I tried 2.6.38 with the same config the kernel could not see the SATA drive. This seems a peculiarity of ThinkPad T510s. _________________ "Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling |
|
Back to top |
|
|
|