Skip to content

My first attempt to write something in bash. These are scripts that fills up memories' available (and visible in system) space

License

Notifications You must be signed in to change notification settings

Garbulix/disk-space-filler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

filler

Simple bash scripts that fills up memories' available (and visible in system) space.

but why?

Just for fun. I wanted to introduce myself into bash scripts. After watching that Computerphile film I went into an idea to make my first program.

how does it work?

There are two scripts:

  1. one makes a lot of empty files in given path. Files have random numeric names with the same length. After recieving an error (of any kind), script stops.
  2. another one makes a lot of text files, filled up with nice, human-readable random data. I wanted that files to be not-that-big, to have ability to open them (with no reason, I just wanted that).

There are problems related to exact scripts:

  1. it is very likely that first script would run into an error without filling up space, and there are some reasons:
  • not enoguh i-nodes in ext partition
  • your FAT partition will run out of disk cluster.
  • maybe something else? Filling up space with empty files succeeded in 7 MiB UDF partition though.
  1. text-files-generating-script runs extreeeeemly slow. It is so slow. It is extra slow. It's not practical at all.

summary

I think these script shouldn't be used "on production".

If you want to randomize/shred data on disks, please use system tools or ATA Secure Erase or maybe something else (that has a good reputation).

About

My first attempt to write something in bash. These are scripts that fills up memories' available (and visible in system) space

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages