NFS root problems

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

NFS root problems

Postby keithspg » Mon Feb 23, 2015 4:31 pm

I an running a version of Arch on a rpi as a hifi device. (RuneOS). I have an NFS root partiton with kernel 3.12.26-1-ARCH and boot it with this cmdline.txt boot command:
$this->bbcode_second_pass_code('', 'root=/dev/nfs nfsroot=192.168.2.198:/mnt/first_NAS/rune_pi_nfs,rsize=32768,wsize=32768,tcp ip=dhcp rootfstype=nfs console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop')

I updated the kernel to 3.18.7-7-ARCH by pacman -Syu and cannot get it to boot from NFS. All works when I boot from a local partition, but NFS fails. I get complaints that it cannot mount the root partition. I read that the new kernel is sensitive to NFS version as it needs the vers=3 and rw parameters added. I tried to put this in the cmdline.txt, but must have the command or syntax wrong. My current cmdline.txt is:$this->bbcode_second_pass_code('', 'root=/dev/nfs nfsroot=192.168.2.198:/mnt/first_NAS/rune_pi_nfs,rsize=32768,wsize=32768,tcp,vers=3,rw ip=dhcp rootfstype=nfs console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop
')

Can anyone point out where I am going wrong? The error I get is in the picture
Attachments
boot_messages.jpg
boot_messages.jpg (223.81 KiB) Viewed 5146 times
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: NFS root problems

Postby WarheadsSE » Mon Feb 23, 2015 6:05 pm

[note] http://www.runeaudio.com/certified-devices/

Hmm, looks like it doesn't understand the NFS mount. Does this, perhaps, require an initrd?

Also, does your cmdline.txt actually have a line break in it?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NFS root problems

Postby keithspg » Mon Feb 23, 2015 8:01 pm

warheadsSE,

Thanks for the comment!. No, I do not think the cmdline.txt has a line break. I'll check it tonight. I think it is a copy/paste artifact.

If it does require an initrd, isn't it curious that it does not require it with 3.12.26 but does with 3.18.7?

I initially tried it on one pi, but then started experimenting with another because the first one is less accessible. Any other thoughts? I was going to set one up from scratch tonight and try again.

Keith
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: NFS root problems

Postby WarheadsSE » Mon Feb 23, 2015 8:20 pm

It is odd. But, if that linebreak is really there, that's a massive problem.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NFS root problems

Postby keithspg » Mon Feb 23, 2015 10:04 pm

I just logged in and according to pico/nano, it is one line. I'll mess with it again tonight. Any other thoughts appreciated. I'll strip off all the options and add them back one at a time and see if I accidentally cross it.
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Solved: NFS root problems

Postby keithspg » Tue Feb 24, 2015 2:40 pm

I 'fixed it'. The original cmd line did not work. I pared it down a bit (fewer options) and it connected first time:
$this->bbcode_second_pass_code('', 'root=/dev/nfs nfsroot=192.168.2.198:/mnt/first_NAS/rune_pi_too vers=3 rw ip=dhcp rootfstype=nfs console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop')

This gives me what I need *and* it will actually reboot itself from the command line. Previously I had to unplug it to get it to reboot with NFS root.

Also as I did not find it anywhere else, you need to delete/move the /etc/netctl/eth0 file from the /etc/netctl directory (Most of the discussions of nfs root do not utilize netctl and this detail is missing)
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 12 guests