You are not logged in.

#1 2011-03-20 15:00:14

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Alternating "file system check failed" error on SD card /home

Hello,

I have a problem with my Acer Aspire one, which I have set up with a /home partition on an XFS filesystem SD card. On each first boot, it throws this error:

*****************  FILESYSTEM CHECK FAILED  ****************
*                                                          *
*  Please repair manually and reboot. Note that the root   *
*  file system is currently mounted read-only. To remount  *
*  it read-write type: mount -n -o remount,rw /            *
*  When you exit the maintenance shell the system will     *
*  reboot automatically.                                   *
*                                                          *
************************************************************

If I then eject and re-insert the SD card, and reboot the computer, it (usually) boots to the desktop as expected. It occasionally takes more than one try.

My /etc/fstab looks like this:

#aufs                   /             aufs      noauto                 0      0
none                   /dev/pts      devpts    defaults               0      0
none                   /dev/shm      tmpfs     defaults               0      0

/dev/sda1 / ext4 defaults 0 1
/dev/mmcblk0p1 /home xfs defaults,noatime,nodiratime 0 1

I don't know how to start with this. I have tried turning the filecheck for the SD card off (as the XFS fsck is apparently designed to do nothing - cf. http://linux.die.net/man/8/fsck.xfs ), but I am then presented with different /home than my own (which apparently resides on my hard drive).

I have already looked at this thread: https://bbs.archlinux.org/viewtopic.php?id=111443 , but there does not seem to be an answer. Could it be that my SD card is being mounted too early?

Please let me know if I have not provided enough information.

Last edited by STEELBAS (2011-04-24 09:41:55)

Offline

#2 2011-03-20 17:33:03

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 675
Website

Re: Alternating "file system check failed" error on SD card /home

Here's what fstab(5) has to say:

The sixth field (fs_passno).
              This field is used by the fsck(8) program to determine the order
              in which filesystem checks are done at reboot  time.   The  root
              filesystem  should be specified with a fs_passno of 1, and other
              filesystems should have a fs_passno of 2.
  Filesystems within  a
              drive will be checked sequentially, but filesystems on different
              drives will be checked at the same time to  utilize  parallelism
              available in the hardware.  If the sixth field is not present or
              zero, a value of zero is returned and fsck will assume that  the
              filesystem does not need to be checked.

Therefore, I'd suggest changing that '1' in the last column of the /home entry to a '2'.

Offline

#3 2011-03-20 18:12:16

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

Oooh. I'll do that and report back. Thanks!

Offline

#4 2011-03-23 12:23:59

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

Well, it didn't fix it. Didn't break it, too, just the same behaviour..

Any other ideas?

Offline

#5 2011-03-29 13:21:27

szympro
Member
Registered: 2011-02-13
Posts: 18

Re: Alternating "file system check failed" error on SD card /home

I'm having the exact same problem, SD card with XFS, mounted as /home. I have changed the fs_passno from 1 to 2 and still the same. I have had this problem since the beginning, which is for the last year or two. Any ideas of how to fix it STEELBAS?

Last edited by szympro (2011-03-29 13:23:32)

Offline

#6 2011-03-29 13:31:50

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

Alas, I haven't been able to solve it yet, either. I'm still hoping for someone who knows more about this than myself to give some advice smile
But it's promising that I'm apparently not the only one with this problem!

Offline

#7 2011-03-29 17:06:20

redden0t8
Member
Registered: 2011-01-27
Posts: 42

Re: Alternating "file system check failed" error on SD card /home

Edit - I didn't read your first post carefully enough, but here's another idea:

- fsck.xfs is failing even though the man page says it doesn't actually check anything, it's just supposed to report success.
- If you disable checking, the device still won't mount

It sounds kind of like your cardreader isn't being initialized quickly enough.

There's probably a better solution, but for the time being, a possible workaround would be to remove it from your fstab entirely and just add the appropriate mount command to your rc.local.

Last edited by redden0t8 (2011-03-29 17:16:06)

Offline

#8 2011-03-29 20:55:06

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

Hmm... I can try, but would that work? Seeing as the SD card doubles as my /home partition..

Offline

#9 2011-03-30 00:05:21

redden0t8
Member
Registered: 2011-01-27
Posts: 42

Re: Alternating "file system check failed" error on SD card /home

/home shouldn't be needed until login time, rc.local gets executed before then.  I'd give it a try and see.  If nothing else, it might reveal something new about the problem that'll help figure it out.

Offline

#10 2011-04-01 16:49:10

szympro
Member
Registered: 2011-02-13
Posts: 18

