Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]initrd problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hawking
Retired Dev
Retired Dev


Joined: 01 Mar 2006
Posts: 11
Location: Istanbul, Turkey

PostPosted: Tue May 02, 2006 3:44 pm    Post subject: [solved]initrd problems Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Wed May 03, 2006 1:31 am    Post subject: Reply with quote

Have you set the real_root in GRUB?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
siongui
n00b
n00b


Joined: 05 May 2006
Posts: 3

PostPosted: Fri May 05, 2006 3:26 am    Post subject: Reply with quote

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
View user's profile Send private message
hawking
Retired Dev
Retired Dev


Joined: 01 Mar 2006
Posts: 11
Location: Istanbul, Turkey

PostPosted: Fri May 05, 2006 8:02 pm    Post subject: Reply with quote

Quote:
kernel executes /init instead of /sbin/init.
You should make symlink to /init.


Thanks a lot that solved the problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum