Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a 1TB Samsung hard disk placed inside of one of those boxes that transform internal SATA hard disks into an external USB disk. The disk is plugged via USB cable to my home server which runs Debian 5.0.3 and linux kernel 2.6.26-2-686.
This disk is used to save some backups and files that we need to access often on different computers of the local network (using WinSCP). Today, something weird is happening. While updating some backups from one Windows Vista box with WinSCP, the connection to the server is lost and all the directories on the disk disappear. The disk kind of freezes.
so .. checking on system log, I find this:
Quote:
Jan 3 15:20:06 BOX4 kernel: [675850.568009] __journal_remove_journal_head: freeing b_frozen_data
Jan 3 15:20:06 BOX4 kernel: [675850.568009] __journal_remove_journal_head: freeing b_committed_data
Jan 3 15:20:06 BOX4 kernel: [675850.568009] __journal_remove_journal_head: freeing b_frozen_data
Jan 3 15:20:06 BOX4 kernel: [675850.568009] __journal_remove_journal_head: freeing b_frozen_data
Jan 3 15:20:06 BOX4 kernel: [675850.568009] __journal_remove_journal_head: freeing b_frozen_data
Jan 3 15:20:06 BOX4 kernel: [675850.568009] __journal_remove_journal_head: freeing b_frozen_data
Jan 3 15:20:06 BOX4 kernel: [675850.568009] Buffer I/O error on device sda1, logical block 122061314
Jan 3 15:20:06 BOX4 kernel: [675850.568009] lost page write due to I/O error on sda1
The disk is not one of those old hard disks, I bought it less than a year ago. I tried to run some diagnostic tools like SMART but self test features and logging is not supported (maybe because it's USB). The disk inside the external box is a SAMSUNG HD103SI. I don't know what to do and we really need this up and running. Also, obviously I mounted it again and tried to perform the SSH backup once again, but it failed again.
Another fact that I would like to refer is that I have a second 1TB SAMSUNG HD154UI hard disk which is only used to store movies and music, and is up and running without any problems, so I wouldn't say it's controllers problem.. !
In fact we've had some power problems arround our hood, the situation repeated for 2 or 3 consecutive days. I remember one of them was in 24th december at night :X
Did the disk got corrupt because of the power failures? It is plugged in a surge-protector, I think that would be enough to have my disk out of troubles (no surges = no problems)... hummm, maybe the sudden shutdown caused by the power loss made something wrong ..?
btw, just to let you know, my disk is using ext3 filesystem
It "could" have become corrupted. Ext3 is a journaled file system meaning it tends to handle power outages pretty well though. I would try running fsck to see if it can fix any errors in the file system.
I think "don't quote me" there is also a -F option you can run at shutdown to force a fsck of your disks on reboot. Depending on your disk sizes, that might mean a while without your server.
This line tells you how much the disk is fragmented and not a problem. The journal appears to be recovered and looks like it should be ready to be mounted and put back online.
Brown outs and dropouts can be just as bad or worse then power surges which surge protectors can not provide any protection from. If you experience lots of power problems an UPS (uninterruptible Power Supply) is recommended.
Already got an UPS, actually I misread your information and what I wanted to say is that the disk was always plugged on an UPS (we here have almost our pc's on a UPS based system). I mounted it, but unfortunately the situation remains the same. Any more suggestions?
If there isn't anything else I can do, I'll move all the data to another temporary disk and buy a new one asap (Assuming that this one just died).
which means that there is nothing wrong with my system, right? What would you recommend me? Buy a new disk? Isn't there anything else I can do to try to get it back to work?
[Edited]
The SSH copy is now perfectly working with the temporary hard disk that I'm using now...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.