View previous topic :: View next topic |
Author |
Message |
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Fri Mar 05, 2004 6:01 am Post subject: <<< Newbie last try: missing initrd ??? >>> |
|
|
Dear All,
I am completely new, on my own and have been struggling with Gentoo full time for a few days already, this is my last try and by the end of this weekend i will be forced to look for alternatives elsewhere.
My problem is :
I follow thru the online doc and get to dual boot my Linux where it complains that the initrd-2.4.25 is missing that i have subsequently confirmed indeed.
according to http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=7#doc_chap2, i have chosen the default manual configuration as it seems to be the best way to optimize. However, it seems that the initrd will only be generated using the genkernel method. so did i miss anything here or just must i use the genkernel method, please ?
Walla |
|
Back to top |
|
|
_Nomad_ Guru
Joined: 11 Apr 2003 Posts: 571
|
Posted: Fri Mar 05, 2004 7:08 am Post subject: |
|
|
you can enable initrd in Code: | Device Drivers --> Block Devices --> [*]Ram disc support > Initial RAM disk (initrd) support (NEW) |
|
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Fri Mar 05, 2004 9:16 am Post subject: |
|
|
_Nomad_ wrote: | you can enable initrd in Code: | Device Drivers --> Block Devices --> [*]Ram disc support > Initial RAM disk (initrd) support (NEW) |
|
thanks for the info and i did select this option.
what i wonder now is that in http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=7#compiling
it says that we have to copy the bzImage to kernel-2.4.25
Code Listing 38: Installing the kernel
(For amd64-based systems)
# cp arch/x86_64/boot/bzImage /boot/kernel-2.4
so do i have to do something similar for initrd ?
also in Code Listing 37: Compiling the kernel
(For other systems, 2.4 kernel)
# make dep && make vmlinux modules modules_install
it seems that what i am going to make is file 'vmlinux', why shall i copy bzImage, instead of vmlinux, to kernel-2.4.25 ???
i am using AMD64 btw and that's why i make vmlinux ......
thanks in advance,
walla |
|
Back to top |
|
|
boroshan l33t
Joined: 16 Apr 2003 Posts: 730 Location: upside down
|
Posted: Fri Mar 05, 2004 9:23 am Post subject: |
|
|
Quote: | it seems that what i am going to make is file 'vmlinux', why shall i copy bzImage, instead of vmlinux, to kernel-2.4.25 ???
i am using AMD64 btw and that's why i make vmlinux ...... |
I don't know much about compiling on AMD64 platforms.
Why not create a new grub entry for vmlimnux? copy and past the current one and change bzIMage to vmlinux and see if that'll boot.
Also, if you're using a hand compiled kernel, you won't need the initrd - try removing the initrd line from your grub file
hope that helps _________________ Don't let THEM immanentize the Eschaton! |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Fri Mar 05, 2004 10:31 am Post subject: |
|
|
boroshan wrote: | Quote: | it seems that what i am going to make is file 'vmlinux', why shall i copy bzImage, instead of vmlinux, to kernel-2.4.25 ???
i am using AMD64 btw and that's why i make vmlinux ...... |
I don't know much about compiling on AMD64 platforms.
Why not create a new grub entry for vmlimnux? copy and past the current one and change bzIMage to vmlinux and see if that'll boot.
Also, if you're using a hand compiled kernel, you won't need the initrd - try removing the initrd line from your grub file
hope that helps |
what, doesn't need initrd, my dear
anyway, i took it out but i have a new problem
VFS: cannot open root device "sda5"
please append a correct "root=" boot opinion
kernel panic: VFS: unable to mount root fs
i have partitioned my harddisk to dualboot windows/linux where sda5 is my linux boot partition & sda7 is the main partition (sda6 is swap ), i have tried both sda5, sda7 and it complains the same .......
any hints please |
|
Back to top |
|
|
matkare n00b
Joined: 03 Mar 2004 Posts: 69
|
Posted: Fri Mar 05, 2004 10:59 am Post subject: |
|
|
if you choose to boot without an initial ram disk (initrd) you have to take the proper hardware- and filesystem- parts into your kernel.
if you have a SCSI-System
Most important parts are:
- SCSI-Support
- Support for SCSI-Disks
- low level driver for your SCSI-Adapter
- filessystem for example XFS or ReiserFS
Attention this parts could not be compiled as modules otherwise you have to use initrd. |
|
Back to top |
|
|
boroshan l33t
Joined: 16 Apr 2003 Posts: 730 Location: upside down
|
Posted: Fri Mar 05, 2004 11:05 am Post subject: |
|
|
Quote: | Attention this parts could not be compiled as modules otherwise you have to use initrd. | Point
I always make sure my hard drive and filesystem support are compiled in anyway, so that never occurred to me.
It's a good idea unless you are really desperate to reduce kernel size _________________ Don't let THEM immanentize the Eschaton! |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Fri Mar 05, 2004 12:18 pm Post subject: |
|
|
boroshan wrote: | Quote: | Attention this parts could not be compiled as modules otherwise you have to use initrd. | Point
I always make sure my hard drive and filesystem support are compiled in anyway, so that never occurred to me.
It's a good idea unless you are really desperate to reduce kernel size |
ic, so may i have some hints on my problems ??? did i mess my grub.conf or did i set any other things wrong, please |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Fri Mar 05, 2004 12:32 pm Post subject: |
|
|
Can you please post your grub.conf? |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Fri Mar 05, 2004 1:07 pm Post subject: |
|
|
Cosmin wrote: | Can you please post your grub.conf? |
of course, sir
title=Gentoo
root (hd0,4)
kernel (hd0,4)/kernel-2.4.25 root=/dev/sda5
title=Windows XP
root (hd0,0)
chainloader +1
where
/sda1 HPFS/NTFS
/sda2 Win'95 Ext'd
/sda5 Linux <---------- Boot partition
/sda6 Linux Swap
/sda& Linux <---------- Main partition
i have also tried the root as /sda7 but it still did not work
Thanks and regards,
|
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Fri Mar 05, 2004 1:47 pm Post subject: |
|
|
wclwong wrote: | title=Gentoo
root (hd0,4)
kernel (hd0,4)/kernel-2.4.25 root=/dev/sda5
title=Windows XP
root (hd0,0)
chainloader +1
| Try to remove 'root=/dev/sda5'. I know this souds rather silly, but this solved the problem for me. And your root partition is root (hd0,6). This way you'll have Code: | title=Gentoo
root (hd0,6)
kernel (hd0,4)/kernel-2.4.25
title=Windows XP
root (hd0,0)
chainloader +1
|
[EDIT] Forgot to mention about the root partition... |
|
Back to top |
|
|
boroshan l33t
Joined: 16 Apr 2003 Posts: 730 Location: upside down
|
Posted: Fri Mar 05, 2004 1:49 pm Post subject: |
|
|
Well the root= kernel parameter should point at your root partition, so that's /dev/sda7. I know you tried that, but /dev/sda7 is what is should be.
Apart from that, check your kernel config, make sure you have the scsi drivers compiled in (you are using scsi and not IDE I take it), make sure you have dos partitions included if you selected advanced partition handling...
In fact, have a look here since that's the source of all my info on the subject. It's got loads of hints and a couple of decent checklists as well _________________ Don't let THEM immanentize the Eschaton! |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Sat Mar 06, 2004 5:52 am Post subject: |
|
|
Cosmin wrote: | wclwong wrote: | title=Gentoo
root (hd0,4)
kernel (hd0,4)/kernel-2.4.25 root=/dev/sda5
title=Windows XP
root (hd0,0)
chainloader +1
| Try to remove 'root=/dev/sda5'. I know this souds rather silly, but this solved the problem for me. And your root partition is root (hd0,6). This way you'll have Code: | title=Gentoo
root (hd0,6)
kernel (hd0,4)/kernel-2.4.25
title=Windows XP
root (hd0,0)
chainloader +1
|
[EDIT] Forgot to mention about the root partition... |
thanks for pointing out "(hd0,6)", it boots up eventually |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Sat Mar 06, 2004 6:05 am Post subject: |
|
|
boroshan wrote: | Well the root= kernel parameter should point at your root partition, so that's /dev/sda7. I know you tried that, but /dev/sda7 is what is should be.
Apart from that, check your kernel config, make sure you have the scsi drivers compiled in (you are using scsi and not IDE I take it), make sure you have dos partitions included if you selected advanced partition handling...
In fact, have a look here since that's the source of all my info on the subject. It's got loads of hints and a couple of decent checklists as well |
thanks for the "/dev/sda7", english is not my mother tonuge and i messed up boot and root these few days
i got it booted up eventually today but still have a minor problem:
during the bootup process, it complains that "fsck.xfs not found", i guess it is somethings related to the filesystem and i believe i am using ext2 (sda5) and ext3 (sda7) ...... any hints what is it about, please ?
also, when i boot from the liveCD i guess it turns to the frame-buffer mode where smaller characters and more lines can be displayed in 1 screen and now my video is the ugly big character mode. i use http://www.leadtek.com.tw/3d_graphic/winfast_a340_td_1.shtml and do u think i can just select the right mode in makeconfig or shall i compile the driver that it provides ?
it is a real pleasure to get it up after a full week's work and u gentoo guys are the best in the world
|
|
Back to top |
|
|
boroshan l33t
Joined: 16 Apr 2003 Posts: 730 Location: upside down
|
Posted: Sat Mar 06, 2004 9:35 am Post subject: |
|
|
check your /etc/fstab
xfs is the default filesystem from the stage tarball. chances are you forgot to change it to ext3. I did that myself.
For your framebuffer, there's a great howto here
Have fun - glad you got it sorted out _________________ Don't let THEM immanentize the Eschaton! |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Mon Mar 08, 2004 4:01 am Post subject: |
|
|
boroshan wrote: | check your /etc/fstab
xfs is the default filesystem from the stage tarball. chances are you forgot to change it to ext3. I did that myself.
For your framebuffer, there's a great howto here
Have fun - glad you got it sorted out |
dear, it did not work out
the value in /etc/fstab was indeed xfs and after i changed and rebooted, it turned from bad to worse, below are my findings ......
change /dev/ROOT to
ext2, ext3: fail to continue booting and have to reboot using liveCD
xfs, jfs, reiserfs: can continue rebooting either by CTRL-D or immediately supplying root password
so how can i verify now the exact filesystem that i chose when i lasted creating my /dev/ROOT (/dev/sda7) ?
also, the system recommend me to fix the error by using "e2fsck -b 8193 <device>" but when i issued "e2fsck -b 8193 /dev/sda7" it complained error of bad magic number (which i guess is the 8193?) so what exactly is going wrong here may i ask ? |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Mon Mar 08, 2004 8:25 am Post subject: |
|
|
Ok, I believe now is the proper time for you to post /etc/fstab... And please tell us your partitions. |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Mon Mar 08, 2004 8:37 am Post subject: |
|
|
Cosmin wrote: | Ok, I believe now is the proper time for you to post /etc/fstab... And please tell us your partitions. |
well, actually it is a naive problem and i have fixed it
/dev/ROOT ---> /dev/sda7
/dev/BOOT ---> /dev/sda5
however, i am now having problem configuring the X server. I have emerged the nvidia related files and can even lsmod to find the nvidia. however, the x server can't start up and when i ctrl-alt-backspace, i find the error of initialize GLX extension (NVIDIA XFree86 driver not found) |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Mon Mar 08, 2004 8:39 am Post subject: |
|
|
In your /etc/X11/XF86Config, search for something like Load "glx". By default it is commented. Uncomment it and give it a go!
[EDIT] Sorry, you say you try to load GLX! Me stupid!
Did you emerge nvidia-kernel AND nvidia-glx? |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Mon Mar 08, 2004 8:56 am Post subject: |
|
|
Cosmin wrote: | In your /etc/X11/XF86Config, search for something like Load "glx". By default it is commented. Uncomment it and give it a go!
[EDIT] Sorry, you say you try to load GLX! Me stupid!
Did you emerge nvidia-kernel AND nvidia-glx? |
yes indeed and successfully i believe. |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Mon Mar 08, 2004 9:52 am Post subject: |
|
|
A friend of mine had the same problem. As far as I could understand, there might be some problems with the kernel modules installed by nvidia. His solution was: go to /lib/modules and find nvidia.o and nvidia.ko and delete them (or rename them, to be safe). Then remerge nvidia-kernel and nvidia-glx. I haven't tried this myself, so please, be careful. And please post your result. |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Mon Mar 08, 2004 10:13 am Post subject: |
|
|
Cosmin wrote: | A friend of mine had the same problem. As far as I could understand, there might be some problems with the kernel modules installed by nvidia. His solution was: go to /lib/modules and find nvidia.o and nvidia.ko and delete them (or rename them, to be safe). Then remerge nvidia-kernel and nvidia-glx. I haven't tried this myself, so please, be careful. And please post your result. |
there are no such files, may i have the full path, please ? |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Mon Mar 08, 2004 11:22 am Post subject: |
|
|
Hmmm, don't know exactly, but you might look into /lib/modules/<your_new_kernel>/misc. And be sure that /usr/src/linux (which is a symlink) points to your kernel. |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Tue Mar 09, 2004 6:47 am Post subject: |
|
|
Cosmin wrote: | Hmmm, don't know exactly, but you might look into /lib/modules/<your_new_kernel>/misc. And be sure that /usr/src/linux (which is a symlink) points to your kernel. |
thanks and i eventually managed to set it up following the online doc _________________ http://www.worldwinner.com/cgi/welcome/21jcc |
|
Back to top |
|
|
|