Search code examples
unixscsi

echo 1 > sudo /sys/block/sdX/device/delete command


i am trying to delete a scsi disk using below command "echo 1 > sudo /sys/block/sdb/device/delete" when i try to lsscsi after the command,i am still able to see the disk.

That would be great if some one can point where i am going wrong.

Thanks in advance


Solution

  • echo 1 | sudo tee /path/to/file
    

    The command echo 1 >sudo actually create a file named sudo