Re: [Hampshire] Using NFS root with raspberry pi.

Top Page

Reply to this message
Author: Adam John Trickett via Hampshire
To: Hampshire LUG Discussion List
CC: Adam John Trickett
New-Topics: Re: [Hampshire] Using NFS root with raspberry pi. (Solution)
Subject: Re: [Hampshire] Using NFS root with raspberry pi.

Can't say I've done it recently, but on my Red Hat course we did do remote
booting. I can't remember of the top of my head what we did, but I'm sure NFS
was involved.

However I think it's an interesting idea and I'll have to look it up and see
what I can find as well!

> Thank you for your response I do like the idea of booting over the network
> using PXE however I don’t currently have tufts server set up so was using
> NFS a what I thought would be a quick solution.
> Tell me if you set up the PI to PXE boot can you revery back to the Standard
> SD boot t it won’t PXE boot?
> Tom.
> > On 10 Oct 2023, at 21:14, James Dutton <james.dutton@???> wrote:
> >
> > On Tue, 10 Oct 2023 at 13:04, Tom Gamble via Hampshire
> >
> > <hampshire@???> wrote:
> >> Hi,
> >>
> >> On my Raspberry Pis I’ve had a few issues with SD Cards failing so
> >> thought there would be some mileage in using an NFS root. So if an SD
> >> card fails I can just pop a new card in and my root fs will still be
> >> good.>
> > Hi,
> >
> > I have not tried your approach before. I have only done something
> > called netboot.
> > This is where you boot without an SD card at all.
> > There are some hints on how to do it here:
> >
> > Now, I have not actually done it with a Raspberry PI, only with Linux
> > servers and embedded systems, but the principles are the same.
> > You set up a DHCP server, with parameters that tell it where to find
> > the linux kernel and initrd files etc. it then tftp gets them or http
> > gets them.
> > An interesting aspect of this, is that booting over a 1Gbps network is
> > actually quicker than booting from an SD card.
> > Also if the device crashes, as the files are not stored on the crashed
> > device, the files do not become corrupted at all, so it's really
> > helpful when doing kernel development on an embedded system. It not
> > only reboots quicker, but no files are corrupted, and you get to see
> > the last logs before it crashed.

Adam Trickett
Saint-Malo, Bretagne, France

Wind is a finite resouce and harnessing it would slow the wind
down which would cause temperatures to go up.
    -- Joe Barton
       US House Energy & Commerce Subcommittee member

Please post to: Hampshire@???
Web Interface: