[Linux]linux删除scsi设备

使用lsscsi查找要解挂载盘的ID:

 

 

 

 

拼接echo 1 > /sys/class/scsi_device/DISK_ID/device/delete;命令删除磁盘:

echo 1 > /sys/class/scsi_device/32\:0\:3\:0/device/delete;

echo 1 > /sys/class/scsi_device/32\:0\:4\:0/device/delete;

 

posted @ 2019-10-09 17:51  夜歌乘年少  阅读(2033)  评论(0编辑  收藏  举报