Skip to content

Instantly share code, notes, and snippets.

@abrasive
abrasive / nvme-target-client.sh
Last active April 3, 2024 01:58
Set up a laptop as NVMe-over-fabric target in initramfs
#!/bin/sh
# This imports the nvme device exported by the nvme-target-mode.sh script
set -e
sudo modprobe nvme-fabrics
sudo ifconfig thunderbolt0 10.99.1.1 netmask 255.255.255.0 up
sudo nvme connect -t tcp -a 10.99.1.2 -n mylaptopname -s 4420