Solved

Deliberate filling up a filesystem in Linux

Posted on 2013-12-04
2
406 Views
Last Modified: 2013-12-05
How do I deliberately fill space (Example 500M & also fill filesystem Full) to a file in Linux(rhel), I want this to check filesystem alert mechanism
0
Comment
Question by:aanya247
  • 2
2 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39697630
head -c 100000 /dev/urandom >dummy

This will create a 100000 bytes dummy file, with random content.

HTH,
Dan
0
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 500 total points
ID: 39697635
or, 0-filled: dd if=/dev/zero of=dummy bs=100000 count=1
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hacked File Timestamps 4 62
How to find Linux Server's last patch date 9 51
AWS Central Authentication 1 62
SUSE Linux Enterprise 11.x Ensure tftp server is not enabled 1 24
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question