Re: [SLUG] Gentoo/Redhat: time
On Sun, 2003-07-06 at 15:17, Brett wrote: > I have found some documented examples of using "clock" and "hwclock" (it's > amazing what you find after a computer break:-) , but they still do not > seem to work (and give the same I gave previously). I have tried the following: > > hwclock --set --date="7 Jul 2003 14:32" > hwclock --set --date="07 Jul 2003 14:32" > clock --set --date="7 Jul 2003 14:32" > clock --set --date="07 Jul 2003 14:32" > > AFAIK these commands are valid, can anybody tell me why they might not be > OR does anybody know of a statically linked binary of a network time program? > The following works for me on Mandrake 9.1: >date --set "07/06/03 16:24:00" #Note that date uses US date format. >hwclock --systohc I hope that it works the same for you... Cheers, John... -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Gentoo/Redhat: time
At 11:32 AM 6/07/2003, you wrote: >Greetings, >I am currently attempting to install Gentoo, over a modem, using Redhat >boot disks (Gentoo doesn't have a boot disk option as yet, though some >poeple have had success in building Gentoo using other distro bootdisks >(slackware/redhat)). I am trying to bootstrap the distro ("bootstrap.sh"), >however, due to a buggy motherboard/BIOS the build is failing due to >incorrect time (the hardware clock will not keep dates after Y2K, the clock >is reset to 1994 dates after every reboot). And in reply to myself; I have found some documented examples of using "clock" and "hwclock" (it's amazing what you find after a computer break:-) , but they still do not seem to work (and give the same I gave previously). I have tried the following: hwclock --set --date="7 Jul 2003 14:32" hwclock --set --date="07 Jul 2003 14:32" clock --set --date="7 Jul 2003 14:32" clock --set --date="07 Jul 2003 14:32" AFAIK these commands are valid, can anybody tell me why they might not be OR does anybody know of a statically linked binary of a network time program? TIA Brett -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Gentoo/Redhat: time
Greetings, I am currently attempting to install Gentoo, over a modem, using Redhat boot disks (Gentoo doesn't have a boot disk option as yet, though some poeple have had success in building Gentoo using other distro bootdisks (slackware/redhat)). I am trying to bootstrap the distro ("bootstrap.sh"), however, due to a buggy motherboard/BIOS the build is failing due to incorrect time (the hardware clock will not keep dates after Y2K, the clock is reset to 1994 dates after every reboot). The redhat bootdisk I am using has a program "clock" but I am not sure of the exact argument format to pass to set the clock to a reasonable time. An example is as follows: { # clock --set --date=01012003 BusyBox v0.60.5 (2003.01.24-24:44+) muti-call library Usage: date [OPTION]... [+FORMAT] The date command issues by hwclock returned with unexpected results. The command was: date --date="01012003" +seconds-into-epoch=%s The response was No usable set-to time. cannot set clock. } Redhat uses Busybox as part of their boot disk image(as above?), unfortunately busybox does not have documentation for the clock command (http://www.busybox.net/downloads/BusyBox.html) Output of "clock --help" (of which I can be bothered to type...): { Usage hwclock [function] [options...] Funtions: --help ... --show ... --set set the rtc to the time given with --date --hctosys ... --systobc ... --getepoch print out the kernel hardware clock epoch value --setepoch set the kernel hardware clock epoch value to the value given with --epoch --version ... Options: --utc ... --localtime ... --direction ... --badyear Ignores rtc's year because the bios is broken --date specifies the time to which to set the hardware clock --epoch=year specifies the year which is the beginning of the hardware clock's epoch value --noadjfile ... } I have also tried the following (where XX is a time/number): { #clock --badyear /var/lib/lastdate: No such file or directory #echo Wed Jul 6 11:11:11 2003 -0.175775 seconds >lastdate #clock --badyear Wed Jul 6 XX:XX:XX 1994 -0.175775 } But that doesn't seem to work either (and gives no reason why it shouldn't) Please, somebody put me out of my misery, I don't want to have to re-install redhat :-) Brett -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug