Marc's Public Blog - Linux Hacking


vvv Click on the categories below to see other topic specific pages vvv



>>> Back to post index <<<

π 2025-07-07 01:01 in Btrfs, Linux, Linuxha
I was looking at replacing some ancient servers with lower power rPi5s after figuring out that they could finally work with proper NVME andSata drives so you can have a real server setup on reliable storage, including raid1, btrfs backups and all that good stuff.

what a Pi5 looks like
what a Pi5 looks like

>>> Go Here for How to Setup Serial Boot And All The Config Files <<<

This is what I found with some research:

  • https://www.amazon.com/dp/B0B5RJHYFD or https://www.amazon.com/dp/B0D8BCWHPT are M2 M key SATA cards. They're really cool, you get 6 SATA slots from a single M2 slot (without power, though). But make sure you buy the class (M version), not B+M (2 notches). As I found out the hard way, B+M M2 does plug into M key slots, but are really only compatible with B key slots (details explained here: https://www.partitionwizard.com/partitionmanager/m2-m-vs-bm.html )
  • https://www.amazon.com/dp/B0D9D2W8MF very cool 4x M2 M-key slot expansion board, compatible with the M2 NGFF Sata Cards mentioned above. The one thing to note is that it does not provide 5V power anywhere, which is unfortunate if you want to then plug SATA drives (flash 2.5" sata recommended for power reasons).
  • https://www.amazon.com/dp/B0D3LP9KBH is a more compact 2 M2 NVME expansion board. It also could support SATA drives if you use the Sata M-key PMP mentioned above
  • https://www.amazon.com/dp/B0DQV74TDJ GeeekPi S021 SATA 3.0x2 for Raspberry Pi 5, with Active Cooler and 12V 6A Power Supply is probably the best if you only need to plug 1 or 2 SATA drives that require actual power. This board does provide power for actual spinning rust drives should you want that.
  • https://www.amazon.com/dp/B0D2VTL9G5 GeeekPi Dual FPC PCIe HAT for Raspberry Pi 5, B12 HAT 1 to 2 PCIe Interface allows you to use 2 of the boards above should you wish although routing cables is going to be a bit rough
  • https://www.amazon.com/dp/B0D5CRSC64 GeeekPi Quad FPC PCIe HAT for Raspberry Pi 5, B14 HAT 1 to 4 PCIe Interface is the same but with 4 outputs. The seller shows how to use this for single NVME boards, and honestly you probably don't want to do this when you can buy the dual or quad NVME board all in one.
  • While the PCIe expander cards are cool, and I have successfully managed to make a quad NVME board work at the same time as the SATA board listed below, in real life you'd likely want to use the dual or quad NVME board and find 5V power for your SATA drive. This is fine as long as you have a lower power drive (laptop flash) as you can steal 5V from the GPIO pins, but if you need more amps for a real drive or multiple flash sata drives, then you want to look into a real external 5V power supply like the one provided in the GeeekPi S021 SATA 3.0x2 for Raspberry Pi 5, with Active Cooler and 12V 6A Power Supply mentioned above.

    Realistically you may also be perfectly happy with a USB 3 to 2.5" SATA adapter since it can still give you 3GB/s for flash drives

    This is what it looks like:

    you can easily have 24 sata drives with the 4X NVME board and 6 sata port NVME M2 cards
    you can easily have 24 sata drives with the 4X NVME board and 6 sata port NVME M2 cards

    yes, I got excited when I got both SATA and NVME on a Raspberry Pi 5 ;)
    yes, I got excited when I got both SATA and NVME on a Raspberry Pi 5 ;)

    this PCIe doubler can be used to chain other cards (not needed for me)
    this PCIe doubler can be used to chain other cards (not needed for me)

    if you want, you can use the dedicated SATA card plugged directly into the Pi or PCIe doubler
    if you want, you can use the dedicated SATA card plugged directly into the Pi or PCIe doubler

    be careful not to get a SATA PMP M2 (B+M with too notches) as those won't work. The other is a PCI sata card
    be careful not to get a SATA PMP M2 (B+M with too notches) as those won't work. The other is a PCI sata card

    when using M2 Sata cards, you can steal 5V power from GPIO
    when using M2 Sata cards, you can steal 5V power from GPIO

    For my 2nd server, I just used a dual NVME HAT and SATA card with 6 ports
    For my 2nd server, I just used a dual NVME HAT and SATA card with 6 ports

    different vendors of SATA cards of either 5 or 6 ports
    different vendors of SATA cards of either 5 or 6 ports

    the PCIe 2 or 4 port expanders allow lots of stacking, but the example they give with single NVME M2 adapters, are useless since I bought a 4 slot NVME HAT
    the PCIe 2 or 4 port expanders allow lots of stacking, but the example they give with single NVME M2 adapters, are useless since I bought a 4 slot NVME HAT

    >>> Go Here for How to Setup Serial Boot And All The Config Files <<<

    You can also see that video on how to turn a Pi5 into a high performance NAS:


    More pages: July 2002 February 2004 March 2004 November 2004 April 2005 August 2005 January 2006 July 2006 August 2007 November 2007 December 2007 January 2008 October 2008 November 2008 December 2008 January 2009 May 2009 July 2009 August 2009 September 2009 November 2009 December 2009 January 2010 March 2010 April 2010 June 2010 August 2010 October 2010 January 2011 July 2011 August 2011 December 2011 January 2012 March 2012 May 2012 August 2012 December 2012 January 2013 March 2013 May 2013 September 2013 November 2013 January 2014 March 2014 April 2014 May 2014 October 2014 January 2015 March 2015 May 2015 January 2016 February 2016 March 2016 June 2016 July 2016 August 2016 October 2016 January 2017 September 2017 January 2018 March 2018 December 2018 January 2019 August 2019 January 2020 May 2020 January 2021 September 2021 March 2023 April 2023 December 2023 June 2024 September 2024 November 2024 July 2025 August 2025 October 2025 November 2025

    >>> Back to post index <<<

    Contact Email