Advanced

Fsck errors in the Linux filesystem on my OpenBSD laptop NOT caused by OpenBSD

Posted by Steven_Rosenber on · 3 comments
Click; By Steven Rosenberg
Mail this story
Print this story

been able to have OpenBSD's /etc/fstab automatically mount the ext2 filesystem on my Compaq Armada 7770dmt's hard drive with no difficulty lately, but every couple of days or so I get a message while booting OpenBSD that says the Linux filesystem is not clean and that I should run fsck on it. I then boot Puppy Linux 2.13, run e2fsck on the partition, the errors are cleared up, and all is well until a few more days pass.

Full Story

  Nav
» Read more about: Story Type: Tutorial

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (3)

It could be that Puppy Linux is powering down too soon after unmounting. It might be that the disks cache has a few I/O's pending when it loses power. Is the disk spinning when the power goes off? Try poking around in the init shutdown scripts and find the part where it unmounts and try putting a /usr/bin/sleep 30 in there (after the unmount to give it another 30 seconds).
How to invoke /usr/bin/sleep if all disks are unmounted?
Good question, I think the root partition gets remounted as read only.

Edit: Slackware is doing this in rc.0 (which is a BSD style init script)

# This never hurts again (especially since root-on-LVM always fails # to deactivate the / logical volume... but at least it was # remounted as read-only first) /bin/sync

# sleep 3 fixes problems with some hard drives that don't # otherwise finish syncing before reboot or poweroff /bin/sleep 3

# This is to ensure all processes have completed on SMP machines: wait

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post