Livecd/Installation/quickanddirty

Version 1 (modified by jensp, 2 months ago)

added old quick and dirty howto

Quick and dirty Pentoo Installation Guide

Setup your disk

Determine your disk and partition it through fdisk
Format the root partition as you'd like it, and mount it on /mnt/gentoo Format the boot partition as you'd like it, and mount it on /mnt/gentoo/boot

Copy the files

Copy all dirs from /mnt/livecd to /mnt/gentoo
Copy /etc /root to /mnt/gentoo

# \cp -avf /mnt/livecd/* /etc /root /mnt/gentoo

Copy /usr/portage to /mnt/gentoo/usr

# \cp -avf /usr/portage /mnt/gentoo/usr

Configure your "installation"

Mount proc and dev on /mnt/gentoo

# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

Chroot on /mnt/gentoo

# chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
# export PS1="(chroot) $PS1"

Configure your /etc/fstab and /boot/grub/grub.conf /etc/conf.d/*

Remove autoconfig from default runlevel

# rc-update del autoconfig default

Add keymaps to default

# rc-update add keymaps default

And edit /etc/conf.d/keymaps

# mv /etc/inittab.old /etc/inittab
# mv /etc/init.d/halt.sh.orig /etc/init.d/halt.sh
# passwd root

Change your password

Setup bootloader

Setup grub by editing it's configuration file. If your hdd is /dev/sda it would look like this:

# grep -v rootfs /proc/mounts > /etc/mtab
# grub-install --no-floppy /dev/sda

Finish installation

Exit from chroot, umount /mnt/gentoo/*

# exit
# umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo

Reboot Enjoy