Prerequisites: 1. download GentooLiveDVD10.1 (Gentoo 10 anniversary edition) 2. x86 download location: Alibaba ..
Prerequisites:
1. download Gentoo Live DVD 10.1 (Gentoo 10 anniversary)
2. x86 location: http://mirrors.sohu.com/gentoo/releases/x86/10.1/livedvd-x86-amd64-32ul-10.1.iso
3. x64 download location: http://mirrors.sohu.com/gentoo/releases/amd64/10.1/livedvd-amd64-multilib-10.1.iso
Installation steps:
1. split the magnetic zone
2. format the partition
3. mount the partition
4. copy the Live DVD Gentoo file
5. switch the environment to the hard disk
6. modify the root password
7. install grub to mbr
8. set, annotate, and disable services
9. copy the kernel to/boot
10. modify/etc/fstab
11. edit/boot/grub. conf.
12. reboot and exit the CD
13. complete Gentoo Live DVD installation
LiveDVD disc boot, no X-Window boot, faster installation
Boot: gentoo nox
Split magnetic zone
Here is boot 100 M, SWAP 1G, and ROOT 79G. in fact, ROOT can be split into 10G. if it is not installed! Insurance is bigger ??? /P>
Livecd ~ # Fdisk/dev/sda
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 1
First cylinder (15-10443, default 15): 1
Last cylinder, + cylinders or + size {K, M, G} (15-10443, default 10443): + 100 M
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 2
First cylinder (15-10443, default 15): 15
Last cylinder, + cylinders or + size {K, M, G} (15-10443, default 10443): + 1G
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 3
First cylinder (15-10443, default 15): 147
Last cylinder, + cylinders or + size {K, M, G} (15-10443, default 10443): 10443
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap/Solaris)
Command (m for help): p
Disk/dev/sda: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0x52a68f74
Device Boot Start End Blocks Id System
/Dev/sda1 1 14 112423 + 83 Linux
/Dev/sda2 15 146 1060290 82 Linux swap/Solaris
/Dev/sda3 147 10443 82710652 + 83 Linux
Command (m for help): wq
Format the partition
Mkfs. ext3/dev/sda1
Mkswap/dev/sda2
Mkfs. ext4/dev/sda3
Mount partition
Swapon/dev/sda2
Mount/dev/sda3/mnt/gentoo
Mkdir/mnt/gentoo/boot
Mount/dev/sda1/mnt/gentoo/boot
Copy the Live DVD Gentoo file
Cp-KP/mnt/livecd/*/mnt/gentoo
Switch environment to hard disk
Chroot/mnt/gentoo/bin/bash
Env-update & source/etc/profile
Change root password
Passwd
New password :******
Retype new password :******
Passwd: password updated successfully
Install grub to mbr
Grub
Root (hd0, 0)
Setup (hd0)
Quit
Annotate all the items in/etc/conf. d/local. start, or use the following command to clear
Cat/dev/null>/etc/conf. d/local. start
Rc-update del autoconfig
Set time zone
Rm/etc/localtime
Ln-s/usr/share/zoneinfo/Asia/Taipei/etc/localtime
Modify/etc/fstab
/Dev/sda1/boot ext3 defaults 1 2
/Dev/sda2 none swap sw 0 0
/Dev/sda3/ext4 defaults 0 1
Copy kernel to/boot
Cp/usr/src/linux/System. map/boot/System. map-genkernel-x86-2.6.30-gentoo-r6
Cp/usr/src/linux/arch/i386/boot/bzImage/boot/kernel-genkernel-x86-2.6.30-gentoo-r6
Genkernel ramdisk
Edit/boot/grub. conf as follows:
Default 0
Timeout 30
Title Gentoo Linux 2.6.30-r6
Root (hd0, 0)
Kernel/boot/kernel-genkernel-x86-2.6.30-gentoo-r6 root =/dev/rm0 real_root =/dev/sda3
Initrd/boot/initramfs-genkernel-x86-2.6.30-gentoo-r6
Exit the environment, reboot, and exit the CD
Exit
Reboot
Yan Ming, author