Re: fsck to fix HD problem
On Wed, 25 Jul 2007 07:50:38 +0200 Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > > Hello, > > >> so I decided to use fsck to check my HD. I ran it > >> in the foreground mode with the -y flag. It gives me the below > >> information. My question is - should I worry (it is more a home > >> machine than a real server) and if yes, how can I fix the problem? > > . . . > > > > To do anything more than merely report problems > > you should drop into single-user mode, unmount > > everything except root (hopefully. If it gets angry, > > reboot into single-user mode.) and run fsck (as is > > or with the -y flag if you feel daring.) on the filesystems > > in question. > > Is the single-user mode necessary. As it is a family machine I know > when I am the only one using it. > The fsck output was the normal stuff you see if you pull-out the plug (if you're lucky). Did you check if the background fsck was still running? In practice you rarely need to do do a manual check - most reboots can be handled by a background check, and most cases where it can't are spotted during the initial foreground check and done in the foreground. Just watch the console for unexpected softupdate inconsistencies. If you run fsck with -y, you might as well set "fsck_y_enable=yes" in rc.conf and have it done automatically if the initial preen fails. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck to fix HD problem
On 25/07/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: One little question - when I drop into single-user mode, do I need to mount /usr and /var? Is mount -a OK? Generally, no. Or mount read-only, if you must. When doing ugly repairs, fsck would prefer to not have the filesystem changing under it. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck to fix HD problem
On 25/07/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Hello, >> so I decided to use fsck to check my HD. I ran it >> in the foreground mode with the -y flag. It gives me the below >> information. My question is - should I worry (it is more a home machine >> than a real server) and if yes, how can I fix the problem? > . . . > > To do anything more than merely report problems > you should drop into single-user mode, unmount > everything except root (hopefully. If it gets angry, > reboot into single-user mode.) and run fsck (as is > or with the -y flag if you feel daring.) on the filesystems > in question. Is the single-user mode necessary. As it is a family machine I know when I am the only one using it. Well, fsck-ing /var on a fully multiuser system is hairy, at best, since /var is almost always being written to by something or other. Single user mode is the simplest way of dealing with this, since none of the logging, mail, or one of any of a 10^4 daemons will be trying to write to it, while you're trying to fix it. With mysql, I would assume* many of the same problems with /usr (or /usr/local, if that is its own filesystem). *given that I know meow-all about mysql: where it may wish to write, or what horrible perversions it commits while running. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck to fix HD problem
Hello, >> so I decided to use fsck to check my HD. I ran it >> in the foreground mode with the -y flag. It gives me the below >> information. My question is - should I worry (it is more a home machine >> than a real server) and if yes, how can I fix the problem? > . . . > > To do anything more than merely report problems > you should drop into single-user mode, unmount > everything except root (hopefully. If it gets angry, > reboot into single-user mode.) and run fsck (as is > or with the -y flag if you feel daring.) on the filesystems > in question. Is the single-user mode necessary. As it is a family machine I know when I am the only one using it. > > As an aside, you might want to figure out why your > machine fell over, so as to possibly avoid this in > the future (such as it is). Lack of UPS and sudden power outage. Thank you! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck to fix HD problem
On 25/07/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Hello, I got a Charlie report: +WARNING: / was not properly dismounted +WARNING: /var was not properly dismounted +/var: mount pending error: blocks 8200 files 43 +/usr: mount pending error: blocks 4552 files 6 so I decided to use fsck to check my HD. I ran it in the foreground mode with the -y flag. It gives me the below information. My question is - should I worry (it is more a home machine than a real server) and if yes, how can I fix the problem? . . . To do anything more than merely report problems you should drop into single-user mode, unmount everything except root (hopefully. If it gets angry, reboot into single-user mode.) and run fsck (as is or with the -y flag if you feel daring.) on the filesystems in question. As an aside, you might want to figure out why your machine fell over, so as to possibly avoid this in the future (such as it is). -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"