# cfdisk /dev/sdX
# mkfs -t ext4 /dev/sdX
# mount /dev/sda1 /mnt
# pacstrap -i /mnt base
# genfstab -U -p /mnt >> /mnt/etc/fstab
# nano /mnt/etc/fstab
Chroot and configure the base system
Next, we chroot into our newly installed system:
# arch-chroot /mnt
# nano /etc/locale.gen
en_US.UTF-8 UTF-8
# echo LANG=en_US.UTF-8 > /etc/locale.conf
# export LANG=en_US.UTF-8
Hardware clock
# hwclock --systohc --utc
Create an initial ramdisk environment
Tip: Most users can skip this step and use the defaults provided in mkinitcpio.conf. The initramfs image (from the /boot folder) has already been generated based on this file when the linux package (the Linux kernel) was installed earlier with pacstrap.
Here you need to set the right hooks if the root is on a USB drive, if you use RAID, LVM, or if /usr is on a separate partition.
Edit /etc/mkinitcpio.conf as needed and re-generate the initramfs image with:
# mkinitcpio -p linux
Install and configure a bootloader
# pacman -S syslinux
# syslinux-install_update -i -a -m
(if you partitioned your drive as in the example, your root partition is sda1). Do the same for the fallback entry.
# nano /boot/syslinux/syslinux.cfg
...
LABEL arch
...
APPEND root=/dev/sda3 ro (Change /dev/sda3 to /dev/sda1)
GRUB
Install the grub-bios package and then run grub-install /dev/sda
# pacman -S grub-bios
# grub-install --recheck /dev/sda
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg
Have a ifconfig command
# pacman -S net-tools
# exit
# umount /mnt/
# reboot
##########################################################
After reboot
Synchronizing package databases
# pacman -Syy
systemctl start dhcpcd.service
# pacman -S xorg
# pacman -S xfce4
# startxfce4
# pacman -S chromium
After upgrade,Xorg Freeze at loading extension GLX [vmware]
# pacman -R xf86-video-vmware
Reference :
0 意見:
張貼留言