Setting up Pi-hole

sounds like what happened when the SDcard died in my RPI1b, if you get a chance give "sudo apt autoremove" a go to see if it would make any difference.

That seemed to do something. It cleared 800kb of space, I rebooted it, and I can now access the GUI. Updating didn't work, but according to the GUI I'm up to date anyway.

What can I do to stop it filling up again? I assume it's the logs it's keeping?

Just checked the disk usage, I'm 99% full! That's the problem.
Code:
pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        11G   11G  119M  99% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           464M   40K  463M   1% /dev/shm
tmpfs           464M   13M  452M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p6   68M   23M   46M  33% /boot
tmpfs            93M     0   93M   0% /run/user/1000
tmpfs            93M     0   93M   0% /run/user/999
/dev/mmcblk0p5   30M  398K   28M   2% /media/pi/SETTINGS
 
It's 16GB. I did install a GUI to set it all up before I discovered I could connect with Putty and use commands.

I suppose I should start again with command only? Will that still give the web GUI?
yeah you still get the web interface, no need for a GUI if all its doing is running pihole, I would take an image of the SDCard as it is now (I use win32Diskimager on a Windows Machine or DD on linux) then put a fresh version of Raspian on there with no GUI, you can strip the drive image down and not install half the stuff that it comes with at default, I was only using an 8gb card and raspian with pihole installed was less than 1gb in total.
 
yeah you still get the web interface, no need for a GUI if all its doing is running pihole, I would take an image of the SDCard as it is now (I use win32Diskimager on a Windows Machine or DD on linux) then put a fresh version of Raspian on there with no GUI, you can strip the drive image down and not install half the stuff that it comes with at default, I was only using an 8gb card and raspian with pihole installed was less than 1gb in total.

Thanks, I'll add to my to do list for the weekend.
 
Look to see if there is a command to remove the GUI. You could take a look at Raspbian lite and Diet Pi is also another option. It comes as a GUI by default but it is more light-weight than even Raspbian lite. Appears you can even remove the GUI on it with a command to use even less resources.
 
Last edited:
I always use Raspbian Lite for this sort of thing - Looking at my two Piholes now, the free space has barely changed since I set them up so I don't know what's using your space. Is the Pi doing anything else?
 
I always use Raspbian Lite for this sort of thing - Looking at my two Piholes now, the free space has barely changed since I set them up so I don't know what's using your space. Is the Pi doing anything else?
This is what is confusing me. Pi hole runs cleanup and update tasks at stupid oclock every day so it shouldn't be using loads of space.
i run raspbian, pi hole, vnc, deluged, kodi etc etc, and a usb HD from my pi3 and the disk usage on the SD card is pretty static.
resources when using pihole on a pi should not be issue. at most it uses about 8-10% of the cpu and thats when i am hammering my net from mutliple devices.
 
It's only used for Pi-Hole. I'll do some research and see what I can do.

Just tried to access Pi-Hole web GUI and it unavailable again.

Code:
pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        11G   11G     0 100% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           464M   64M  400M  14% /dev/shm
tmpfs           464M   47M  417M  11% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p6   68M   23M   46M  33% /boot
tmpfs            93M     0   93M   0% /run/user/999
tmpfs            93M     0   93M   0% /run/user/1000

That's what has changed.
 
It's only used for Pi-Hole. I'll do some research and see what I can do.

Just tried to access Pi-Hole web GUI and it unavailable again.

Code:
pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        11G   11G     0 100% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           464M   64M  400M  14% /dev/shm
tmpfs           464M   47M  417M  11% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p6   68M   23M   46M  33% /boot
tmpfs            93M     0   93M   0% /run/user/999
tmpfs            93M     0   93M   0% /run/user/1000

That's what has changed.
What are you running as root? Why is the root partition 11gb and full?
 
To give you an idea, this is one of mine:

Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  1.8G   12G  13% /
devtmpfs        213M     0  213M   0% /dev
tmpfs           217M  2.4M  214M   2% /dev/shm
tmpfs           217M   23M  195M  11% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           217M     0  217M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   41M  212M  16% /boot
tmpfs            44M     0   44M   0% /run/user/999
tmpfs            44M     0   44M   0% /run/user/1000
 
thank you, but it says....

Checking for updates...
fatal: unable to access 'https://github.com/pi-hole/pi-hole.git/': Could not resolve host: github.com
Pi-hole Core: up to date
fatal: unable to access 'https://github.com/pi-hole/AdminLTE.git/': Could not resolve host: github.com
Web Interface: up to date
FTL: Something has gone wrong, contact support

[✓] Everything is up to date!
In that case do pihole reconfigure and do.it all from the start, it does have a static IP yeah?
 
Got round to sorting my space issue out today.

Started from scratch, new install of Rasbian Buster Lite, no GUI, and fresh Pi-Hole installation.

Will keep an eye on space used, hopefully it won't change too much.

Thanks for all the help on this.

Code:
pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  1.4G   13G  10% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           464M   40K  463M   1% /dev/shm
tmpfs           464M   12M  452M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   52M  201M  21% /boot
tmpfs            93M     0   93M   0% /run/user/999
tmpfs            93M     0   93M   0% /run/user/1000
 
I've set up PiHole and in using it on a device by device basis. Got it successfully set up on my Linux machine but trying to get my Pixel 3 to run it is a nightmare.

Whenever I enter the DNS manually on my Pixel it gives me "Connected, no internet"

I've read IPv6 can be a problem but I've had that disabled since forever.

Any advice?
 
Back
Top Bottom