Deutsch English Français Italiano |
<vn071v$27uga$6@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher <tnp@invalid.invalid> Newsgroups: comp.sys.raspberry-pi Subject: Re: How to boot from SD but run from USB? Date: Fri, 24 Jan 2025 14:11:11 +0000 Organization: A little, after lunch Lines: 48 Message-ID: <vn071v$27uga$6@dont-email.me> References: <nfra6l-cif1.ln1@q957.zbmc.eu> <vmvm45$25d2c$1@dont-email.me> <d6fc6l-sjk1.ln1@q957.zbmc.eu> <vn03rk$27uga$3@dont-email.me> <b0ic6l-r7l1.ln1@q957.zbmc.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 24 Jan 2025 15:11:12 +0100 (CET) Injection-Info: dont-email.me; posting-host="5af49c680f799441de4f1696bcbc9123"; logging-data="2357770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hpwI8EVVdOxAx2T1nHxOkbCiU2gpoe9A=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:6ceCFB774BGEsWd4ll+mwEc5UZQ= In-Reply-To: <b0ic6l-r7l1.ln1@q957.zbmc.eu> Content-Language: en-GB Bytes: 2936 On 24/01/2025 13:43, Chris Green wrote: > The Natural Philosopher <tnp@invalid.invalid> wrote: >> On 24/01/2025 12:55, Chris Green wrote: >>> The Natural Philosopher <tnp@invalid.invalid> wrote: >>>> >>>> But frankly its almost always easier to install everything on the USB >>>> drive and remove the SDcard altogether. >>>> >>> As I understand it that's not possible with Pi before Pi 2 version 1.2 >>> or something like that. Basically Pi 3 and onwards can simply boot >>> from USB, earlier ones can't. >>> >> >> Yes, that is my understanding also. I think there was a time when you >> had to boot from SD and run a comm,and to change a flag in the firmware >> to allow USB only boot. >> >> I have a Pi 4B and its supremely ecstatic booting from USB. And it's a >> totally simple setup >> > Yes, but my original question was (intended anyway) about booting an > early Pi such that it actually runs from USB after booting from the SD > card so that SD card wear isn't an issue. > Well I think that has been covered adequately as well. Hack the boot partition on the SD card to tell it to use the USB for booting and hack the fstab entry to tell it to remount the USB as root after booting. Or a combination thereof The SD card VFAT partition will remain mounted on /boot/firmware and so can be upgraded automagically If it has bootcode.bin it should look at the USB to boot from. Which works with middle aged pis. Late models I believe don't need bootcode.bin. Very early models cant boot USB. There you have no option but to boot onto the SDcard and edit the SDCARD /etc/fstab to remount the USB drive as root. -- Climate Change: Socialism wearing a lab coat.