I do not have an allow_restart setting for my external apparently. But all this can be automated: Udev Rule: BUS=="scsi", SYSFS{vendor}=="WD", RUN+="/usr/bin/usbhdfix %k"
usbhdfix: #!/bin/bash echo 1024 > /sys/block/$1/device/max_sectors temp=expr substr $1 3 1 echo 1 > /sys/class/scsi_disk/$temp\:0\:0\:0/allow_restart
I do not have an allow_restart setting for my external apparently. But all this can be automated: =="WD", RUN+="/ usr/bin/ usbhdfix %k"
Udev Rule:
BUS=="scsi", SYSFS{vendor}
usbhdfix: $1/device/ max_sectors scsi_disk/ $temp\: 0\:0\:0/ allow_restart
#!/bin/bash
echo 1024 > /sys/block/
temp=expr substr $1 3 1
echo 1 > /sys/class/