Re: Alternating "file system check failed" error on SD card /home

Must say that adding it to rc.local did not break anything, so so far I am happy with the result. The thing with filesystem check fialed did always appear after some hours of PC being turned off, so I will report if everything is ok in a day or two.
This is that I have written in rc.local:

sudo mount -U a29d49bs-f159-4881-b593-9716ced005db -t xfs -o defaults,noatime /home

Last edited by szympro (2011-04-01 16:49:51)

Offline

#11 2011-04-01 18:35:58

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

I hadn't had time to look up the commands to add to rc.local, but I'll now do what you did and test it with you smile

Update: Well, at least it booted up fine the first time. I'll post here in a few days as well.

Last edited by STEELBAS (2011-04-01 19:06:20)

Offline

#12 2011-04-03 14:24:07

szympro
Member
Registered: 2011-02-13
Posts: 18

Re: Alternating "file system check failed" error on SD card /home

redden0t8 wrote:

Edit - I didn't read your first post carefully enough, but here's another idea:

- fsck.xfs is failing even though the man page says it doesn't actually check anything, it's just supposed to report success.
- If you disable checking, the device still won't mount

It sounds kind of like your cardreader isn't being initialized quickly enough.

There's probably a better solution, but for the time being, a possible workaround would be to remove it from your fstab entirely and just add the appropriate mount command to your rc.local.

Well, a couple of days have passed and everything seems to run nice and smooth. So, I call it, at least for now, solved. Thanks for your help redden0t8! If my problem comes to life again, you can be sure I will write about it smile

Offline

#13 2011-04-04 19:43:27

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

Well, same for me: No more troubles. I'll add a link to this thread on the Acer Aspire One wiki page.

Still, this doesn't seem like normal nor acceptable behaviour. Should a bug report be filed anywhere?

Offline

#14 2011-04-04 19:57:31

redden0t8
Member
Registered: 2011-01-27
Posts: 42

Re: Alternating "file system check failed" error on SD card /home

No, this is definitely not normal behaviour.  The next step would be to track down why the card reader is taking so long to get itself working.  Unfortunately, I don't have much experience with card readers so someone else will have to step in, sorry sad

Offline

#15 2011-04-23 08:51:44

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

szympro: Do you also experience occasional not working of the above method? Once in a while, I still boot to the wrong /home partition, which then appears to fix itself after a couple of reboots.

Offline

#16 2011-04-24 10:09:35

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

Hrm, well, I'm removing the [Solved] flag for now: The solution above is increasingly not working for me. When it does not work, I end up with a different /home than the one on my SD card (which apparently resides on my hard drive).

I have noticed the following at the bottom of the init messages:

setpci: Missing width
Try 'setpci --help' for more information.'

When the wrong /home is mounted, it also says something like "mount: no partition found" below the setpci messages. Switching to a different tty using ctrl+alt+f2, strangely, sometimes does mount the correct /home partition after I log in on the tty, but not always. Logging out from the desktop loaded on tty7 and logging back in then works.

Offline

#17 2011-10-04 02:32:32

JoesCat
Member
From: Richmond
Registered: 2011-10-03
Posts: 1
Website

Re: Alternating "file system check failed" error on SD card /home

I searched around for some information concerning the SD cards on the Acer laptop and came across this thread here. After reading comment#10,

szympro wrote:

Must say that adding it to rc.local did not break anything, so so far I am happy with the result.

I more or less did the same thing.

( umount -l /home; sleep 3; mount /dev/mmcblk0p0 -t xfs -o defaults,noatime /home )&

The above statement has round brackets followed by the ampersand so that you shouldn't need to wait to process other things in the meantime.
I don't think you need the sudo since it is an rc file which is handled by root (but then I'm running Mageia 1 which may possibly, but unlikely, behave a little differently than debian based distros) so I might be wrong about the sudo assumption.

I think some users in this thread may be having some problems if /home is currently a different partition, so you likely need to umount it first before trying to mount the new external partition. SDcards are slow, like USB storage, and you'll note that /etc/rc.sysinit also allows some sleep time for USB mounts.

I think perhaps the best place to fix this is probably in /etc/rc.sysinit since that is where everything seems to do mount operations, but this seems like a simple fix worth trying out....Seems to work okay so far, but reading other people's replies, seems I'lll try it out for a while to see if it's good.

Offline

#18 2012-07-15 14:54:13

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 70

Re: Alternating "file system check failed" error on SD card /home

JoesCat, your method seems to be the one working best, so far. I have added the information to the wiki.

Offline

Board footer

Powered by FluxBB