Visar inlägg med etikett raspbsd. Visa alla inlägg
Visar inlägg med etikett raspbsd. Visa alla inlägg

tisdag 8 november 2016

Portsnap fetch fails in RaspBSD 12 on RPi3


First I couldn't run 'portsnap fetch' due to the system time being off.
Snapshot appears to have been created more than one day into the future!
(Is the system clock correct?)
Cowardly refusing to proceed any further.

Setting the time using the command 'ntpdate' fixed that issue, but got me a new instead:
Verifying snapshot integrity... Segmentation fault (core dumped)
snapshot corrupt.

This can be worked around by manually installing the ports tree.
wget http://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz
tar xvf ports.tar.gz -C /usr/

Sources:
FreeBSD documentation - using ports
slug



måndag 7 november 2016

Resizing the root partition in RaspBSD 12

I was trying to resize the root partition for RaspBSD 12 on a Raspberry Pi 3 and ran in some trouble, since growfs showed "operation not permitted".

Here was my solution to resizing:
gpart show
This showed that my disk was named mmcsd0 and that my root partition had the index "2".

gpart resize -i 2 -a 4k -s 20gb mmcsd0
Here I'm resizing the root partition, 2, to 20gb

gpart commit
save the changes

service growfs onestart
resize the file system

Sources:
FreeBSD.org documentation
DigitalOcean