1and1 rh9 notes

From Atomicorp Wiki
Jump to: navigation, search

These are some of my original rh9 conversion notes on a 1and1 box.

1) lilo is the bootloader

2) lilo has symlink paths to the original kernel (/vmlimuz -> /boot)

3) / is ext3, all else is xfs

4) ethernet controller is a via-rhine card (/etc/rc.modules)

5) lilo will not have the entry added

cd /home

 mkdir newfs
 cd newfs/
 rsync -av --exclude '/home/newfs/' / .
 tar zcvfp ../newfs.tgz *
 # back up newfs.tgz to the 1and1 backup server
 # reboot into rescue mode 
 fdisk /dev/hda
   delete partitions 5, 6, and 7
   create a new logical partition 5
   use all the space
   write and quit
 # you need to reboot the system for this to go into effect
 # make a file system on /dev/hda5, xfs or ext3
 mkfs.xfs -f /dev/hda5
 mkdir /mnt/newfs
 cd /mnt/newfs
 # now we need to fix hda1, which will become the new /boot
 # no need to format, it will cause extra trouble later
 mkdir boot
 mount /dev/hda1 boot
 cd boot
 rm -rf *
 mkdir lost+found
 cd ..
 # download the backup
 tar zxvfp newfs.tgz
 # fix /etc/fstab
 vi etc/fstab
 # remove references to /usr, /var, etc. It should now look like this

/dev/hda5 / xfs defaults,usrquota 1 1 /dev/hda1 /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/hda2 swap swap defaults 0 0

Personal tools