Skip to contentSkip to conversation

seagate drive and i/o errors

DISCUSSION Littlefield, Tyler 2 participants 2 messages Oct 21, 2011 – Nov 1, 2011

lore
Share & tools
lore
#0 lore raw

Hello all,
I have a quick question. When I do a ls on this drive and it's spun down, i get an i/o error. I'm curious if there's a way to write a module or do something to make the drive wake up when I do a r/w request on it? I've had an external and it never had this problem. I also know i could modify the scsi params to make it not sleep, but that doesn't work and that is not the best of ideas anyway. I like it sleeping, I don't even mind waiting for an LS. It's just hard to manage when i have to umount -l the directory, then figure out what sd* dev it's on.

Signature · 7 lines
Take care,
Ty
Web: http://tds-solutions.net
The Aspen project: a light-weight barebones mud engine
http://code.google.com/p/aspenmud

Sent from my toaster.
#1 lore raw

care to describe the error? i suspect it may be hardware error.
just post your dmesg after u plug in the hardware device. perhaps do
a lsusb -vv and show us the details of the drive?

For automatically mounting filesystem, if u are on ubuntu:

https://help.ubuntu.com/community/Fstab

(just update the fstab file) is one option.

Alternatively is automount (and using autofs kernel module) is another
option. If u are on linux kernel 3.1.0 (mine) the kernel module is
called autofs4, not sure what is the difference, but nevertheless just do a "modprobe autofs" (not default loaded for me):

https://help.ubuntu.com/community/Autofs

Quoted 26 lines · Tyler

Hello all,
I have a quick question. When I do a ls on this drive and it's spun down, i get an i/o error. I'm curious if there's a way to write a module or do something to make the drive wake up when I do a r/w request on it? I've had an external and it never had this problem. I also know i could modify the scsi params to make it not sleep, but that doesn't work and that is not the best of ideas anyway. I like it sleeping, I don't even mind waiting for an LS. It's just hard to manage when i have to umount -l the directory, then figure out what sd* dev it's on.

--

Take care,
Ty
Web: http://tds-solutions.net
The Aspen project: a light-weight barebones mud engine
http://code.google.com/p/aspenmud

Sent from my toaster.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 2 lines
Regards,
Peter Teoh