Solved How much space do I need to run portsnap fetch extract?

I have a 8GB sd card in the pi3 and it ran out of disk space before it even came close to finishing. I thought 8GB would be plenty. Can someone recommend me the correct microSD card size?
 
The ports tree itself is around 900MB. Actually building ports, including downloading the distfiles, can quickly use up gigabytes of space. But this will also depend on the actual ports you are building. A small port may use only a few MB whereas a port like KDE can use several gigabytes to build.
 
The ports tree itself is around 900MB. Actually building ports, including downloading the distfiles, can quickly use up gigabytes of space. But this will also depend on the actual ports you are building. A small port may use only a few MB whereas a port like KDE can use several gigabytes to build.
But isnt portsnap fetch extract only building the snapshot and not installing the programs?
 
If you're not going to build ports the ports tree isn't even needed. It's not required to have and pkg(8) works happily without it.
 
Alright. I was trying to build emacs on my raspbsd 12 with pkg_static but it keeps saying cant find it. I dont like using uemacs.
 
Using packages (using pkg-static(8)) doesn't build anything. It simply downloads pre-compiled packages and installs them. And you should use pkg(8), pkg-static(8) is intended to be used in case you're having library issues (it's a statically linked executable) and won't be available until you actually bootstrap pkg(8).
 
No, it's pkg install emacs. You seem to confuse two commands, pkg-static(8) and the old package tool pkg_add.
I did
pkg-static install emacs-devel-27.0.50.20171118,2

but get the follorowing error.

[37/136] Extracting gmp-6.1.2: 50%
/: write failed, filesystem is full

pkg-static: Fail to extract /usr/local/lib/libgmp.so.10.3.2 from package: Write error
[37/136] Extracting gmp-6.1.2: 100%


When I searched packages for emacs the options I had were
emacs-devel-27.0.50.20171118,2
emacs-koi8u-1.0
emacs-lisp-intro-2.04
timidity++-emacs-2.14.0_3
uemacs-4.0

Im running raspbsd 12 but I did what the website said and am getting my packages from freebsd 11 stable.
 
[37/136] Extracting gmp-6.1.2: 50%
/: write failed, filesystem is full
Seems obvious enough, right?


Im running raspbsd 12 but I did what the website said and am getting my packages from freebsd 11 stable.
That's not uncommon I think because there's basically only 1 ports tree being maintained. However, you can pick specific repositories if you need, just check /etc/pkg/FreeBSD.conf.
 
Seems obvious enough, right?



That's not uncommon I think because there's basically only 1 ports tree being maintained. However, you can pick specific repositories if you need, just check /etc/pkg/FreeBSD.conf.
But how would my system be full? I just did a fresh install on a 32gb sdcard and this is the first thing im installing.

du -k -d 2 -x /
4 /.snap
7844 /bin
32 /boot/defaults
4 /boot/dtb
4 /boot/firmware
182960 /boot/kernel
4 /boot/modules
4 /boot/zfs
16 /boot/efi
184528 /boot
1 /dev
4 /etc/x11
24 /etc/autofs
16 /etc/bluetooth
24 /etc/casper
8 /etc/cron.d
68 /etc/defaults
140 /etc/devd
8 /etc/dma
12 /etc/gss
264 /etc/mail
76 /etc/mtree
28 /etc/newsyslog.conf.d
16 /etc/ntp
64 /etc/pam.d
236 /etc/periodic
8 /etc/pkg
8 /etc/ppp
4 /etc/rc.conf.d
700 /etc/rc.d
48 /etc/security
4 /etc/skel
612 /etc/ssh
16 /etc/ssl
16 /etc/syslog.d
4 /etc/zfs
3140 /etc
984 /lib/casper
3140 /lib/geom
21248 /lib
40 /libexec/resolvconf
308 /libexec
4 /media
4 /mnt
4 /net
4 /proc
8916 /rescue
24 /root
20604 /sbin
4 /tmp
224904 /usr/bin
22424 /usr/include
611564 /usr/lib
40 /usr/libdata
12768 /usr/libexec
202164 /usr/local
4 /usr/obj
57200 /usr/sbin
109192 /usr/shar
4 /usr/src
12 /usr/lib32
123520 /usr/tests
8 /usr/home
1363808 /usr
4 /var/account
12 /var/at
12 /var/audit
4 /var/authpf
4 /var/backups
135876 /var/cache
8 /var/crash
8 /var/cron
41112 /var/db
4 /var/empty
4 /var/games
4 /var/heimdal
4 /var/log
4 /var/mail
8 /var/msgs
4 /var/preserve
64 /var/run
4 /var/rwho
36 /var/sppol
4 /var/tmp
8 /var/unbound
28 /var/yp
177220 /var
1791809 /
 
I have 92GB out of 447GB in use in this machine. and of that 73GB is music. That's not taking into account any other files I have on here, or programs, in addition the the base system.
 
I have 92GB out of 447GB in use in this machine. and of that 73GB is music. That's not taking into account any other files I have on here, or programs, in addition the the base system.
alright? but the raspbsd base system is less than 2gb and I don't have anything else installed.
 
I'm using 19GB of storage space for FreeBSD and the programs I have installed according to df -h. 10.2GB of that 19 turns out to be for videos.
 
But how would my system be full? I just did a fresh install on a 32gb sdcard and this is the first thing im installing.
First what does df -h / say? How did you install the system? If this was a simple dd then make sure to run service growfs onestart to actually grow your filesystem to fit the card. I'm not sure if RaspBSD is configured to do this on its own.
 
I'm using 19GB of storage space for FreeBSD and the programs I have installed according to df -h.
I did df -h

Filesystem_______Size_______Used____ Avail____Capacity_____Mounted on
/dev/mmcsd0s2a__1.7g_______1.7g ____-138m_____109%__________/
devfs___________1.0k_______1.0k______0B_______100%__________/dev
/dev/mmcsd0s1___50M________7.5M_____42M________15%__________/boot/efi
/dev/md0________48M________24K______44M________0%__________/temp
/dev/md1________14M________72K______13M________1%__________/var/log
/dev/md2________11M________12K______10M________0%__________/var/tmp


Why is this like this? I did what the tutorial said and DD the raspbsd.img onto the sd card. why isnt it letting all 32GB be available for use?
 
I'm not sure:

Code:
$ df -h Filesystem Size Used Avail Capacity Mounted on 
/dev/ada0p2 447G 92G 319G 22% / 
devfs 1.0K 1.0K 0B 100% /dev
 
No. I run a desktop and the file system appears to be set up differently than your pi3, which I have no experience with.

What I am saying is my FreeBSD base system and all the programs I have installed take up approximately 10GB space. I'd think 32BG would be enough,

I ran my first build of FreeBSD 7 on a 20GB HDD in a Gateway Solo laptop.
 
/dev/md0________48M________24K______44M________0%__________/temp
/dev/md1________14M________72K______13M________1%__________/var/log
/dev/md2________11M________12K______10M________0%__________/var/tmp
I would remove these entries and try again.
Your memory disk is probably full.
 
I wonder whether it could be a good idea to use an USB-SATA adapter and use a real disk drive for building etc on my new BBB...
 
I found some info about that raspbsd automatically does the size and there is a config file to have it use more of the sd card. Ill post an update if it works.
 
Looking more at it you need to run gpart resize mmcsd0s2 on it then growfs.
Something like this:
gpart resize -i 2 /dev/da0
gpart resize -i 1 /dev/da0s2
growfs /dev/da0s2a


You package problem is related to memory disk.
 
Back
Top