Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to make initrd?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Fri Apr 21, 2006 6:02 pm    Post subject: How to make initrd? Reply with quote

Hello. I recompiled kernel (from gentoo sources), installed it and get error: "Unable to mount your root fs...". This is because of I use ReiserFS: the system doesn't reconize it. I know that one answer to this problem is to make initial ram disk (initrd). I tryed
Code:
mkinitrd -c -k kernel-version reiserfs

In Slackware it works, but in Gentoo doesn't. So, can anybody tell me how to make initrd?
Thanks.
Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Fri Apr 21, 2006 6:06 pm    Post subject: Reply with quote

Gentoo sources have reiserfs patches. Check your kernel config. You can use genkernel to create initrd. What error do you get with mkinitrd?


Patrick

Edit: You may want to post your /etc/fstab here as that could be the problem.
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Fri Apr 21, 2006 6:48 pm    Post subject: Reply with quote

With mkinitrd I get message that command not found.
This is error I get when I try to boot up with new kernel:
Code:
UDF-fs: No partition found (1)
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: unable to mount root fs on unknow-block(1,0)


My fstab:
Code:

/dev/hdc      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/hda6    none            swap            sw              0 0
/dev/hda7    /    reiserfs    defaults       0 1                               #Gentoo
/dev/hda8    none            swap            sw              0 0
none        /proc     proc    defaults          0 0
none        /dev/shm  tmpfs   defaults          0 0
/dev/hda5    /mnt/hda5    reiserfs    defaults       0 0                     #Slackware
/dev/hda1    /mnt/ntfs       ntfs            defaults                0 0                              #Windows



And my grub.conf:
Code:

default 0
timeout 30
splashimage=(hd0,6)/boot/grub/splash.xpm.gz

title=Gentoo
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda7
initrd /boot/initramfs-genkernel-x86-2.6.15-gentoo-r5

title Windows
   rootnoverify (hd0,0)
   makeactive
   chainloader +1

title Slackware
   root (hd0,4)
   kernel /boot/vmlinuz-2.6.15-ck3
   initrd /boot/initrd.gz


title=GentooNKern                  #Gentoo new kernel
root (hd0,6)
kernel /boot/bzImage-linux-2.6.15-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda7
Back to top
View user's profile Send private message
whoracle
n00b
n00b


Joined: 23 Dec 2004
Posts: 33

PostPosted: Fri Apr 21, 2006 8:17 pm    Post subject: Reply with quote

maybe something like "emerge -av reiserfsprogs" (or reiser4progs?) is needed?
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Sun Apr 23, 2006 8:43 am    Post subject: Reply with quote

I made initial ram disk, but I still get kernel panic.

I also have build in ReiserFS support as driver, not module. Perhaps I should compile it as module?
Back to top
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Sun May 07, 2006 8:53 pm    Post subject: Reply with quote

maybe you dont have the right sata controller or ide driver installed? I usually make sure my root partitions filesystem driver is compiled into the kernel and not as a module.
_________________
http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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