LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-29-2008, 07:28 PM   #1
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Rep: Reputation: 15
Using Seagate FreeAgent external hard drives


Just posting this for the benefit of anyone who might have the same problem, the only partly relevant thread I could find here was this

I recently got given a 160G Seagate FreeAgent Go usb external harddrive. I reformatted it to ext3, but was getting heaps of weird errors, and the file system kept getting corrupted forcing me to run e2fsck almost every time I unmounted it. Syslog looked like this

Code:
Jun 28 15:33:12 hex kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
Jun 28 15:43:04 hex kernel: end_request: I/O error, dev sdb, sector 12503
Jun 28 15:43:04 hex kernel: Buffer I/O error on device sdb1, logical block 1555
Jun 28 15:43:04 hex kernel: lost page write due to I/O error on sdb1
Jun 28 15:43:04 hex kernel: end_request: I/O error, dev sdb, sector 12503
Jun 28 15:43:04 hex kernel: Buffer I/O error on device sdb1, logical block 1555
Jun 28 15:43:04 hex kernel: lost page write due to I/O error on sdb1
Jun 28 15:43:04 hex kernel: end_request: I/O error, dev sdb, sector 12503
Jun 28 15:43:04 hex kernel: Buffer I/O error on device sdb1, logical block 1555
Jun 28 15:43:04 hex kernel: lost page write due to I/O error on sdb1
Jun 28 16:13:08 hex kernel: JBD: Clearing recovery information on journal
Turns out, it's the drive going into standby mode and spinning down, and linux not restarting it before trying to write data. Basically the solution is to set the 'allow_restart' flag in /sys/class/scsi_disk/*/allow_restart.
There are ways to do this here and here. I think the second page has the better idea with a udev rule. I added this to /etc/udev/rules.d/99-local.rules:
Code:
# Seagate FreeAgent allow_restart fix for i/o errors
# from http://www.nslu2-linux.org/wiki/FAQ/DealWithAutoSpinDownOnSeagateFreeAgent
SUBSYSTEMS=="scsi",DRIVERS=="sd",ATTRS{vendor}=="Seagate*",ATTRS{model}=="FreeAgent*",RUN+="/bin/sh -c 'echo 1 > /sys/class/scsi_disk/%k/allow_restart'"
I haven't had any more problems so far.

Last edited by samwise17; 06-29-2008 at 07:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Seagate Freeagent Pro: hardware that comes with proprietary software LXer Syndicated Linux News 0 06-21-2008 11:50 PM
Fun with a Seagate FreeAgent Pro rmuniz9336 Linux - Hardware 12 02-24-2008 02:10 PM
Seagate FreeAgent 320GB Won't Load On Sabayon n0data Linux - Hardware 0 09-18-2007 06:49 AM
Seagate SATA 8m hard drives not recognized by RH9 mbhakta Linux - Hardware 3 01-30-2004 04:57 PM
Redhat 7.3 and Seagate hard drives Gener123 Linux - Hardware 7 08-28-2002 04:34 PM


All times are GMT -5. The time now is 05:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration