06-25-2010
What's the OS name and file system type? I guess fs type is UFS... check this:
Minimum Free Space
Be very careful with deleting data from the root partition.
I'd run find to get all files greater than 5MB and move them to another partition or remove them.
Don't wait too long.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How would I go about finding the about of disk space occupied by a certain directory?
For example, /u1/cvera => 530 MB
Thanks =) (3 Replies)
Discussion started by: cvera8
3 Replies
2. Shell Programming and Scripting
Hi,
I have just written a script in /bin/bash, however, l want to test if character is a carriage return or space. Also l want my script to be able to detect my disk space and send a mail if usage is more than 90% or send an alert.
Thanks
Kayode (6 Replies)
Discussion started by: kayode
6 Replies
3. UNIX for Dummies Questions & Answers
how can we determine the disk space
used by a certain directory? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies
4. Shell Programming and Scripting
Some times my disk space is used upto 100% due to the application logs .
So this script is to monitor the disk space usage and wall message to the users about the disk space usage if it exceeds the limit set in the script. Here for example the limit is set to 80%. This job is added in cron to... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
5. Shell Programming and Scripting
Hi all,
FreeBSD7.1 @ sh.
In a backup script I am trying to get the blocks used by the backup once completed.
I am using the function:
#!/bin/sh
spaceused()
{
du -d 0 "${1}" | awk -F"+" '{ print $1 }
}
to return the blocks used of said directory and contents.
Via. command line... (7 Replies)
Discussion started by: Festus Hagen
7 Replies
6. Filesystems, Disks and Memory
Good morning,
I seem to be running into an issue with some drives I have attached to my solaris server. The drives are attached correctly, the partitions are arranged with fdisk, the ext3 filesystem is setup using mkfs, and finally the drive is mounted.
When I use xdd to perform read/write... (3 Replies)
Discussion started by: mrpogo07
3 Replies
7. Shell Programming and Scripting
Hi All,
I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet
#Script Starts here
#!/usr/local/bin/perl
#Program to find the disk space and to delete the older files
#Checks the type of OS... (8 Replies)
Discussion started by: arunkarthick
8 Replies
8. Shell Programming and Scripting
Hi Guys,
Is there any way I can write a script that sends DISK SPACE USAGE STATUS via email once a week?
Thanks, (5 Replies)
Discussion started by: g4v1n
5 Replies
9. Shell Programming and Scripting
Given this directory /web
I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ?
The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux.
My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Discussion started by: mohtashims
5 Replies
10. Shell Programming and Scripting
hi all members
I have a shell script to generate disk space usage email alert if threshold is more than 80 %, now the requirement changed to keep sending alert emails for every 5% incremental usage ........ Any help would be greatly appreciated.
ex - 80% , 85% ,90%,95%,100% we should get an... (6 Replies)
Discussion started by: anil529
6 Replies
LEARN ABOUT REDHAT
parted
PARTED(8) GNU Parted Manual PARTED(8)
NAME
GNU Parted - a partition manipulation program
SYNOPSIS
parted [options] [device [command [options...]...]]
DESCRIPTION
This manual page documents briefly the parted command. Complete documentation is distributed with the package in GNU Info format; see
below.
parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, ext3, linux-
swap, FAT and FAT32 partitions. This is useful for creating space for new operating systems, reorganising disk usage, and copying data to
new hard disks.
OPTIONS
-h, --help
displays a help message.
-i, --interactive
where necessary, prompts for user intervention.
-s, --script
never prompts for user intervention.
-v, --version
displays the version.
COMMANDS
[device]
The block device to partition.
[command [options]]
Specifies a command to parted. If no command is given, parted will give you a command prompt. Commands are:
check partition
does a simple check on partition.
cp [source-device] source dest
copies the source partition's filesystem on source-device (or the current device if no other device was specified) to the
dest partition on the current device.
help [command]
prints general help, or help on command if specified.
mkfs partition fs-type
make a filesystem fs-type on partition. fs-type can be one of "FAT", "ext2" or "linux-swap".
mklabel label-type
Creates a new disklabel (partition table) of label-type. label-type should be one of "bsd", "gpt", "loop", "mac", "mips",
"msdos", "pc98" or "sun".
mkpart part-type [fs-type] start end
make a part-type partition with filesystem fs-type (if specified), beginning at start and ending at end (in megabytes).
part-type should be one of "primary", "logical" or "extended"
mkpartfs part-type fs-type start end
make a part-type partition with filesystem fs-type beginning at start and ending at end (in megabytes)
move partition start end
move partition to start at start and end at end. Note: move never changes the minor number
name partition name
set the name of partition to name. This option works only on Mac and PC98 disklabels. The name can be placed in quotes, if
necessary
print displays the partition table
quit exits parted
resize partition start end
resize the filesystem on partition to start at start and end at end megabytes
rm partition
deletes partition
select device
choose device as the current device to edit. device should usually be a Linux hard disk device, but it can be a partition,
software raid device or a LVM logical volume if that is necessary
set partition flag state
change the state of the flag on partition to state. Flags supported are: "boot", "root", "swap", "hidden", "raid", "lvm" and
"lba". state should be either "on" or "off"
REPORTING BUGS
Report bugs to <bug-parted@gnu.org>
SEE ALSO
fdisk(8), mkfs(8), The parted program is documented fully in the GNU partitioning software manual available via the Info system.
AUTHOR
This manual page was written by Timshel Knoll <timshel@debian.org>, for the Debian GNU/Linux system (but may be used by others).
parted 18 Mar, 2002 PARTED(8)