A disk drive can include a data storage disk, a head, an acceleration
sensor, and a controller. The head is configured to write data on the
disk. The acceleration sensor generates an acceleration signal that is
indicative of acceleration of the disk drive. The controller determines
when the disk drive is being subjected to a vibration condition
determination. The controller can inhibit writing of data through the
head onto the disk based on comparison of the acceleration signal to the
threshold value.