Click to See Complete Forum and Search --> : ext2 failed and my clock is wrong


nanode
02-16-2001, 12:22 PM
I was connected remotely to my box yesterday when my connection got dropped. I assumed the power failed since I couldn't connect all day. When I came home I noticed several warnings about my / partition having errors. (don't recall exact error). I ended up logging in with single user mode and manually doing ext2fsck (whatever that command is) and fixed the problem.

On reboot I noticed the clock was all screwed and it didn't auto-matically mount remote file systems, as it normally does per /etc/fstab

Even if I don't ever uncover why this happened, how can I reset my clock?

Thanks.

Craig McPherson
02-16-2001, 12:50 PM
For your other partitions -- fsck them. They probably still have errors, and need to be fscked before they're mounted.

Set your clock with the date command.

posterboy
02-16-2001, 05:07 PM
Yes, try date MMDDHHMMYYYY
then, add this command
hwclock -systohc
that forces the time you just set into the hardware clock. Without that, it will be wrong on every boot. Ray