BleachBit occupies the entire free disk space after wipe swap and free space.

Forums: 

After running BleachBit to clean Firefox (cache, DOM, cookies etc), wipe swap and free space storage, BleachBit occupies whole storage although free space around is 7-8GB.

Stderr output of BleachBit:

sudo bleachbit

debug: process 'firefox-bin' is running
debug: running cmd ['swapon', '-s']
debug: disabling swap
debug: running cmd ['swapoff', '-a', '-v']
debug: detected swap devices: ['/dev/sda7']
info: wiping swap device '/dev/sda7'
Error in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 84, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 134, in execute
for func_ret in self.func():
File "/usr/share/bleachbit/bleachbit/Memory.py", line 270, in wipe_memory
wipe_swap_linux(devices, proc_swaps)
File "/usr/share/bleachbit/bleachbit/Memory.py", line 248, in wipe_swap_linux
'swap device %s is larger than expected' % device)
RuntimeError: swap device /dev/sda7 is larger than expected
Bus error

Output of df -h command:

df -h

Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 388M 17M 371M 5% /run
/dev/sda8 144G 137G 0 100% /
tmpfs 1.9G 4.5M 1.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 256M 90M 167M 36% /boot/efi
tmpfs 388M 12K 388M 1% /run/user/117
tmpfs 388M 48K 388M 1% /run/user/1000

My Debian OS is in /dev/sda8 partition. As you can see, used space is 137GB out of 144GB but Avail is still 0MB and use is 100%.

Even pressing Tab for auto-completion in terminal shows me error: "bash: cannot create temp file for here-document: No space left on device". After that, once again I tried to wipe swap and free space but it fails with the same runtime error message "swap device /dev/sda7 is larger than expected". Then I checked the source code (Memory.py#L279) where max memory size of swap is 29GB (Memory.py#L275). But my swap memory size is 9.2G (for more details see below).

cat /proc/swaps

Filename Type Size Used Priority
/dev/sda7 partition 9765884 24 -1

sudo bleachbit

info: automatically preserving language 'en'
debug: running cmd ['swapon', '-s']
debug: disabling swap
debug: running cmd ['swapoff', '-a', '-v']
debug: detected swap devices: ['/dev/sda7']
info: wiping swap device '/dev/sda7'
Error in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 84, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 134, in execute
for func_ret in self.func():
File "/usr/share/bleachbit/bleachbit/Memory.py", line 270, in wipe_memory
wipe_swap_linux(devices, proc_swaps)
File "/usr/share/bleachbit/bleachbit/Memory.py", line 248, in wipe_swap_linux
'swap device %s is larger than expected' % device)
RuntimeError: swap device /dev/sda7 is larger than expected

I found a related issue (comment #14) on the forum but that is not helpful for me. Due to this my PC is no longer working properly.

System details

  • OS: Debian 9.8 (Stretch)
  • Desktop environment: GNOME
  • BleachBit package: Official from Stretch main

Any help would be appreciated.

BleachBit version: 
1.12
Your operating system: 
Debian 9.8 (stretch)

From the FAQ

Q: I closed BleachBit while it was working for a long time, and now my hard drive is full. How do I fix it?

A: Run BleachBit, and clean the option System - Temporary Files. On Linux, also clean System - Cache. This will delete one or more files that are gigantic and have random filenames.

If you changed the default options under Preferences - Drives, look there for the large files.

These instructions are valid since BleachBit version 1.2 released in 2014.

Does this help?

---
Andrew, lead developer

@andrew Thanks. Yep, It worked.