Comment 48 for bug 61235

Revision history for this message
SnowX (snowx1000) wrote :

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