Saturday, June 25, 2011

Installing Gentoo from within Gentoo

Install new SATA Drive and make sure it is detected during BIOS Startup

Use fdisk /dev/sdX to create partitions for boot, swap and root exactly as it is on the current gentoo setup on this new HDD

Create a new folder in /mnt e.g. mkdir /mnt/NEW_LINUX in the current setup
begin from the gentoo installation instructions point 6 - there is NO NEED TO DOWNLOAD A ISO CD --> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6

you can copy the existing make.conf file from /etc/make.conf to /mnt/NEW_LINUX/etc/make.conf

Where there is reference to /gentoo/ for paths, change this appropriately to /NEW_LINUX/ e.g.

Code Listing 1.4: Mounting /proc and /dev
# mount -t proc none /mnt/gentoo/proc
# mount --rbind /dev /mnt/gentoo/dev

should be mount -t proc none /mnt/NEW_LINUX/proc

Follow the instructions on the link - Chapter 6 - Gentoo Linux Installation - Stage 3 tarball.

Also, copy over from /usr/portage/distfiles/* to /mnt/NEW_LINUX/portage/distfiles/ - saves downloading all package files again.

If you get Circular dependency issues, emerge the one package that is causing an issue using the appropriate use file e.g. USE="-someflag" emerge somepackage

some packages to emerge
emerge kdebase-meta

0 Comments:

Post a Comment

<< Home