LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-23-2010, 06:27 PM   #1
Panceisto
LQ Newbie
 
Registered: Mar 2010
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Error `gave up waiting for root device`/ can't boot kernel


Hi all,

I needed to use CIFS for accessing a NTFS network share.

I decided to include CIFS in the kernel and tried compiling and installing it.

Now when I (try to) boot in my new kernel with CIFS support, I get the message: gave up looking for root device.

What do I do next?

Thanks
 
Old 05-23-2010, 06:38 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
Need some more infotmation.

What distro are you running and what kernel did you try and recompile?

When you recompiled your kernel did you make a kernel image and a initramfs image as well or did you just make a single kernel image?

What boot loader are you using?

I have never personally seen this message before. I would have expected something like unable to mount root device blah blah blah but not this. Then again I am only familiar with using grub and not using lilo so that may be it I dunno. From just seeing this message I would guess that you do not have the module for hard drive / hardware compiled into your kernel.
 
Old 05-24-2010, 04:55 AM   #3
Panceisto
LQ Newbie
 
Registered: Mar 2010
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Hi

I'm running Debian stable (including some unstable packages). The kernel I'm trying to get to work is 2.6.32.

Quote:
When you recompiled your kernel did you make a kernel image and a initramfs image as well or did you just make a single kernel image?
Following a tutorial I first issued these commands:

Code:
make modules modules_install bzImage install
I couldn't boot into the kernel. It said it couldn't find a file called modules.dep. However, this file did exist.

I saw I was missing an initrd file. Then I issued:

Code:
update_initramfs -c -k 2.6.32
I can't remember exactly, but at that stage I got this error:

`mounting none on /dev failed`.
To fix that one I changed a kernel option (CONFIG_DEVTMPFS=y) and reinstalled the recompiled kernel, only to get the error I mentioned in title.

Now when I delete the initrd file and dereference it from Grub's menu.lst, I get a couple of errors, of which this is the first one:

Root-NFS: no NFS server available, giving up

The computer then halts.
 
Old 05-24-2010, 05:06 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

In Debian you can use a 'simplified' solution to compile a kernel. I've done it on several occasions and has never failed me. Below is the procedure I follow normally which I found on the internet.

First prepare your Debian installation.
Code:
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.X.tar.bz2
tar xjf linux-2.6.X.tar.bz2
cd linux-2.6.X/
make menuconfig
where X is the kernel's minor version number.
It is normally a good idea to take the configuration of your existing (working!) kernel 2.6 as a starting point for the configuration of your new kernel. Usually the current kernel configuration is saved in a file under boot, e.g. boot/config-2.6.X.
Exit the menu and run the following:
Code:
make-kpkg clean
fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image
where you can change custom.1.0 to something else if you want it.
If the compilation exits with an error, run:
Code:
make clean
and start over again from the make menuconfig command.
If all finishes well then you can run:
Code:
dpkg -i kernel-image-2.6.11.7_custom.1.0_i386.deb
to install the new kernel and perform all necessary steps like changing initram, adding to Grub boot menu, etc. Reboot your system into the new kernel and check if the options you selected are available.

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-24-2010, 02:17 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
Wow the build for the kernel in that system is strange. All I ever do is download the kernel unpack it then run make menuconfig exit the menu after configureing it then run make make modules_install and then copy the new kernel to the /boot with a special name like mainkern since grub boots that kernel first. Of course I always keep a backup of the old kernel around just in case.
 
Old 05-25-2010, 01:22 PM   #6
Panceisto
LQ Newbie
 
Registered: Mar 2010
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you Eric and Exvor for your reponses.

Eric, I followed your instructions and it's working. This time it took a lot longer for the kernel to compile.

Bart

Last edited by Panceisto; 05-25-2010 at 02:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 1 minute boot delay 'waiting for device sda5 to appear' jaymz69 Mandriva 9 04-20-2011 06:21 PM
Ubuntu server. Gave up waiting for root device avtandil_k Linux - Newbie 1 04-05-2010 03:41 PM
Kernel Panic on boot - VFS cannot open root device JenovaProject Linux From Scratch 3 02-29-2008 12:32 AM
Kernel 2.6.22.5: waiting for root file system drpixel404 Linux - General 12 09-19-2007 10:31 AM
waiting for device to appear boot problem Cogvos Suse/Novell 2 10-17-2005 07:37 PM


All times are GMT -5. The time now is 03:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration