View previous topic :: View next topic |
Author |
Message |
jessinio n00b
Joined: 04 Jan 2010 Posts: 3 Location: china
|
Posted: Mon Apr 26, 2010 4:17 pm Post subject: gentoo on lvm root |
|
|
hi , all
before I had installed gentoo on ext3 file system and it work well.
Now, I try to install it on LVM (root file sytem) , but have trouble
My partitions is:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 100 803218+ 83 Linux
/dev/sda2 101 30401 243392782+ 8e Linux LVM
* /dev/sda1 is my boot partition
and My LVM volumes list:
ACTIVE '/dev/sg250/ubuntu' [20.00 GB] inherit
ACTIVE '/dev/sg250/swap' [1.00 GB] inherit
ACTIVE '/dev/sg250/data' [100.00 GB] inherit
ACTIVE '/dev/sg250/gentoo' [20.00 GB] inherit
I had selected "Device mapper suppor" before compile kernel , but the kernel report can't mount root filesystem ERROR on boot
I search on web and find out: linux kernel need lvm module on boot when it mount LVM partition. this time, linux kernel need initrd.img file.
So, I read over the mkinitrd script code, and find out: My new system did NOT have dm-mod ! Look mkinitrd script code slice:
if [ -x /sbin/dmsetup -a -e /dev/mapper/control ]; then
dmout=$(/sbin/dmsetup ls 2>/dev/null)
if [ "$dmout" != "No devices found" -a "$dmout" != "" ]; then
findmodule -dm-mod
fi
fi
I CAN'T find "-dm-mod" ON MY disk:
# find /lib/modules -name "*dm-mod*"
I NEED YOUR HELP!
how to get the dm-mod module or compile it ?
MY kernel verion is 2.6.32.2
thanks!
jessinio AT gmail DOT com _________________ Good programmer know how to write his want,
Great programmer know how to rewrite his want. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Apr 26, 2010 8:37 pm Post subject: |
|
|
you probably have dm-mod as a built-in, rather than a module
can you dump your kernel .config up on pastebin so we can have a look? _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
jessinio n00b
Joined: 04 Jan 2010 Posts: 3 Location: china
|
Posted: Tue Apr 27, 2010 9:13 am Post subject: |
|
|
cach0rr0 wrote: | you probably have dm-mod as a built-in, rather than a module
can you dump your kernel .config up on pastebin so we can have a look? |
.config very large and I can't upload it in this forum.
Can you tell me some key words to search .config file and paste search result on forum ? _________________ Good programmer know how to write his want,
Great programmer know how to rewrite his want. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue Apr 27, 2010 10:22 am Post subject: |
|
|
jessinio wrote: | cach0rr0 wrote: | you probably have dm-mod as a built-in, rather than a module
can you dump your kernel .config up on pastebin so we can have a look? |
.config very large and I can't upload it in this forum.
Can you tell me some key words to search .config file and paste search result on forum ? |
that was the bit about pastebin. dump the entirety on pastebin.com, share the link with us
or, emerge wgetpaste, and
Code: |
zcat /proc/config.gz | wgetpaste
|
share that link
Specifically this is the item we're looking for:
Code: |
CONFIG_BLK_DEV_DM:
│
│ Device-mapper is a low level volume manager. It works by allowing
│ people to specify mappings for ranges of logical sectors. Various
│ mapping types are available, in addition people may write their own
│ modules containing custom mappings if they wish.
│
│ Higher level volume managers such as LVM2 use this driver.
│
│ To compile this as a module, choose M here: the module will be
│ called dm-mod.
│
│ If unsure, say N.
|
'course that only addresses that one item. Dumping the whole .config somewhere would be helpful if not for that immediate issue, for working through the rest of it _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
jessinio n00b
Joined: 04 Jan 2010 Posts: 3 Location: china
|
Posted: Tue Apr 27, 2010 12:05 pm Post subject: |
|
|
thanks YOUR replay, My .config file context:
http://pastebin.com/PbLAyZNj _________________ Good programmer know how to write his want,
Great programmer know how to rewrite his want. |
|
Back to top |
|
|
Rexilion Veteran
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Thu Apr 29, 2010 7:01 am Post subject: |
|
|
Perhaps you can try rebuilding your initrd? Do you have /sbin/dmsetup available?
Perhaps you could also post any error messages/symptoms if possible? |
|
Back to top |
|
|
|