04-15-2014
How to consume all available space on partition?
Hi
I'm doing some resilience testing and need to write a script to consume all of the available disk space on a partition and then to free it up again.
This would need to be -
Safe
Dynamic, in that it calculates the free space prior to consuming it.
I might want to go on to consume a configurable percentage of it instead...
This would be on a Centos Linux box
Anyone have any experience in this area?
Brad
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-)
1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory?
i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies
2. UNIX for Advanced & Expert Users
How can I move some space allocated to one partition to another,
i.e. from "/var" to "/" .
Thanks! (4 Replies)
Discussion started by: jason6792
4 Replies
3. Shell Programming and Scripting
Hello,
I am trying to monitor disk space for each node on the machine. I am able to get all individual nodes but for the '/' node. For example:
df -k:
bash-2.05b# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xxx 4127108 2415340 1502120 62% /
/dev/yyy ... (3 Replies)
Discussion started by: chiru_h
3 Replies
4. AIX
Hi everybody,
I want to know if there is any posibility to find out - on an AIX system - which are the the users who consume most space or at least a posibility to obtain a list with all the users and how much space are they consuming ?
Trying to use du command was useless. Any idea?... (5 Replies)
Discussion started by: RebelDac
5 Replies
5. Red Hat
Dear Friends ,
I am using Redhat Ent Linux 5.0 with a EMC storage which HDD space is 4 TB. After Installing RHEL 5 , I get 4 TB space available but when I am going to create a partition then the OS show 2TB available space . I cannot create a partition above 2TB space . Is there any limitation... (3 Replies)
Discussion started by: shipon_97
3 Replies
6. UNIX for Dummies Questions & Answers
hi
My System is Sun Microsystems Inc. SunOS 5.10 Solaris
Partition Info is
/dev/vx/dsk/bootdg/var
27G 25G 1.2G 96% /var
/dev/vx/dsk/bootdg/oravol
110G 54G 56G 49% /export/home
I want to shift space 20G from /export/home to /var
What should be the command ?? (2 Replies)
Discussion started by: kaushik02018
2 Replies
7. Slackware
I am planning to install slack 13.37 on an old stand-alone PIII (512 mb ram) with 17 gb disk space. I need to keep lotsa pdf, chm type e-books for programming with few other misc. documents.
I'm going to use this system for my personal use.
It has no network but I browse internet with cable... (0 Replies)
Discussion started by: vectrum
0 Replies
8. Linux
Hi OS Experts
I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain
here is o/p of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
I'm having trouble finding info on how to convert sector size (*if that's really what i want to do?) to something easier to understand.
I'm trying to copy the MBR from a bootable SD Card to another SD Card or image file, but I'm not sure what I should use in my dd command since I'm... (17 Replies)
Discussion started by: mrm5102
17 Replies
10. Red Hat
I have a RHEL 5.3 machine with the following partitions and free space:
Free space on the partitions
/ : 74GB
/boot : 81MB
/var : 73GB
/home : 37GB
/icat : 758MB
/opt : 1.5GB
Now is it possible to allot a free space of some other partitions to /opt? I want around 100 GB more space... (4 Replies)
Discussion started by: omniok
4 Replies
newfs(8) System Manager's Manual newfs(8)
Name
newfs - construct a new file system
Syntax
/etc/newfs [ -N ] [ -n ] [ -v ] [ mkfs-options ] special disk-type
Description
The command is a front-end to the program. The program looks up the type of disk a file system is being created on in the disk description
file calculates the appropriate parameters to use in calling then builds the file system by forking If the file system is a root partition,
installs the necessary bootstrap program in the initial 16 sectors of the device.
If there is no disk description for the specified disk type in the file, the program will use the subroutine to derive disk geometry infor-
mation from the controlling device driver. This functionality is provided for MSCP and SCSI disks.
Options
-N Runs in no update mode. In this mode, will not write to
-n Prevents the bootstrap program from being installed.
-v Instructs to print out its actions, including the parameters passed to
Options which may be used to override default parameters passed to are:
-s size The size of the file system in sectors.
-b block-size
The block size of the file system in bytes.
-f frag-size
The fragment size of the file system in bytes.
-t #tracks/cylinder
-c #cylinders/group
The number of cylinders per cylinder group in a file system. The default value used is 16.
-m free space %
The percentage of space reserved from normal users; the minimum free space threshold. The default value used is 10%.
-o optimization
Specifies whether the file system will optimize for space or for time.
-r revolutions/minute
The speed of the disk in revolutions per minute (normally 3600).
-S sector-size
The size of a sector in bytes (almost never anything but 512).
-i number of bytes per inode
This specifies the density of inodes in the file system. The default is to create an inode for each 2048 bytes of data space.
If fewer inodes are desired, a larger number should be used; to create more inodes a smaller number should be given.
Files
For disk geometry and file system partition information
To actually build the file system
For boot strapping program
See Also
disktab(5), fs(5), chpt(8), fsck(8), format(8v), creatediskbyname(3x), mkfs(8), tunefs(8)
"A Fast File System for UNIX", Supplementary Documents, Volume 3: System Manager
newfs(8)