mountPart=/path/to/part
rootId=$(stat -c%d /)
mountId=$(stat -c%d "${mountPart}")
if (( rootId == mountId ))
then
# code for not mounted
else
# code for mounted
fi
Hi,
Someone please help me with how i can unmount and remove all the files systems from a cluster. This is being shared by two servers that are active_standby. (3 Replies)
Greetings,
I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space.
I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Hi,
I am running Suse on a fujitsu server. The problem is that it will no fully load the usb external disk. When plugged in, dmesg shows that indeed a usb disk has been plugged in ,but gives no devpath e.g sda,sdb.
lsusb shows the disk vendor (western digital) but nothing else.Whats goin on... (2 Replies)
I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
I have my Mac OS X program executing a shell script (a script that copies files to a drive). I want to make it so that the shell script automatically kills itself if it finds that the host .app is not running OR kill itself if the drive that it is copying files to has been unmounted. Right now what... (2 Replies)
I need to check if a folder has some kind of logic disk problems.
I have a FreeBSD machine where the (root)\tmp\TEST folder has some file created by a script that i cannot delete.
If i rename the tmp\TEST folder then i can delete them (apparently) but if i recreate a folder in tmp directory... (2 Replies)
Hi Guys
I'm new here, and I need urgent help.
This my first steps to be Aix admin and I have this task
-instal Oracle database on Aix machine and create mounting point /u02 of size 100GB for Oracle Standalone database installation.
-download and install the following OS patches
- IV42025... (5 Replies)
Discussion started by: khaled_ly84
5 Replies
LEARN ABOUT REDHAT
ustat
USTAT(2) Linux Programmer's Manual USTAT(2)NAME
ustat - get file system statistics
SYNOPSIS
#include <sys/types.h>
#include <unistd.h> /* libc[45] */
#include <ustat.h> /* glibc2 */
int ustat(dev_t dev, struct ustat *ubuf);
DESCRIPTION
ustat returns information about a mounted file system. dev is a device number identifying a device containing a mounted file system. ubuf
is a pointer to a ustat structure that contains the following members:
daddr_t f_tfree; /* Total free blocks */
ino_t f_tinode; /* Number of free inodes */
char f_fname[6]; /* Filsys name */
char f_fpack[6]; /* Filsys pack name */
The last two fields, f_fname and f_fpack, are not implemented and will always be filled with null characters.
RETURN VALUE
On success, zero is returned and the ustat structure pointed to by ubuf will be filled in. On error, -1 is returned, and errno is set
appropriately.
ERRORS
EINVAL dev does not refer to a device containing a mounted file system.
EFAULT ubuf points outside of your accessible address space.
ENOSYS The mounted file system referenced by dev does not support this operation, or any version of Linux before 1.3.16.
NOTES
ustat has only been provided for compatibility. All new programs should use statfs(2) instead.
CONFORMING TO
SVr4. SVr4 documents additional error conditions ENOLINK, ECOMM, and EINTR but has no ENOSYS condition.
SEE ALSO statfs(2), stat(2)Linux 1.3.16 1995-08-09 USTAT(2)