https://www.gentoo.org/downloads/
https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20221211T170150Z/install-amd64-minimal-20221211T170150Z.iso
fdisk /dev/sda
Command (m for help): g
Partition number (1-128, default 1): 1
First sector (2048-60549086, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60549086, default 60549086): +256M
Created a new partition 1 of type ‘Linux filesystem’ and of size 256 MiB.
Command (m for help):t
Selected partition 1
Partition type (type L to list all types): 1
Changed type of partition ‘Linux filesystem’ to ‘EFI System’.
Command (m for help):n
Partition number (2-128, default 2):
First sector (526336-60549086, default 526336):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (526336-60549086, default 60549086): +4G
Created a new partition 2 of type ‘Linux filesystem’ and of size 4 GiB.
Command (m for help):t
Partition number (1,2, default 2): 2
Partition type (type L to list all types): 19
Changed type of partition ‘Linux filesystem’ to ‘Linux swap’.
Changed type of partition ‘Linux filesystem’ to ‘Linux swap’.
Command (m for help):n
Partition number (1,2, default 2):
/dev/sda3
Command (m for help):w
root #mkfs.vfat -F 32 /dev/sda1
root #mkfs.ext4 /dev/sda3
root #mkswap /dev/sda2
root #swapon /dev/sda2
root #mount /dev/sda3 /mnt/gentoo
root #ntpd -q -g
root #cd /mnt/gentoo
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20221211T170150Z/stage3-amd64-openrc-20221211T170150Z.tar.xz
root #tar xpvf stage3-*.tar.xz –xattrs-include=’*.*’ –numeric-owner
root #mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf
root #mkdir –parents /mnt/gentoo/etc/portage/repos.conf
root #cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
root #cp –dereference /etc/resolv.conf /mnt/gentoo/etc/
root #mount –types proc /proc /mnt/gentoo/proc
root #mount –rbind /sys /mnt/gentoo/sys
root #mount –make-rslave /mnt/gentoo/sys
root #mount –rbind /dev /mnt/gentoo/dev
root #mount –make-rslave /mnt/gentoo/dev
root #mount –bind /run /mnt/gentoo/run
root #mount –make-slave /mnt/gentoo/run
root #chroot /mnt/gentoo /bin/bash
root #source /etc/profile
root #export PS1=”(chroot) ${PS1}”
root #mount /dev/sda1 /boot
root #emerge-webrsync
root #emerge –sync
root #emerge –ask –verbose –update –deep –newuse @world
root #echo “Europe/Brussels” > /etc/timezone
root #emerge –config sys-libs/timezone-data
root #ln -sf ../usr/share/zoneinfo/Europe/Brussels /etc/localtime
root #locale-gen
root #env-update && source /etc/profile && export PS1=”(chroot) ${PS1}”
root #emerge –ask sys-kernel/linux-firmware
root #emerge –ask sys-kernel/gentoo-sources
root #eselect kernel list
root #eselect kernel set 1
root #emerge –ask sys-apps/pciutils
root #cd /usr/src/linux
root #make menuconfig
root #make && make modules_install
root #make && make install
root #emerge –ask sys-kernel/dracut
root #dracut –kver=5.15.52-gentoo
root #ls /boot/initramfs*
root #nano -w /etc/fstab
FILE /etc/fstab完全な/etc/fstabの例
# Adjust any formatting difference and additional partitions created from the Preparing the disks step
/dev/sda1 /boot vfat defaults,noatime 0 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 noatime 0 1
/dev/cdrom /mnt/cdrom auto noauto,user 0 0