Live data from Hacker News

Upgrade Raspberry Pi 4 with a NVMe boot drive

alexellisuk.medium.com

81–90 of 99 posts

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#82
post #10

Does anyone know any board that is similar to RPi 4, with 8GB of RAM or more and a SATA port or an nvme slot? ARM would be great.

Odroid has a 4gb with sata ports: https://www.hardkernel.com/shop/odroid-hc4/

The new pi compute module has an 8gb model with a pci-express slot that can take nvme: https://www.raspberrypi.org/products/compute-module-4-io-boa...

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#83
post #69
post #60

One step in this description is not really needed. One can do diskdup from SD card to SSD right from inside the same Pi booted originally for SD card.

Usually not a great idea to make an image of a disk when filesystems on it are mounted writable.

100% agree but I did on Pi few times anyways out of convenience and it worked. For production I will of course use the off-line method.

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#84
post #79

Earlier quoted context omitted.

Thanks for the write up. That was enlightening. PCIe is a really nice "bus" all things considered. At DSSD we liked it so much that we ran it directly to clients, over custom cables & connectors.

What sort of distance are we talking? What sort of devices? Running a PCIe lane to a client seems a little odd to me, but I figure I’m missing context

Up to 2 m over copper, longer over active optical. Why? Because of insanely low latency and very high bandwidth (PCIe gen 3 x4 in 2010!). No kernel involvement, app direct to storage. Way ahead of the time.

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#85
post #23

One needs to login to read. I'm sorry, medium is not a very charitable blog host, and will cost the blog a large part of its audience with these new rules, unfortunately.

"One needs to login to read." Not if Javascript is disabled. No need for cookies either. Alternatively, blocking cdn.client.medium.com where the Javascript is sourced in Developer Tools or via ad blocker, /etc/hosts, DNS, etc. will work, too.

pictures fail to load when I block the domain

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#86
post #73

Earlier quoted context omitted.

Often, most parts will just plain fail to fit, and fit exactly one way. But the keys for the different type of M.2 slots are not large enough on M.2 SATA vs M.2 SSD to prevent them from mixing up. It's easy to force, and forcing it will be fatal for the device. I know this from an expensive lesson I learned, long ago :(

It's not quite that bad. A M.2 SATA SSD will fit into any socket designed for M.2 SATA or M.2 PCIe SSDs, without damage. A M.2 PCIe SSD that only uses two PCIe lanes will fit into any socket designed for M.2 SATA or M.2 PCIe SSDs, without damage. The only way to run into trouble is to force a M.2 PCIe SSD keyed for four lanes of PCIe into a M.2 socket keyed for SATA only with no PCIe lanes. Forcing this requires you…

(Whatever I did; it let out the magic smoke, and the M.2 device was visibly scorched. The 2nd time I ordered the same part and very carefully examined the keying did I realize my error...)

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#87
post #80

Earlier quoted context omitted.

> one bump or connector dangling over the edge of your desk that gets hit by a hip and you have a device reenumeration It’s fun to think about the horrors which might result with similar mistreatment of old school external SCSI hardware. USB is fine; use quality cables and don’t run your computer in a disco if you can help it.

USB cables are some of the worst designed crap I have ever seen in the history of computing. When you plug the cable in, it doesn't make a firm, snug fit, and jiggles around in place. If you press down on it it can even torque the connector right off the PCB. I often have to design 3D printed housing to go around the USB plug housing to hold and lock the plug snugly in place, because the designers of both the USB por…

> jiggles around in place

I don't want to defend USB too heavily (as you say, it is certainly not "industrial grade," but I don't know what the equivalent of something simple and very strong like a Hubbell twist-lock connector would be in data transfer terms, and that's something to contemplate) but this really shouldn't happen with any halfway decent cables or hardware. It doesn't apply to the Raspberry Pi 4 in my experience, or any of my laptops or PCs. Phones and micro-USB are, of course, a special case and uniquely horrible.

> SCSI cables were fine

Except when they weren't, and then you'd have to spend fifty bucks (whatever that equals in 2020 dollars) to test and see if the cable was what was failing you, or the termination, or the jumper settings...

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#89

Earlier quoted context omitted.

"One needs to login to read." Not if Javascript is disabled. No need for cookies either. Alternatively, blocking cdn.client.medium.com where the Javascript is sourced in Developer Tools or via ad blocker, /etc/hosts, DNS, etc. will work, too.

pictures fail to load when I block the domain

Some of the images do not load when Javascript is disabled because the web developer has chosen to include three different-sized copies of the same image and use Javascript to emulate a "zoom" effect.

Quick fix: remove the tags

   curl https://alexellisuk.medium.com/upgrade-your-raspberry-pi-4-with-a-nvme-boot-drive-d9ab4e8aa3c2 |sed 's///g;s///g' > 1.htm

   firefox ./1.htm
Note you can still zoom on these images. Right-click and open the image in a new tab, then zoom. Or you can open the larger versions in a browser tab and then zoom. The full URLs for all different-sized copies of images can be seen with view source.

Re: Upgrade Raspberry Pi 4 with a NVMe boot drive

#90
post #23

One needs to login to read. I'm sorry, medium is not a very charitable blog host, and will cost the blog a large part of its audience with these new rules, unfortunately.

"One needs to login to read." Not if Javascript is disabled. No need for cookies either. Alternatively, blocking cdn.client.medium.com where the Javascript is sourced in Developer Tools or via ad blocker, /etc/hosts, DNS, etc. will work, too.

There's a lot of countermeasures listed here in the responses, including this. :)

Good to know but the default experience matters. I have a beef here and I want the author to know that they need to switch blog host if they want their articles to be out on the open web and not behind logins or whatever.

Post reply on HN