Thursday, December 3, 2009

Upgrade FreeBSD 7.2 to 8.0 using csup

I finally did it upgrade my box from 7.2 to 8.0
here some step for you guys

1 - Edit your supfile file

# cp /usr/share/examples/cvsup/standard-supfile /root/supfile.8
# ee /root/supfile.8



find and change this line

*default host=cvsup2.jp.FreeBSD.org

and

*default release=cvs tag=RELENG_8_0

save n close this file

csup your box using this command
# csup /root/supfile.8

to build freebsd file system enter :

# cd /usr/src
# make cleanworld && make cleandir

if you have problem when you make cleanworld && make cleandir please csup using normal csup and than try back csup /root/supfile.8.

# make buildworld

after that build and install your new / custom kernel :

# make buildkernel
# make installkernel


after finish REBOOT your box and at bootloader section please choose 4 (single mode) to finish the upgrade.


after you login as a single user you will get something like this (/sbin/sh). For me i use this :


csh


than mount

# mount -a -t ufs

and after that run mergemaster

# mergemaster -p


WARNING !!!
Be careful with /etc/passwd, /etc/group and other files in base system. Verify each file before installing new version or merging exiting configuration files.

than you need to install FreeBSD Base System

# cd /usr/src
# make installworld

after finish run :

# mergemaster -i

WARNING !!!
Be careful with /etc/passwd, /etc/group and other files in base system. Verify each file before installing new version or merging exiting configuration files.

after finish reboot your system

after finish start you box as usual. Please check your status :

# uname -a
# tail -f /var/log/messages

than upgrade your ports :

# portsnap fetch update
# vi /usr/ports/UPDATING
# portmaster -Da

than your box is up to date!

Thanks to nixcraft for the great article!

No comments:

Post a Comment