This is an old revision of archlinux/netinstall.20120715 from 17.09.2013 10:40 edited by EvaggelosBalaskas.
Install Archlinux with media 2012.07.15
basic net-installation
- without any menu installer
- without any automate script
Contents
DownLoad iso & files
wget -c http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/archlinux-2012.07.15-netinstall-dual.iso wget -c http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/archlinux-2012.07.15-netinstall-dual.iso.sig wget -c http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/md5sums.txt wget -c http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/sha1sums.txt
Verify iso & Signature
md5sum archlinux-2012.07.15-netinstall-dual.iso a40c60ce93efb9dfd9a7353310fed35a archlinux-2012.07.15-netinstall-dual.iso sha1sum archlinux-2012.07.15-netinstall-dual.iso e1dde4208add14e81beb25073857c5ebac0099cb archlinux-2012.07.15-netinstall-dual.iso pacman-key -v archlinux-2012.07.15-netinstall-dual.iso.sig gpg: Signature made Sun Jul 15 17:19:46 2012 EEST using RSA key ID 9741E8AC gpg: Good signature from "Pierre Schmitz <pierre@archlinux.de>"
Write iso to usb
dd if=archlinux-2012.07.15-netinstall-dual.iso of=/dev/sdb 757760+0 records in 757760+0 records out 387973120 bytes (388 MB) copied, 140.761 s, 2.8 MB/s
Boot from usb
Make partitions
cfdisk /dev/sda
Format partitions
mkfs.ext4 /dev/sda1 -L rootfs
mkswap /dev/sda2 -L swapfs
Mount root partition
mount /dev/sda1 /mnt
Configure network
dhclient eth0 ip a ip r
Prepare Root
mkdir -pv /mnt/var/log mkdir -pv /mnt/var/lib/pacman mkdir -pv /mnt/var/cache/pacman/pkg
Install Archlinux
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg --dbpath /mnt/var/lib/pacman --logfile /mnt/var/log/pacman.log -Sy base
Select all packages
Packages are being downloaded
Chroot to your new enviroment
mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys mount --bind /proc /mnt/proc chroot /mnt
Edit your fstab
vi /etc/fstab
/dev/sda1 / ext4 defaults 0 1 /dev/sda2 none swap defaults 0 1
Locale
vi /etc/locale.gen
eg.
grep -v '^#' /etc/locale.gen el_GR.UTF-8 UTF-8 en_US.UTF-8 UTF-8
and then
locale-gen Generating locales ... el_GR.UTF-8 ... done en_US.UTF-8 ... done
Build initial RAM disk
mkinitcpio -p linux
Install Grub
exit from your chroot
grub-install --root-directory=/mnt /dev/sda
Create Menu List
cp /boot/grub/menu.lst /mnt/boot/grub/ vi /mnt/boot/grub/menu.lst
# (0) Arch Linux title Arch Linux [/boot/vmlinuz-linux] root (hd0,0) kernel /boot/vmlinuz-linux root=/dev/sda1 ro initrd /boot/initramfs-linux.img
Reboot
Login
Beginners' Guide
https://wiki.archlinux.org/index.php/Beginners'_Guide