Sunday, October 11, 2009

Remote upgrade linux RHEL redhat 3 to 4

1. mount the installation cd and copy vmlinuz and initrd.img to /boot renaming them to vmlinuz_remote and initrd_remote.img
2. vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/
initrd /initrd-2.4.21-15.EL.img
title Remote Install
root (hd0,0)
kernel /vmlinuz_remote ks=hd:hda1:/ks.cfg vnc vncconnect=192.168.162.1 ramdisk_size=8192
initrd /initrd_remote.img

replace the above devices with the ones on your system(hd:hda1->points to /boot)
3. vi /boot/ks.cfg
#System language
lang en_US
#Language modules to install
langsupport --default=en_US
#System keyboard
keyboard us
#System mouse
mouse generic3ps/2
#network
network --bootproto static --ip 192.168.162.129 --netmask 255.255.255.0 --gateway 192.168.162.1 --nameserver 192.168.162.1 --hostname l
#Use interactive kickstart installation method
interactive
#Use hard drive installation media USE YOUR OWN HARDDRIVE
harddrive --dir=/iso --partition=hda2 #replace with your own device (this points to /)
bootloader --location=mbr
#Reboot after installation
reboot
#Upgrade existing installation
upgrade
%pre

#!/bin/sh

mkdir /tmp/boot # create mount point
#-USE YOUR OWN HARDDRIVE ADDR
# mount filesystem on /dev/sda1 onto /tmp/boot (hiding mount's boot dir)
# /dev/hda1 point to /boot
mount -t ext3 /dev/hda1 /tmp/boot
# so below here /tmp/boot/... is actually /boot/... on harddrive device
# 'date' preserves original grub.conf through multiple boot attempts
cp /tmp/boot/grub/grub.conf /tmp/boot/grub/grub.conf.$(date"+%Y%m%d-%H%M%S")
cp /tmp/boot/grub/grub.conf /tmp/boot/grub/grub.sve
cp /tmp/boot/grub/grub.bak /tmp/boot/grub/grub.conf

4. put your CD or DVD iso in /iso, they can be multiple isos

5. just to be safe try loading the second option to grub you just added once as below, so if things went wrong you can come back

echo "savedefault --default=1 --once" | grub --batch
reboot

2 comments:

Anonymous said...

How can i wipe windows xp from my laptop and reinstall windows Me -the laptops first software?
I be struck by recently bought a familiar laptop that is old. The person I had bought it from had installed windows xp on it, even though it from the word go came with windows Me. I be to expunge the windows xp because it runs slows on the laptop because it takes up more honour than the windows Me would. Also I want to massacre windows xp because it is an illegal copy. So when I tried to hop to it updates on it, windows would not initiate updates because the windows xp is not genuine. [URL=http://nkleoeu.hostific.com]air refueling tanker competition[/URL]
----------------------------------------------------------------------

Answers :

It's best to scram [URL=http://yiumvbo.hostific.com/jan-miroslaw-bereza.html]jan miroslaw bereza[/URL] Windows XP and impartial upgrade your laptop. It's much better. [URL=http://yfyawde.hostific.com/no-hos-portlanf.html]no hos portlanf[/URL] In addition to, Windows XP is way [URL=http://nkleoeu.hostific.com/k97-edmonton.html]k97 edmonton[/URL] more advisedly then Windows Me. Windows Me is obsolete and many programs that can run with XP, can't [URL=http://ltufakb.hostific.com/jahid-miah.html]jahid miah[/URL] path with Me.
------------------------------
all you participate in to do is addition the windows me disk into the cd drive. then reboot your laptop, when the coal-black [URL=http://hattori.hostific.com/jotul-woodburning-stoves.html]jotul woodburning stoves[/URL] screen with all the info comes up and when it asks u to boot from cd [URL=http://kqieuec.hostific.com/mitch-mustain.html]mitch mustain[/URL] hit any latchkey when it tells you to then put from there !!! I RECOMEND SINCE ITS AN ILLEAGLE TWIN TO WIPE [URL=http://leuqaua.hostific.com/twin-mattress-dimensions.html]twin mattress dimensions[/URL] MANIFEST THE [URL=http://yiumvbo.hostific.com/jan-vleck.html]jan vleck[/URL] CONTINUOUS INSCRUTABLE GOAD WHEN IT ASKS YOU WHICH STIFF [URL=http://biiyaui.hostific.com/eps-r280.html]eps r280[/URL] PROD TO INSTALL IT ON. THEN ADD ALL THE ABOVE SPACE ON THE CLEAR [URL=http://aoryvuo.hostific.com/transfer-roller-for-dell-5110cn.html]transfer roller for dell 5110cn[/URL] FLINTY DRIVE ONTO A DIFFERENT COLUMN SETTING, IT INCLINATION LOOK LIKE C:/ Exposed or something like that

Anonymous said...

Trojan.Deskwizz is a menacing Trojan program that can download harmful files from a remote server and execute them on a compromised PC. Trojan.Deskwizz may also download rogue security software and display fake scans or pop-up adverts. follow these steps Step 1 : Use Registry Editor to Remove Trojan.Deskwizz Registry Values Locate and delete "Trojan.Deskwizz" registry entries: HKEY_LOCAL_MACHINESoftwareMicrosoftWin… Helper Objects{DED99937-DF3F-4ECB-AE37-4D68F7EC… Step 2 : Use Windows Command Prompt to Unregister Trojan.Deskwizz DLL Files Search and unregister "Trojan.Deskwizz" DLL files: nijycom.dll Step 3 : Detect and Delete Other Trojan.Deskwizz Files Remove the "Trojan.Deskwizz" processes files: nijycom.dll [url=http://gordoarsnaui.com]santoramaa[/url]