LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-22-2010, 01:21 PM   #1
devaras
LQ Newbie
 
Registered: Feb 2010
Distribution: Fedora 12
Posts: 2

Rep: Reputation: 0
Unable to mount root via NFS


Hi

I am trying to mount my embedded linux target(ARM9 with Uboot) via NFS on my host m/c and have been running into multiple issues. My host machine runs Fedora 12. The initial problem I ran into was the following:


bootserver=255.255.255.255, rootserver=192.207.1.2, rootpath=
Looking up port of RPC 100003/2 on 192.207.1.2
Looking up port of RPC 100005/1 on 192.207.1.2
VFS: Mounted root (nfs filesystem).
Freeing init memory: 120K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

This indicated that it is unable to find the init file under the targetfs(links to the actual buildroot dirs and busybox) /sbin and /bin. I realized that the username I was logged in as did not have permissions setup. So I went ahead and did
chmod 777 (on all files/folders in the targetfs/bin and targetfs/sbin).

Now it no longer complains about the init however it has gone backwards and now gives me the following:

VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 262144 mtdblock0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

I also used chown to change the owner of these files/exes to my login just in case, but I still get the same error. I do notice that the root= option in the bootargs for Uboot is not set, I do not know if it even matters? I did restart NFS services also.

Any help on how to troubleshoot and fix this would be very much appreciated, I have been grappling with this for a whole week and read several posts but haven't found anything yet to make the problem go away.

Thank you!
Deva
 
Old 02-23-2010, 09:16 PM   #2
devaras
LQ Newbie
 
Registered: Feb 2010
Distribution: Fedora 12
Posts: 2

Original Poster
Rep: Reputation: 0
So..
I tried several things based on web/LQ posts/threads no luck. So I started re-installing my target s/w from scratch and I got this error:


[root@localhost /]# chmod 777 /tftpboot
chmod: cannot access `/tftpboot': No such file or directory


Does this relate to the fact that I am unable to boot the kernel on the target? How do I fix this?

This is my build:

Linux localhost.localdomain 2.6.31.12-174.2.22.fc12.i686.PAE #1 SMP Fri Feb 19 19:10:04 UTC 2010 i686 i686 i386 GNU/Linux

Help sincerely appreciated!
Deva.
 
  


Reply



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
Unable to boot RHEL 5.2 and Unable to mount root file system in rescue mode vknemannavar Red Hat 5 01-29-2010 09:05 AM
VFS: unable to mount root via NFS... gireya Linux From Scratch 0 09-05-2008 06:29 PM
VFS: Unable to mount root fs via NFS, trying floppy aleksanteri Linux From Scratch 0 10-26-2007 12:00 AM
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 09:26 AM
Unable to mount via NFS calebsg Linux - Networking 3 03-11-2005 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration