Created
September 15, 2024 06:56
-
-
Save epcim/f271212e031202d040ff8128804d4b40 to your computer and use it in GitHub Desktop.
stop disk in linux - hot swap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for hdd | |
device=sata4; sudo sh -c "echo 1 > /sys/block/${device}/device/delete" | |
# for usb | |
udisksctl power-off -b /dev/sdd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment