You are not logged in.
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
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
Oooh. I'll do that and report back. Thanks!
Offline
Well, it didn't fix it. Didn't break it, too, just the same behaviour..
Any other ideas?
Offline
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
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
But it's promising that I'm apparently not the only one with this problem!
Offline
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
Hmm... I can try, but would that work? Seeing as the SD card doubles as my /home partition..
Offline
/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
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
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
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
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 mountIt 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
Offline
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
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
Offline
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
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
I searched around for some information concerning the SD cards on the Acer laptop and came across this thread here. After reading comment#10,
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
JoesCat, your method seems to be the one working best, so far. I have added the information to the wiki.
Offline