Sponsored Content
Full Discussion: check partitions size in MB
Operating Systems SCO check partitions size in MB Post 302443335 by Habitual on Sunday 8th of August 2010 10:39:16 AM
Old 08-08-2010
df -h ?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check logfile size

Hello everyone! Can anyone help me with this? I need a script that looks at a logfile and check itīs size. If itīs over a sertain size the i should get an email. Dont really know how the grep that info "the size" Please help.... (4 Replies)
Discussion started by: dozy
4 Replies

2. Filesystems, Disks and Memory

Transfering size between partitions

Below is a list of the file system on my Sun system. How can I transfer more disk space from the "/space" partition to the "/" partition with out rebuilding? / /dev/dsk/c0t0d0 6191949 5736718 393312 94% /proc /proc 0 0 0 0% /dev/fd fd 0 0 0 0% /etc/mntta ... (10 Replies)
Discussion started by: meyersp
10 Replies

3. Shell Programming and Scripting

file size check

How can I perform size check of any character file(which switch)? For example: I have to perform certain actions if file size is not zero. How can I do that? Is this syntax fine? if test ! -z $filename then fi (2 Replies)
Discussion started by: malaymaru
2 Replies

4. Shell Programming and Scripting

To check file size

Hi All, I am in small problem.. i have one script which transfers some big files to my ftp usign normal command like put .... my problem is how to check whether my file have been transferred successfully on ftp or not... i know only inside ftp we have option like 'size' command which... (2 Replies)
Discussion started by: Shahul
2 Replies

5. UNIX for Dummies Questions & Answers

Check the size of files

Hi, I need to put a script working to see in a directory with logs if exists file or files with size more than 12Mb. If exists it shoul send mail. Can anyone help me? thanks (3 Replies)
Discussion started by: osramos
3 Replies

6. Shell Programming and Scripting

Check for file size is zero or not.

I have following script on AIX/KSH if ] ; then echo "filename exists and is > 0 bytes" else echo "filename does not exist or is zero length" fi It is not working. What is wrong here??? (3 Replies)
Discussion started by: Hangman2
3 Replies

7. Shell Programming and Scripting

check the file size

if ; then cp /tmp/testfolder/*.* ~/new/logs/ else echo "No files today" exit fi The problem is this doen't work when there is more than 1 file. Please tell me how to take the latest file and check the size of the file in a directory (1 Reply)
Discussion started by: sandy1028
1 Replies

8. Shell Programming and Scripting

Check a file size

I'm doing a script thats check if mylogfile.log is bigger then 5000 but i dont know how to write it. thanks in avance. (6 Replies)
Discussion started by: Froob
6 Replies

9. Shell Programming and Scripting

File size check

I am trying to check whether two files are empty or not using below if condition but its checking for only one file if ] Again I tried if && ] Need your assistance (2 Replies)
Discussion started by: Aditya_001
2 Replies

10. UNIX for Beginners Questions & Answers

How to check used space for each partitions in Linux?

we are using Disk utilization and filesystem utilization seperately. In AIX using $lsvg rootvg datavg $lspv hdisk1 PHYSICAL VOLUME: hdisk1 VOLUME GROUP: datavg PV IDENTIFIER: 00f65eab7acabb17 VG IDENTIFIER 00f65eab00004c00000001567b60a848 PV STATE: ... (3 Replies)
Discussion started by: freeaac
3 Replies
PDISK(8)						    BSD System Manager's Manual 						  PDISK(8)

NAME
pdisk -- Apple partition table editor SYNOPSIS
pdisk [-h | --help] [-v | --version] [-l | --list] [[name ...]] pdisk [r | -readonly] device ... DESCRIPTION
pdisk is a menu driven program which partitions disks using the standard Apple disk partitioning scheme described in "Inside Macintosh: Devices". It does not support the intel/dos partitioning scheme supported by fdisk. device is of the following form: /dev/disk0s /dev/disk0s1 etc. OPTIONS
-v | --version Prints version number of the pdisk program. -h | --help Prints a rather lame set of help messages for the pdisk program. -l | --list If no names are present then lists the partition tables for /dev/disk0s, /dev/disk0s1, /dev/disk0s2, and so on. Otherwise, lists the partition tables for the specified names. -r | --readonly Prevents pdisk from writing to the device. Editing Partition Tables An argument which is simply the name of a device indicates that pdisk should edit the partition table of that device. The current top level editing commands are: h command help p print the partition table P (print ordered by base address) i initialize partition map s change size of partition map c create new partition C (create with type also specified) d delete a partition r reorder partition entry in map w write the partition table q quit without saving changes Commands which take arguments prompt for each argument in turn. You can also type any number of the arguments separated by spaces and those prompts will be skipped. The only exception to typeahead are the confirmation prompts on the i and w commands. The idea being that if we expect you to confirm the decision we shouldn't undermine that by allowing you to be precipitate about it. Partitions are always specified by their number, which the index of the partition entry in the partition map. Most of the commands will change the index numbers of all partitions after the affected partition. You are advised to print the table as frequently as necessary. Creating more than fifteen partitions is not advised. There is currently a bug in the some (all?) of the kernels which causes access to the whole disk fail if more than fifteen partitions are in the map. The c (create new partition) command is the only one with complicated arguments. The first argument is the base address (in blocks) of the partition. Besides a raw number, you can also specify a partition number followed by the letter 'p' to indicate that the first block of the new partition should be the same as the first block of that existing free space partition. The second argument is the length of the parti- tion in blocks. This can be a raw number or can be a partition number followed by the letter 'p' to use the size of that partition or can be a number followed by 'k', 'm', or 'g' to indicate the size in kilobytes, megabytes, or gigabytes respectively. (These are powers of 1024, of course, not powers of 1000.) The last argument is the name of the partition. This can be a single word without quotes, or a string sur- rounded by single or double quotes. The C command is identical to the c command, with the addition of a partition type argument after the other arguments. The r (reorder) command allows the index number of partitions to be changed. The index numbers are constrained to be a contiguous sequence. The i (initialize) command prompts for the size of the device. This was done to get around a bug in the kernel where it reports the wrong size for the device. The w (write) command does write the partition map out. BUGS
pdisk should be able to create HFS partitions that work. Even more help should be available during user input. Darwin March 24, 2001 Darwin
All times are GMT -4. The time now is 03:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy