Let's try something different.  Installed the Raspberry Pi Imager and told
it to install Ubuntu 64-bit desktop, version 21.  Lo and behold, the Pi
boots up from the NVMe SSD - and stays up.  All the customization I'd done
with the previous OS version was lost and had to be redone, but apparently
it just wasn't going to work to copy over the existing filesystem.  Both
the microSD and the SSD are formatted with an ext4 filesystem, but now it
doesn't freeze after 10 - 20 minutes.

Thanks everyone for the thoughts and suggestions.  There doesn't seem to be
a 'smoking gun' that I can point to, just creating the OS from a fresh
start instead of copying it over (with dd) has made it work.  hdparm cached
reads are at about 700 MB/sec and buffered disk reads a little over 200
MB/sec., plenty fast enough for a tiny computer.

On Sat, May 15, 2021 at 6:37 PM Curt Lundgren <[email protected]> wrote:

> Howard, the first suspicion I had was that the SSD was drawing excessive
> power, that's why I connected it to the Pi using a powered USB 3.0 hub.
> That should have eliminated any power-related issues.  As it did when it
> was directly connected, the Pi booted up nicely, but again after 10 - 20
> minutes it locked up.  Even when directly connected, I never saw the little
> lightning bolt icon that would indicate a power problem.
>
> I'm liking your theory Csaba, the drive 'spinning down' idea has merit -
> now to work out dumping the log to the console or an external device…
>
> Thanks everyone for all the deep thought and help.  Who knows, this thing
> might actually be made to work.
>
> On Sat, May 15, 2021 at 4:32 PM Howard White <[email protected]> wrote:
>
>> Curt,
>>
>> The video I listed indicates that some NVMe drives draw more power than
>> the Pi hardware may provide.
>>
>> What I have looked at but not yet endeavored is booting / file serving
>> the Pi via PXE and NFS.  I've printed some web searches out but haven't
>> gotten past that point.
>>
>> A potential topic for a meeting some time?
>>
>> Howard
>>
>> On 5/15/21 12:33 PM, Curt Lundgren wrote:
>> > Thanks Howard, I have been following Jeff Geerling's great videos, and
>> > the Mirko board is certainly packed with features.  The part I'm having
>> > trouble with is why the Pi boots and appears to run quite normally, for
>> > 10 - 20 minutes, then just stops accessing the NVMe drive and hangs.
>> If
>> > I'm streaming music, it continues to stream - but nothing else works.
>> I
>> > don't think it's a thermal issue, because if I unplug power and plug it
>> > right back in, the Pi boots right up again.
>> >
>> > Silly me for thinking this would be something that 'just works…'
>> >
>> > On Sat, May 15, 2021 at 10:13 AM Howard White <[email protected]
>> > <mailto:[email protected]>> wrote:
>> >
>> >     Curt,
>> >
>> >     Sorry I'm slow to respond.  I also struggle with RPi and MicroSD
>> media.
>> >        Here is a YouTube with some info about NVMe kit:
>> >
>> >     <https://www.youtube.com/watch?v=DZMF1n75Km0
>> >     <https://www.youtube.com/watch?v=DZMF1n75Km0>>
>> >
>> >     Howard
>> >
>> >     On 5/10/21 4:38 PM, Curt Lundgren wrote:
>> >      > I've set up a Pi 4 computer with 8 GB of RAM and a pair of 1080P
>> >      > displays as a second place to sit.  No Email, no chats of any
>> kind,
>> >      > rather peaceful, actually.  It's running 64-bit Ubuntu, and
>> >     except for
>> >      > an occasional non-fatal complaint from one application or
>> >     another, it
>> >      > runs rather well.
>> >      >
>> >      > It's booting from a 32 GB high-endurance micro SD.  The problem
>> I've
>> >      > observed with RPi computers in the past is that they destroy
>> >     their boot
>> >      > media.  Most, if not all, micro SD cards do not have wear
>> >     leveling, and
>> >      > so the constant logging and other activity eventually 'wears a
>> >     hole' in
>> >      > the media and it fails.  This didn't keep my original single-core
>> >     700
>> >      > MHz Pi from setting a personal runtime record of 1503 days, but
>> >     it would
>> >      > not boot after power was restored.  Added a new high-endurance
>> >     micro SD
>> >      > card to it, and it came right back up.
>> >      >
>> >      > Back in the Watkins days we were using Pi3 computers for door
>> access
>> >      > control.  Everything was rock-solid reliable - until the boot
>> media
>> >      > would fail.  That's when I hit on the idea of using the
>> >     high-endurance
>> >      > cards.  I've never had one of those fail, knock on wood.
>> >      >
>> >      > I still like the idea of wear leveling, so I bought a 500 GB NVMe
>> >     drive
>> >      > and a USB 3+ enclosure.  It's bloody fast when connected to a Mac
>> >      > laptop, over 900 MB/sec both read and write.  I copied the Ubuntu
>> >     boot
>> >      > image onto it and plugged it into the PI4.  I did have to flash
>> >     the Pi
>> >      > firmware so it will boot either from an SD card or external USB
>> >     media.
>> >      > The Pi boots up and runs beautifully - for 10 to 20 minutes,
>> then it
>> >      > just hangs.  Power cycle and it's good for another 10 - 20
>> minutes.
>> >      >
>> >      > Is it a power issue?  I have a spare USB 3.0 powered hub, so I
>> >     plugged
>> >      > the new drive into the hub and the hub into the Pi.  It looks
>> silly,
>> >      > with the hub being substantially larger than the computer, but it
>> >     boots
>> >      > up, runs beautifully for 10 - 20 minutes - and hangs.  I don't
>> >     think the
>> >      > trouble can be blamed on power supply issues, and I'm stumped as
>> >     to what
>> >      > else might be going on.  I'm back on the high-endurance micro SD
>> >     card,
>> >      > but would like very much to have the added capacity and wear
>> >     leveling
>> >      > the SSD offers.
>> >      >
>> >      > Speed through the hub was dismal at about 32 MB/sec., pretty much
>> >     USB
>> >      > 2.0 performance, but that would have been OK if the Pi would run
>> >     and not
>> >      > lock up.
>> >      >
>> >      > Does anyone have any thoughts as to what might be going on here?
>> >      >
>> >      > Thanks
>> >      > Curt Lundgren
>> >      >
>> >      > --
>> >      > --
>> >      > You received this message because you are subscribed to the
>> Google
>> >      > Groups "NLUG" group.
>> >      > To post to this group, send email to [email protected]
>> >     <mailto:[email protected]>
>> >      > To unsubscribe from this group, send email to
>> >      > [email protected]
>> >     <mailto:nlug-talk%[email protected]>
>> >      > For more options, visit this group at
>> >      > http://groups.google.com/group/nlug-talk?hl=en
>> >     <http://groups.google.com/group/nlug-talk?hl=en>
>> >      > <http://groups.google.com/group/nlug-talk?hl=en
>> >     <http://groups.google.com/group/nlug-talk?hl=en>>
>> >      >
>> >      > ---
>> >      > You received this message because you are subscribed to the
>> Google
>> >      > Groups "NLUG" group.
>> >      > To unsubscribe from this group and stop receiving emails from it,
>> >     send
>> >      > an email to [email protected]
>> >     <mailto:nlug-talk%[email protected]>
>> >      > <mailto:[email protected]
>> >     <mailto:nlug-talk%[email protected]>>.
>> >      > To view this discussion on the web visit
>> >      >
>> >
>> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqCTBaYf4g2BU0g6M7nwg9da-qsXSBAcd72kkZrZ7sVhA%40mail.gmail.com
>> >     <
>> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqCTBaYf4g2BU0g6M7nwg9da-qsXSBAcd72kkZrZ7sVhA%40mail.gmail.com
>> >
>> >
>> >      >
>> >     <
>> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqCTBaYf4g2BU0g6M7nwg9da-qsXSBAcd72kkZrZ7sVhA%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >     <
>> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqCTBaYf4g2BU0g6M7nwg9da-qsXSBAcd72kkZrZ7sVhA%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >>.
>> >
>> >     --
>> >     --
>> >     You received this message because you are subscribed to the Google
>> >     Groups "NLUG" group.
>> >     To post to this group, send email to [email protected]
>> >     <mailto:[email protected]>
>> >     To unsubscribe from this group, send email to
>> >     [email protected]
>> >     <mailto:nlug-talk%[email protected]>
>> >     For more options, visit this group at
>> >     http://groups.google.com/group/nlug-talk?hl=en
>> >     <http://groups.google.com/group/nlug-talk?hl=en>
>> >
>> >     ---
>> >     You received this message because you are subscribed to the Google
>> >     Groups "NLUG" group.
>> >     To unsubscribe from this group and stop receiving emails from it,
>> >     send an email to [email protected]
>> >     <mailto:nlug-talk%[email protected]>.
>> >     To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/nlug-talk/b679e808-b9a6-3535-c894-9d7d443fa9be%40vcch.com
>> >     <
>> https://groups.google.com/d/msgid/nlug-talk/b679e808-b9a6-3535-c894-9d7d443fa9be%40vcch.com
>> >.
>> >
>> > --
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "NLUG" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]
>> > For more options, visit this group at
>> > http://groups.google.com/group/nlug-talk?hl=en
>> > <http://groups.google.com/group/nlug-talk?hl=en>
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups "NLUG" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to [email protected]
>> > <mailto:[email protected]>.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqzFK3j5GK79yDmxNCAnp6n8LmQck_aH_M9N%2BJP%2B%2BpQeQ%40mail.gmail.com
>> > <
>> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqzFK3j5GK79yDmxNCAnp6n8LmQck_aH_M9N%2BJP%2B%2BpQeQ%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >.
>>
>> --
>> --
>> You received this message because you are subscribed to the Google Groups
>> "NLUG" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nlug-talk?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "NLUG" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/nlug-talk/a75ceb5d-4b86-8166-3c38-d79d3f2b998a%40vcch.com
>> .
>>
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nlug-talk/CADPPtroVZjLf9bJE4QSuFuEZKZhdA7Bb-6YLmVXtQEXr6GqFzQ%40mail.gmail.com.

Reply via email to