* [gentoo-user] running e2fsck pre-mount @ 2009-09-09 2:37 Maxim Wexler 2009-09-09 7:02 ` Alan McKinnon 2009-09-09 8:28 ` Willie Wong 0 siblings, 2 replies; 6+ messages in thread From: Maxim Wexler @ 2009-09-09 2:37 UTC (permalink / raw To: gentoo-user Hi group, On an Asus netbook during boot after the line *checking all filesystems there'll be a message something like 'filesystem mounted 36 times without being checked. Check forced' then something like '17.1% non-contiguous' then a long delay. Then one of two things, either a message saying 'errors fixed' or a forced reboot. What does it mean 'without being checked' Does the boot process expect a filesystem check, in this case e2fsck? Why should their be errors. I shut the machine like this '#shutdown -h(or -r) now' Everything is unmounted and the machine turns off without a glitch that I''m aware of. How can I run e2fsck on the drives *before* they are mounted, if that is what is required here? Maxim ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] running e2fsck pre-mount 2009-09-09 2:37 [gentoo-user] running e2fsck pre-mount Maxim Wexler @ 2009-09-09 7:02 ` Alan McKinnon 2009-09-09 8:28 ` Willie Wong 1 sibling, 0 replies; 6+ messages in thread From: Alan McKinnon @ 2009-09-09 7:02 UTC (permalink / raw To: gentoo-user On Wednesday 09 September 2009 04:37:49 Maxim Wexler wrote: > Hi group, > > On an Asus netbook during boot after the line > > *checking all filesystems > > there'll be a message something like 'filesystem mounted 36 times > without being checked. Check forced' then something like '17.1% > non-contiguous' then a long delay. Then one of two things, either a > message saying 'errors fixed' or a forced reboot. > > What does it mean 'without being checked' Does the boot process expect > a filesystem check, in this case e2fsck? Why should their be errors. I > shut the machine like this '#shutdown -h(or -r) now' Everything is > unmounted and the machine turns off without a glitch that I''m aware > of. > > How can I run e2fsck on the drives *before* they are mounted, if that > is what is required here? It's a feature of ext2. It doesn't have much in the way of internal checks when being used to make sure that it's structure is consistent, so the default setting is to force a full fsck after every X mounts or after every Y days, which ever comes first. You do not want to disable it. It is your safety net and the expected behaviour. It is working correctly as the fs is being checked before it is mounted. Read the various man pages related to ext2 for more info. -- alan dot mckinnon at gmail dot com ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] running e2fsck pre-mount 2009-09-09 2:37 [gentoo-user] running e2fsck pre-mount Maxim Wexler 2009-09-09 7:02 ` Alan McKinnon @ 2009-09-09 8:28 ` Willie Wong 2009-09-09 21:12 ` Maxim Wexler 1 sibling, 1 reply; 6+ messages in thread From: Willie Wong @ 2009-09-09 8:28 UTC (permalink / raw To: gentoo-user On Tue, Sep 08, 2009 at 08:37:49PM -0600, Penguin Lover Maxim Wexler squawked: > On an Asus netbook during boot after the line > > *checking all filesystems > > there'll be a message something like 'filesystem mounted 36 times > without being checked. Check forced' then something like '17.1% > non-contiguous' then a long delay. Then one of two things, either a > message saying 'errors fixed' or a forced reboot. A feature of mount and a feature of e2fs. First, from man 5 fstab The sixth field, (fs_passno), is used by the fsck(8) program to deter- mine 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. Now you know what the last dangling number in /etc/fstab is for! For most of my partitions, except the root one, I set it to 0. Mostly because that my partitions are in ReiserFS. However, it is probably set to 0 in your case, otherwise the message you saw wouldn't have happened. Next, if you look at man tune2fs, you'd see the option '-c', which (just quoting the relevant parts) Adjust the number of mounts after which the filesystem will be checked by e2fsck. If [the number] is 0 or -1, the number of times the filesystem is mounted will be disregarded by e2fsck. > > What does it mean 'without being checked' Does the boot process expect > a filesystem check, in this case e2fsck? Why should their be errors. I > shut the machine like this '#shutdown -h(or -r) now' Everything is > unmounted and the machine turns off without a glitch that I''m aware > of. More from the manpage for tune2fs: You should strongly consider the consequences of disabling mount-count-dependent checking entirely. Bad disk drives, cables, memory, and kernel bugs could all corrupt a filesystem without makrking the filesystem dirty or in error. If you are using journaling on your filesystem, your filesystem will never be marked dirty, so it will not normally be checked. A filesystem error detected by the kernel will still force an fsck on the next reboot, but it may already be too late to prevent data loss at that point. Basically, since you don't ask the filesystems to be checked on every boot, to make sure your fs's are sane, ext2/3 will ask the filesystems to be checked every X mounts (also every T period of time, see the -i option in tune2fs for details). Like the manpage said, sh*t happens, and it is better that you check once in a while. However, if every single time when the fsck is run you either reboot or there is an error... there maybe something wrong with your hardware. If you don't have smartd installed, you should consider it, your data on the harddrive should be worth your time. W -- There was a man in a nuthouse who constantly scared off all the newcomers with a menacing smile and the dreadful-sounding phrase, "I differentiate you! I differentiate you!"--invariably the newcomer would cower in the corner and stay far away from the man. However, one day another man came in and confronted the first man. Of course, the first began yelling at the newcomer, "I differentiate you! I differentiate you!" But it had no effect on the newcomer. The man yelled "I differentiate you!" several times to no avail. Finally, he broke down in tears. "Why, why?!?" he asked. The second man stated simply, "I'm e^x." Sortir en Pantoufles: up 1006 days, 7:02 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] running e2fsck pre-mount 2009-09-09 8:28 ` Willie Wong @ 2009-09-09 21:12 ` Maxim Wexler 2009-09-10 22:58 ` Stroller 0 siblings, 1 reply; 6+ messages in thread From: Maxim Wexler @ 2009-09-09 21:12 UTC (permalink / raw To: gentoo-user > However, if every single time when the fsck is run you either reboot > or there is an error... there maybe something wrong with your > hardware. If you don't have smartd installed, you should consider it, > your data on the harddrive should be worth your time. > IIRC the el cheapo ssd on this netbook is not smart-capable. Can't remember where I read that. I'll check again. Thanks for the tips. mw ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] running e2fsck pre-mount 2009-09-09 21:12 ` Maxim Wexler @ 2009-09-10 22:58 ` Stroller 2009-09-10 23:43 ` [gentoo-user] " Holger Hoffstaette 0 siblings, 1 reply; 6+ messages in thread From: Stroller @ 2009-09-10 22:58 UTC (permalink / raw To: gentoo-user On 9 Sep 2009, at 22:12, Maxim Wexler wrote: > ... > IIRC the el cheapo ssd on this netbook is not smart-capable. Can't > remember where I read that. I have this notion that SMART may not be a feature of SSDs or flash memory. I am happy ti be corrected on this. Stroller. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: running e2fsck pre-mount 2009-09-10 22:58 ` Stroller @ 2009-09-10 23:43 ` Holger Hoffstaette 0 siblings, 0 replies; 6+ messages in thread From: Holger Hoffstaette @ 2009-09-10 23:43 UTC (permalink / raw To: gentoo-user On Thu, 10 Sep 2009 23:58:06 +0100, Stroller wrote: > > On 9 Sep 2009, at 22:12, Maxim Wexler wrote: >> ... >> IIRC the el cheapo ssd on this netbook is not smart-capable. Can't >> remember where I read that. > > I have this notion that SMART may not be a feature of SSDs or flash > memory. I am happy ti be corrected on this. My Intel X25-M has SMART and shows sensible values, so it's probably just missing from the cheap drives. -h ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-11 0:40 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-09-09 2:37 [gentoo-user] running e2fsck pre-mount Maxim Wexler 2009-09-09 7:02 ` Alan McKinnon 2009-09-09 8:28 ` Willie Wong 2009-09-09 21:12 ` Maxim Wexler 2009-09-10 22:58 ` Stroller 2009-09-10 23:43 ` [gentoo-user] " Holger Hoffstaette
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox