This is a page of "How to" solve some computer problems that may happen.
P = problem; S = solution
[root@tube40 ~]# emacs /etc/ntp.confThe /etc/ntp.conf file is the main configuration file for Linux NTP in which we place the IP addresses of the servers we want to use. Here we only use one server:
server ntp.tohoku.ac.jp # A stratum 1 server at tohoku.ac.jp #server ntp.redhat.com # A stratum 2 server at redhat.comWe have to restart the NTP process every time we make a change to the configuration file for the changes to take effect on the running process.
[root@tube40 ~]# chkconfig ntpd on
[root@tube40 ~]# /etc/init.d/ntpd start [root@tube40 ~]# /etc/init.d/ntpd stop [root@tube40 ~]# /etc/init.d/ntpd restart
[root@tube40 ~]# /etc/init.d/ntpd stop Shutting down ntpd: [ OK ] [root@tube40 ~]# /usr/sbin/ntpdate -u ntp.tohoku.ac.jp 19 Jan 16:11:08 ntpdate[23079]: adjust time server 130.34.11.117 offset 0.016601 sec [root@tube40 ~]# /usr/sbin/ntpdate -u ntp.tohoku.ac.jp 19 Jan 16:11:09 ntpdate[23080]: adjust time server 130.34.11.117 offset 0.015737 sec [root@tube40 ~]# /usr/sbin/ntpdate -u ntp.tohoku.ac.jp 19 Jan 16:11:13 ntpdate[23081]: adjust time server 130.34.11.117 offset 0.014081 sec [root@tube40 ~]# /etc/init.d/ntpd start Starting ntpd: [ OK ]
Since we do not know what is the process of mount the file. we can not change mtab to snapshot. For a moment, we force mount /home1 and /rsaito on /tmp/home1, /tmp/rsaito
/etc/rc5.d/S28autofs stop mkdir /tmp/home1 mkdir /tmp/rsaito mount -n 192.168.2.100:/home1 /tmp/home1 mount -n 192.168.2.100:/rsaito /tmp/rsaito df
/rsaito/bin/pxe-mount
tube30:/nfsboot/root/etc/mtab
This is a firewall problem of windows.
control panel -> firewall -> add new port ->
Name Esound Port 16001 TCP
This is due to mounting problem again (mount NFS). After checking mount status, it is found that a network harddisk was not unmounted nicely before turning off.
# mount
# umount -f /mnt/backup
# sync # sync # sync
comment out one line in /etc/auto.misc # home1 172.17.4.134:/home1-old
./S28autofs forcerestart
I also delete in /etc/exports
the requests from 172.17.4.184 (nuguraha) 172.17.4.188 (mahabubu) and 172.17.4.127 (furu).
exportfs -a
we also need to restart nfs /etc/rc5.d/S60nfs restart
Then many selection of OS appears. Select one of OS, and press E. Then select kernel and press E again. Then you can edit the command for starting kernel and add "single" in the last of the command. Finally select "b" for booting and single user mode appears. Make /etc/passwd files and exit and runlevel 5 is recovers.
Even if we used NIS, we should not delete /etc/passwd /etc/group and /etc/shadow.