Re: [gentoo-user] Self created initramfs cannot work

2009-06-29 Thread David Shen
my /init script is running now, but I got '/bin/sh: can't access tty; job control turned off' error. I google a lot, and I think it would relate with my HD. When this error occurs, I got a simple shell. I tried 'lvm vgscan' in that shell, and it cannot find my lvm. I copied my block devices with:

Re: [gentoo-user] Self created initramfs cannot work

2009-06-29 Thread Dirk Heinrichs
Am Montag 29 Juni 2009 14:08:54 schrieb David Shen: my /init script is running now, but I got '/bin/sh: can't access tty; job control turned off' error. I google a lot, and I think it would relate with my HD. When this error occurs, I got a simple shell. I tried 'lvm vgscan' in that shell,

Re: [gentoo-user] Self created initramfs cannot work

2009-06-29 Thread David Shen
yeah, I see you used udev. But I see the gentoo wiki, they do not use udev, so I think I can work without udev, too. I will check if I have dm_mod in my kernel. Thanks. On Tue, Jun 30, 2009 at 12:23 AM, Dirk Heinrichsdirk.heinri...@online.de wrote: Am Montag 29 Juni 2009 14:08:54 schrieb

Re: [gentoo-user] Self created initramfs cannot work

2009-06-27 Thread Dirk Heinrichs
Am Samstag 27 Juni 2009 03:32:50 schrieb David Shen: I build by gentoo kernel without genkernel, and I want to create the initramfs by hand. Following is the steps I did: I also did this for some years, I could send you my setup script if you want. Nowadays I've switched to putting the stuff

Re: [gentoo-user] Self created initramfs cannot work

2009-06-27 Thread David Shen
yep, i'd like to learn from your script. BTW, I also put my initramfs into a separate partition /boot. On Sat, Jun 27, 2009 at 2:33 PM, Dirk Heinrichsdirk.heinri...@online.de wrote: Am Samstag 27 Juni 2009 03:32:50 schrieb David Shen: I build by gentoo kernel without genkernel, and I want to

Re: [gentoo-user] Self created initramfs cannot work

2009-06-27 Thread Dirk Heinrichs
Am Samstag 27 Juni 2009 10:25:11 schrieb David Shen: yep, i'd like to learn from your script. OK, here you are. BTW, I also put my initramfs into a separate partition /boot. Seems you misunderstood. I don't use an initramfs anymore, /boot _is_ my initramfs replacement. Whatever you put into

Re: [gentoo-user] Self created initramfs cannot work

2009-06-27 Thread David Shen
thanks a lot On Sat, Jun 27, 2009 at 7:49 PM, Dirk Heinrichsdirk.heinri...@online.de wrote: Am Samstag 27 Juni 2009 10:25:11 schrieb David Shen: yep, i'd like to learn from your script. OK, here you are. BTW, I also put my initramfs into a separate partition /boot. Seems you

[gentoo-user] Self created initramfs cannot work

2009-06-26 Thread David Shen
Hi, I build by gentoo kernel without genkernel, and I want to create the initramfs by hand. Following is the steps I did: Build the kernel with initramfs support; mkdir -p /usr/src/initramfs{dev,bin,sbin,etc,root,proc,sys} cp -aL /bin/bb /usr/src/initramfs/bin # copy the busybox cp -a /sbin/lvm