码迷,mamicode.com
首页 > 系统相关 > 详细

Arch Linux安装详解

时间:2014-10-15 12:38:51      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:arch

准备磁盘分区

  • 创建挂载目录

mkdir /mntmkdir /mnt/bootmkdir /mnt/home
  • 挂在根分区和swap

    Mount the root partition on /mnt. After that, create directories for and mount any other partitions (/mnt/boot, /mnt/home, ...) and activate your swap partition if you want them to be detected later by genfstab.

mount /dev/sdax /mntmount /dev/sdax/bootmount /dev/sdax/home

连接网络

  • 无线:

wifi-menu
  • 编辑镜像列表

wget -O /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/all/

安装系统

pacstrap /mnt base

配置系统

  • Generate an fstab file (use -U or -L to define by UUID or labels):

genfstab -p /mnt >> /mnt/etc/fstab
  • chroot

arch-chroot /mnt
  • Set the hostname:

echo computer_name > /etc/hostname
  • Set the time zone:

ln -sf /usr/share/zoneinfo/zone/subzone /etc/localtime
  • Set the locale:

nano -w /etc/locale.genlocale-gen
  • Set the password:

passwd

Create a new initial RAM disk:

mkinitcpio -p linux

Install a bootloader:

  • 安装grub2:

pacman -S grubgrub-install --target=i386-pc --recheck  /dev/sda
  • Dual-booting:

pacman -S os-prober
  • 生成grub配置文件

 grub-mkconfig -o /boot/grub/grub.cfg


本文出自 “博主:孤逐王” 博客,请务必保留此出处http://aceking.blog.51cto.com/3681913/1564164

Arch Linux安装详解

标签:arch

原文地址:http://aceking.blog.51cto.com/3681913/1564164

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!