Finding local disk space


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Finding local disk space
# 1  
Old 07-03-2007
Finding local disk space

Hi Guys!!

Iam new to this thread.

I have a very urgent requirement of finding the local disk space. Iam running a php script on linux machine and need to find the local disk space on the remote machines.

I tried using df -h, which works if I specify the drive name on the remote machine. If I dont specify the drive name, it gives me the drive space of all the drives on the machine(local disk aswell network drives).

I need to find the disk space of local drives ONLY. How can I get the Local disk information and how can I get the disk space of local disk??

Please help me.......its a bit urgent for me.

Thanks & Regards,
navjak
# 2  
Old 07-03-2007
try df -l

On aix its

/usr/sysv/bin/df -l this works for me...
# 3  
Old 07-03-2007
yeah tried that earlier but it gives me blank.....Gus help me

Last edited by navjak; 07-04-2007 at 02:28 AM..
# 4  
Old 07-04-2007
Guys help me

Quote:
Originally Posted by navjak
yeah tried that earlier but it gives me blank.....Guys help me.
Its very urgent and Iam not able to get it right
# 5  
Old 07-04-2007
Show us the result of the df command, it may be possible to filter the output.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SAN vs. Local disk.

I am in the market looking to purchase a new E950 server and I am trying to decide between using local SSD drives or SSD based SAN. The application that will be running on this server is read-intensive so I am looking for the most optimal configuration to support this application. There are no... (2 Replies)
Discussion started by: ikx
2 Replies

2. Programming

[MSYS2/GCC-TDM] Compiler not finding headers in /usr/local/include

I hope it's okay to post this here. I'm working on Windows computer but using the Unix-like environment MSYS2 (https://sourceforge.net/projects/msys2). My problem is that I can't get the compiler to find headers located in /usr/local/include. I am trying to compile libpng which wants the header... (1 Reply)
Discussion started by: AntumDeluge
1 Replies

3. Solaris

No local disk in format in Solaris

I have Solaris-10 server. During troubleshooting of some storage issue, I removed disk entries from /dev/dsk and /dev/rdsk rm /dev/vx/dmp/* rm /dev/vx/rdmp/* rm /dev/dsk/* rm /dev/rdsk/ And rebooted the box. That recreated device tree for SAN disks, but I do not see c1t0d0s0 and c1t1d0s0... (7 Replies)
Discussion started by: solaris_1977
7 Replies

4. AIX

Sysdump on local disk

Hello Team, Our p740 systems are booting up from SAN. We would like to configure the local disk(which is not part of rootvg) as a primary dump device. I have assigned the same too. But in the errpt throwing the below error. Please help me on this. ... (1 Reply)
Discussion started by: gowthamakanthan
1 Replies

5. Solaris

Sharing a local disk between to solaris machines

Hi, I recently added a disk on a solaris 9 and I wanted to make it accessible for another machine, using the same name here is what i did : On the machine holding the internal disk in vfstab i added the line /dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /SHARED2 ufs 2 yes ... (2 Replies)
Discussion started by: zionassedo
2 Replies

6. UNIX for Advanced & Expert Users

Problems with tar between local and nfs disk

Hi, I am trying to move a local directory from a local disk to a nfs disk that has been shared on another file server. I am using this tar command: tar cf - . | (cd /export/nfsdisk && tar xpf - ) It copies the data okay but the big problem is that is resets the owner:group to 'nobody'. The... (2 Replies)
Discussion started by: jlowry
2 Replies

7. Solaris

installing from local disk

We ordered a DVD for solaris 10 upgrade . However I realized that we have cd rom only and DVD is unreadable . Can i use this DVD , to upgrade the release from local disks. If yes , is there any specific procedure. (5 Replies)
Discussion started by: Hitesh Shah
5 Replies

8. Shell Programming and Scripting

finding disk usage

Hey everyone, This was a great script, thanks for helping me out. Thanks (2 Replies)
Discussion started by: bebop1111116
2 Replies

9. UNIX for Dummies Questions & Answers

finding disk space usage

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

10. UNIX for Dummies Questions & Answers

available disk space on disk device???

Hello, Can someone please tell me which command to use to determine the available disk space on a given disk device? I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be? Thanks in advance! Al. (4 Replies)
Discussion started by: alan
4 Replies
Login or Register to Ask a Question