From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viacheslav Dubeyko Subject: Re: hfs+: unable to access random files (after a while) Date: Wed, 06 May 2015 13:06:05 -0700 Message-ID: <1430942765.2766.23.camel@slavad-ubuntu-14.04> References: <1430930677.2766.2.camel@slavad-ubuntu-14.04> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org To: Luc Pionchon Return-path: Received: from mail-pa0-f44.google.com ([209.85.220.44]:36244 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbbEFUGI (ORCPT ); Wed, 6 May 2015 16:06:08 -0400 Received: by pabsx10 with SMTP id sx10so18613628pab.3 for ; Wed, 06 May 2015 13:06:07 -0700 (PDT) In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, 2015-05-06 at 19:33 +0200, Luc Pionchon wrote: > On 6 May 2015 at 18:44, Viacheslav Dubeyko wrote: > > On Wed, 2015-05-06 at 11:41 +0200, Luc Pionchon wrote: > >> Hi, > >> > >> my system randomly fails to access (random) files on a HFS+ partition. > >> > >> Could anybody help me to identify the issue? > >> > >> > >> I have a HFS+ partition shared between Linux and OSX. > >> I created it with OSX Disk Utility as HFS+, Case sensitive, Not Journaled. > >> > > > > Does this partition live on HDD or SSD? > > It's a SSD > Yes, I suppose that the reason of your issue is SSD drive itself. You have very different HFS+ error messages. It looks like that you have I/O errors after trying to generate the read/write requests. I assume that your syslog contains such error messages too. And I think that it is the primary reason of the issue. My last SSD drive worked well one year only. Now I can read from partitions on device but any write operations fail. So, sometimes a SSD drive can behave itself in very tricky way. > > > Are you sure that your SSD is alive (if partition lives on SSD)? > > I do not know what means "alive". How can I check? > > The whole system is on this SSD, in a MacBook 2.1: > / and /home as ext4, linux swap, OSX partition, EFI partition, > and the faulty partition. > Usually, S.M.A.R.T should provide information about SSD drive's health. You can use smartmontools (for example, smartctl utility). But, frankly speaking, I think that it needs to treat a file system behavior in wise way for understanding a drive healthiness very frequently. If a file system emits error messages in a really crazy way then the most probable reason of an issue can be a drive itself. > > > > If you'll move partition on another device the issue will be > > reproducible? > > How can I move a partition? > You can use different specialized tools. I think you can use Gparted, dd, rsync or cpio utilities under Linux. I think you can find the description of using with tools for moving a partition in the Internet. > Would it help if I create a partition of the same type on a USB drive, > and see if I get similar errors? > > I just have another SSD, is it ok? > Or should I try to get a USB HDD? > It is possible to use any valid device. But HDD sounds as more reliable way for me. But, finally, it's up to you. Thanks, Vyacheslav Dubeyko.