Difference between revisions of "COSI Arch Build"

From CSLabsWiki
(Installation)
(Installation)
Line 63: Line 63:
   
 
==Installation==
 
==Installation==
  +
  +
===Pacstrap===
   
 
Start up pacstrap and install the base system. Make sure that you have mounted the partition to start installing to.
 
Start up pacstrap and install the base system. Make sure that you have mounted the partition to start installing to.
Line 71: Line 73:
   
 
Now wait as the system is installed.
 
Now wait as the system is installed.
  +
  +
===Generate FSTAB===
  +
  +
<pre>
  +
genfstab -U /mnt > /mnt/etc/fstab
  +
</pre>
  +
  +
===Change Root===
  +
  +
<pre>
  +
arch-chroot /mnt /bin/bash
  +
</pre>

Revision as of 20:36, 7 April 2016

The COSI Arch Build has been attempted in the past, with failures tending to cause people to resort to other operating systems.

In April 2016, a new lab image has been contemplated and we want to try and see if using Arch will solve the NFS problems.


Installation

Get the Arch Dual ISO CD and start it up.

To start, try pinging google or mirror. You will need to configure the network if that isn't working. That is beyond the scope of where we are now, use the official arch wiki to set that up.

Set HW Clock

Check that the system clock is set up right.

timedatectl set-ntp true

Configure Partitons

Determine what drive you want to use.

lsblk

In this case it was /dev/sda

Start up parted and begin partitioning the disks.

parted /dev/sda
mklabel msdos
mkpart primary ext4 1M 280G
exit

Format the disks. Say yes if it complains to continue to partition.

mkfs.ext4 /dev/sda1

And mount that partition.

mount /dev/sda1 /mnt

Set up Mirrors

If you are running x86 or x64, we run Arch on mirror. Otherwise you will need to find a mirror that does your architecture.

vim /etc/pacman.d/mirrorlist

Add this line:

Server = http://mirror.clarkson.edu/archlinux/$repo/os/$arch

Installation

Pacstrap

Start up pacstrap and install the base system. Make sure that you have mounted the partition to start installing to.

pacstrap /mnt base base-devel vim htop grub

Now wait as the system is installed.

Generate FSTAB

genfstab -U /mnt > /mnt/etc/fstab

Change Root

arch-chroot /mnt /bin/bash