Skip to content

Instantly share code, notes, and snippets.

@stephenlauck
Created May 30, 2026 23:22
Show Gist options
  • Select an option

  • Save stephenlauck/a88a06bff62be563d28b2571cfe36ab2 to your computer and use it in GitHub Desktop.

Select an option

Save stephenlauck/a88a06bff62be563d28b2571cfe36ab2 to your computer and use it in GitHub Desktop.
Format Drives
export DISK_PATH=/dev/disk/by-id/usb-Sabrent_Dual_SATA_Bridge_*; ls DISK_PATH | xargs -r -I{} -P0 bash -c 'sudo umount /mnt/*; sudo rm -rf /mnt/*; sudo mkfs.ext4 -F {}'; sudo udevadm settle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment