Monday, July 16, 2012
grub fix
This is what I used to do a grub fix.
Boot up using RHEL4 disk.
Type: linux rescue
Hit OK.
Hit OK.
Clicked NO (for networking)
Hit OK.
At prompt, type: chroot /mnt/sysimage
At prompt, type: grub
At prompt, type: find /boot/grub/stage1 or find /grub/stage1
At prompt, type: root (results or previous step)
example: root (hd0,0)
At prompt, type: setup (hd0)
Note: use results from above, I used what mine was as in the example.
At prompt, type: quit
At prompt, type: exit
At prompt, type: exit
Machine will reboot and grub should be fixed. Make sure you remove disk during reboot.
Hope this is helpful.
Boot up using RHEL4 disk.
Type: linux rescue
Hit OK.
Hit OK.
Clicked NO (for networking)
Hit OK.
At prompt, type: chroot /mnt/sysimage
At prompt, type: grub
At prompt, type: find /boot/grub/stage1 or find /grub/stage1
At prompt, type: root (results or previous step)
example: root (hd0,0)
At prompt, type: setup (hd0)
Note: use results from above, I used what mine was as in the example.
At prompt, type: quit
At prompt, type: exit
At prompt, type: exit
Machine will reboot and grub should be fixed. Make sure you remove disk during reboot.
Hope this is helpful.
Thursday, July 12, 2012
$ nsupdate # tool to do DNS updates (cheat dns for record types) # new primary record for new-name > update add new-name.example.com 48600 IN A 1.2.3.4 > send # the reverse lookup > update add 4.3.2.1.in-addr.arpa 48600 IN PTR new-name.example.com > send # a CNAME (alias) record > update add alias-name.example.com 48600 IN CNAME new-name.example.com > send # a wildcard (handy for app development) > update add *.new-name.example.com 48600 IN CNAME new-name.example.com > send # the delete... use with care > update delete new-name.example.com > send