Gentoo Super fast install from LIVEDVD

Steps:
1#boot into the LiveDVD and create your filesystems
open terminal and sudo su –
Code:
fdisk /dev/sda
##and partition your HDD the way u like, format and mount to (/mnt/gentoo and /mnt/gentoo/boot)etc

2# copy the DVD (around 8.5GB)
Code:

eval `grep ‘^ROOT_’ /usr/share/genkernel/defaults/initrd.defaults`
cd /
cp -avx $ROOT_LINKS /mnt/gentoo
cp -avx $ROOT_TREES /mnt/gentoo
cp /etc/passwd /etc/group /mnt/gentoo/etc

3# finish the system and chroot into it.
Code:

mkdir /mnt/gentoo/proc /mnt/gentoo/dev
cd /mnt/gentoo/dev
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
mkdir /mnt/gentoo/sys
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1=”(chroot) $PS1″

4# Configure FSTAB

Configure /etc/fstab
Code:
nano -w /etc/fstab

Code:

/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1

/dev/cdrom /mnt/cdrom auto noauto,user 0 0

proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

5# Mount the LiveDVD and copy kernel image and initramfs
Code:

mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom/
cp /mnt/cdrom/boot/gentoo /boot/kernel
cp /mnt/cdrom/boot/gentoo.igz /boot/initramfs

6# configure and install GRUB

Code:

# nano -w /boot/grub/grub.conf

Code:

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux
root (hd0,0)
kernel /boot/kernel real_root=/dev/sda3
initrd /boot/initramfs

Code:

grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

flags

http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Core_i7_and_Core_i5.2C_Xeon_55xx

http://dev.gentoo.org/~neddyseagoon/HOWTO_DVD_10.0_10.1.xml

Advertisements