|
# mount /dev/sdb2 on / type ext3 (rw) none on /proc type proc (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw,nodev,nosuid,noexec) # df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb2 4.0G 1.9G 2.4G 82% / none 38M 0 38M 0% /dev/shm
|
|
In order to install Gentoo from your existing Linux distribution you need to have chroot command installed, and have a copy of the Gentoo installation tarball or ISO you want to install. A network connection would be preferable if you want more than what's supplied in your tarball. (by the way, a tarball is just a file ending in .tbz or .tar.gz). The author used RedHat Linux 7.3 as the "host" operating system, but it is not very important. Let's get started!
|
|
Holen Sie sich die mininux Boot/Root-Diskette (eine 2.4-basierende Mini-Linux-Distribution) von http://mininux.free.fr/uk/. Erstellen Sie eine Diskette wie in der Dokumentation des Softwarepaketes erklärt und legen Sie eine neue Diskette für den nächsten Schritt ins Laufwerk.
|
|
Parted es una aplicación suministrada por la fundación GNU, un antiguo y respetable gran proyecto cuyo software está usando en este mismo momento. De todas formas, hay una herramienta que ahora nos es extremadamente útil. Se llama parted, editor de particiones y podemos conseguirlo en http://www.gnu.org/software/parted/.
|
|
Nós iremos primeiro alocar uma partição para o Gentoo mudando o tamanho de nossa partição de Linux existente, montar a partição, descompactar a tarball na montagem, fazer chroot dentro do pseudo-sistema e começar a construir. Uma vez que o processo de bootstrap estiver completo, nós iremos fazer algumas configurações finais no seu sistema para ter certeza de que ele inicia, e então estamos prontos para reiniciar e usar o Gentoo.
|
|
Pertama kita akan mengalokasikan sebuah partisi untuk Gentoo dengan merubah ukuran partisi Linux kita, mount partisi tersebut, ekstrak tarbal ke partisi yang telah di-mount, chroot ke dalam sistem palsu, kemudian memulai kompilasi. Ketika proses bootstrap selesai, kita akan melakukan konfigurasi akhir untuk memastikan sistem bisa boot, kemudian kita siap untuk reboot dan menggunakan Gentoo.
|
|
Partycja główna to system plików podmontowany w /. Można to szybko sprawdzić za pomocą polecenia mount. Aby sprawdzić ile miejsca mamy do dyspozycji wykorzystamy polecenie df. Warto zauważyć, że nie jest konieczne zmienianie rozmiaru partycji głównej. Można zmienić rozmiar każdej innej, na której zechce działać program do zmiany rozmiaru, co omówimy trochę później.
|
|
我們會先重新修改已存在的 Linux 分割區的大小,切出一塊分割區,然後分配給 Gentoo。 載入該分割區、解開 tarball 至該分割區、chroot 到那個假的系統然後開始建立,當 bootstrap 的步驟完成後,我們會在系統上做一些最後的設定並確定它能正常開機,然後我 們便可以重新開機並使用 Gentoo 了。
|