From a569676273f64ee775504c3f4be7159026b8925e Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 30 Jan 2024 00:17:11 +1100 Subject: [PATCH] dmsetup-hack --- hacks/dmsetup-hack | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 hacks/dmsetup-hack diff --git a/hacks/dmsetup-hack b/hacks/dmsetup-hack new file mode 100755 index 0000000..a4a334c --- /dev/null +++ b/hacks/dmsetup-hack @@ -0,0 +1,6 @@ +#!/bin/bash + +DEVNAME="ST3000DM001-Z1F4RTWN_then_WD15EADS-WMAVU0714940" +echo -e '0 5858433934 linear /dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F4RTWN-part3 0\n5858433934 2928175821 linear /dev/nbd0 0' > "/tmp/$DEVNAME" +dmsetup create "$DEVNAME" --verbose --table "/tmp/$DEVNAME" + -- 2.39.2