syslinux install

Need to install the gptfdisk package before the syslinux-install_update -i -a -m command will work.

pacman -S gptfdisk

Advertisements

hardwired network

Network interface is enp2s1.

Turn on dhcp:

# systemctl enable dhcpcd@enp2s1.service


boot firmware error message

Install the wireless interface’s firmware with:

pacman -S ipw2200-fw

Or, if you won’t be using the wireless interface, add to /etc/modprobe.d/modprobe.conf

blacklist ipw2200

to get rid of the boot message about failing to install the firmware.


static ip address

Edit /etc/network.d/ethernet-eth0 and comment out the dhcp entry and add this:

CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth0'
IP='static'
ADDR='192.168.1.3'
GATEWAY='192.168.1.1'
DNS=('76.14.0.8' '76.14.0.9' '76.14.96.14')


resizing the raspi flash card

Before running fdisk I brought the system down to single user and remounted the root partition read-only. In the following the # is root’s prompt.

# systemctl rescue
# mount -o ro,remount /
# fdisk /dev/mmcblk0

Delete the second partition /dev/mmcblk0p2.

d
2

Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk.

n
p
2
enter
enter

Save and exit fdisk:

w

Reboot, go single user, and run resize2fs:

# shutdown -r now
# systemctl rescue
# resize2fs /dev/mmcblk0p2

Your main / partition should be the full size of the disk now. Don’t remount the root partition read-only before you run resize2fs; resize2fs fails if it’s mounted read-only.

After running resize2fs reboot, go to single user, remount root read-only, run e2fsck, then reboot to bring the system back up multi-user:

# shutdown -r now
# systemctl rescue
# mount -o ro,remount /
# e2fsck /dev/mmcblk0p2
# shutdown -r now


single user mode and read-only mounting

  1. Bring the system down to single user mode:

    # systemctl rescue

  2. Remount root readonly

    mount -o ro,remount /

Doesn’t work on the laptop; complains that the filesystem is busy.