#!/bin/bash # USB fix for Seagate FreeAgent Go drives, based on: # http://ubuntuforums.org/showthread.php?t=494673 # Note the "*" in the second path is for the SCSI ID number, # which increments for each hotplug event, while the main # argument is the kernel device name (eg, sdc). echo 1024 > /sys/block/$1/device/max_sectors echo 1 > /sys/block/$1/device/scsi_disk/*/allow_restart