View previous topic :: View next topic |
Author |
Message |
hawking Retired Dev
Joined: 01 Mar 2006 Posts: 11 Location: Istanbul, Turkey
|
Posted: Tue May 02, 2006 3:44 pm Post subject: [solved]initrd problems |
|
|
I have made an initramfs image following the guide http://gentoo-wiki.com/TinyGentoo and I've put the kernel and the image to my usb-device and installed grub on it.The kernel (vmlinuz) and initramfs image are on the top directory of /dev/sda1. I have tried booting to it but I couldn't .. here's what I've tried
First I've put this in menu.lst as described in that url:
kernel /vmlinuz init=/sbin/init
initrd /initramfs-image
The error I got was : Failed to execute /sbin/init.
I checked if /sbin/init was missing and tried to execute it from the Gentoo on my harddrive and it worked. So then I tried :
kernel /vmlinuz root=/dev/ram0 init=/sbin/init
initrd /initramfs-image
This time I got : UDF-Fs no partitions found.Unable to mount rot fs on unknown block (1,0)
I also tried the same with /linuxrc .. same results.
I'm rather confused and this is my first time dealing with initrd stuff.I'll be happy if someone can help me out.
Regards,
Ali Polatel
Last edited by hawking on Fri May 05, 2006 8:03 pm; edited 1 time in total |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Wed May 03, 2006 1:31 am Post subject: |
|
|
Have you set the real_root in GRUB? _________________ Thomas S. Howard |
|
Back to top |
|
|
siongui n00b
Joined: 05 May 2006 Posts: 3
|
Posted: Fri May 05, 2006 3:26 am Post subject: |
|
|
kernel executes /init instead of /sbin/init.
You should make symlink to /init.
cd /tinygentoo
#if you are using /linuxrc
ln -s linuxrc init
#if you have no /linuxrc
ln -s sbin/init init
Please see the following link.
http://syslinux.zytor.com/archives/2004-June/003729.html |
|
Back to top |
|
|
hawking Retired Dev
Joined: 01 Mar 2006 Posts: 11 Location: Istanbul, Turkey
|
Posted: Fri May 05, 2006 8:02 pm Post subject: |
|
|
Quote: | kernel executes /init instead of /sbin/init.
You should make symlink to /init. |
Thanks a lot that solved the problem |
|
Back to top |
|
|
|