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?
 
gnurlConnect With a Mentor Author 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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.