external usb drive is readonly after some time

Hi all,

I have mounted an external usb drive on my linux (SLES 10) server. This works fine, besides one thing, after some the drive is readonly only. I have to unmount and remount the drive to make it writeable again.

If I try to touch a file I get the following errors (commands issued one after the other)::

touch test
touch: cannot touch `test': Input/output error
touch test
touch: cannot touch `test': Read-only file system

Does anybody know how to make the drive readwriteable every time?
Are there any timeout parameters fore mount or sleepmodes for the usb drive I can change?

Thank you.
Best regards,
gnurl
LVL 7
gnurlAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gnurlAuthor Commented:
Hi oklit,

I am not running FAT on this drive ...
But I get similar messages as mentioned in the link:

EXT3-fs warning (device sdb1): ext3_clear_journal_err: Filesystem error recorded from previous mount: IO failure
EXT3-fs warning (device sdb1): ext3_clear_journal_err: Marking fs in need of filesystem check.
EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
EXT3 FS on sdb1, internal journal
EXT3-fs: recovery complete.

I am running e2fsck, I am going to see if it helps..

Thank you.

Best regards
gnurl
0
gnurlAuthor Commented:
Hi oklit,

I ran e2fschk, this fixed the errors for the filesystem, but did not help with mounting the filesystem as readonly after some time ...
Adding the disk to /etc/fstab did not change this as well ...

Are there some other suggestions?

Thank you.
Best regards
gnurl
0
gnurlAuthor Commented:
Hi all,

I could solve the problem...
please have a look at
http://alienghic.livejournal.com/382903.html
The disk has a feature that set it to sleepmode every 15 min and it does not wake up correctly.
So I changed the SCSI parameters:
sdparm -a /dev/sdb1
sdparm --clear STANDBY /dev/sdb1
sdparm --clear SCT /dev/sdb1

Thank you.
Best regards
gnurl
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.