2007年7月20日 星期五

如何灌gentoo

1.設定網路
2.用fdisk分割好所要磁區(密切注意 要換type跟開機磁區)
3.用mkreiserfs和mkswap格式化磁區
4.mount到/mnt/gentoo
mount -t proc none /mnt/proc
swapon /dev/hda3
5.用link2 http://cdpa.linux.nsysu.edu.tw下載portage跟stage3
6.解stage3到/mnt/gentoo而 portage到/mnt/gentoo/usr下
7.編輯/mnt/gentoo/etc下面的文件(先不要chroot,因為chroot後沒有vim)
8.chroot 用emerge裝grub跟gentoo-sources(kernel)
9.編kernel(要選cpu跟硬碟,可用dmesg,還有支援的fs)
10.打grub....root(hd0,3)這是grub所在位置.....setup(hd0)裝再此硬碟第一個block
11.修改grub設定檔,要注意檔案在/boot下面 root (hd0,3)表示boot檔案的位置,以此為相對位置

沒有留言: