Sponsored Content
Top Forums Shell Programming and Scripting shell script to mount filesystem Post 302107252 by duke0001 on Thursday 15th of February 2007 01:37:06 PM
Old 02-15-2007
sb008:

Thans so much for your informative explanation. This is the best answer I have ever got on this forum. You are guru. I will apply your advice in my vfstab file.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mount nfs filesystem

I try to share a directory from a wortstation to a server. the share command was no problem. Solaris 8 on mars share -F nfs -o rw /dir/dir2 on the server mount mars:/dir/dir2 /mount_point RPC: Program not registered <--- What is the meaning of this ? Thanks for you help ! (2 Replies)
Discussion started by: joerg
2 Replies

2. UNIX for Dummies Questions & Answers

Mount a Filesystem

I want help about mount a filesystem to use a cdrom to install a software that be in the cd cdrom.. you can send a mail ::removed emails:: (5 Replies)
Discussion started by: amauryrgrullon
5 Replies

3. Linux

how to mount ntfs filesystem

:) Hi frds ..i hope i can get some help for this.. I am unable to mount ntfs/hpfs file system which contain my XP o/s. As per the information collected on net i found tht my kernel i.e 2.4.xx does not support ntfs ..? Now I dont knwo where to get upgraded kernel and how to deploy it ..can anyone... (0 Replies)
Discussion started by: nicknihal
0 Replies

4. Linux

How to mount a filesystem of one pc in another pc that are connected in a network?

Hi, I have a software in one of the pcs connected in the network and I need to mount that file system in my PC. Both the pcs have Linux installed. Please let me know how can we achieve this. Any pointers would be of great help. Thanks & Regards, Venkatesh. (3 Replies)
Discussion started by: venkatesh_sasi
3 Replies

5. Solaris

Mount /usr as a separate filesystem

Hi All, I have mount /usr directory as a seperate filesystem.The /usr directory includedd in / root file system.I have to mount it as seperate. Please Help me, Thanks and Regards, (7 Replies)
Discussion started by: lbreddy
7 Replies

6. Solaris

Mount old zfs filesystem

Hey all, I have a machine with 16 drive slots. Two of the drives have a ZFS mirror of the operating system, the other 14 contain the storage raidz. So, after installing Opensolaris on the OS drives, how can I remount the storage raid? TIA (11 Replies)
Discussion started by: PatrickBaer
11 Replies

7. Shell Programming and Scripting

Filesystem alert shell script not working!!

Hi All, My below shell script is not capturing %used value in the filesystem alert in the subject of the mail alert: #!/bin/bash export DBALIST="abc@xyz.com" df -k /oradata/xyz/archive > dfk.result archive_capacity=`awk -F" " '{ print $5 }' dfk.result|grep -i %| cut -c 1-4` if ] then... (5 Replies)
Discussion started by: a1_win
5 Replies

8. AIX

Mount Filesystem in AIX Unable to read /etc/filesystem

Dear all, We are facing prolem when we are going to mount AIX filesystem, the system returned the following error 0506-307The AFopen call failed : A file or directory in the path name does not exist. But when we ls filesystems in the /etc/ directory it show -rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies

9. UNIX for Dummies Questions & Answers

Can't mount filesystem

I have 2 Linux servers. rcwlo-ods10g and rcwlo-10gdev I can mount one filesystem from rcwlo-ods10g onto rcwlo-10gdev fine: RCWLO-10gDev:/ # mount -F rcwlo-ods10g:/SAN /backup but when I try another one I get: RCWLO-10gDev:/ # mount -F rcwlo-ods10g:/backup /backup mount:... (0 Replies)
Discussion started by: jamie_collins
0 Replies

10. Solaris

OpenIndiana: Can't mount ext2 filesystem

I have oi_151a7 and installed from sfe fuse-ext, libfuse and e2fsprogs. Mount e.g. # mount -F ext2fs /dev/dsk/c4t0d0p1 /mnt returns "mount: Operation not applicable to FSType ext2fs" and $ fuse-ext2 /dev/dsk/c4t0d0p1 ~/tmp/a/ does not output anything but the filesystem seems not to be... (3 Replies)
Discussion started by: bsdx
3 Replies
getvfsent(3C)						   Standard C Library Functions 					     getvfsent(3C)

NAME
getvfsent, getvfsfile, getvfsspec, getvfsany - get vfstab file entry SYNOPSIS
#include <stdio.h> #include <sys/vfstab.h> int getvfsent(FILE *fp, struct vfstab *vp); int getvfsfile(FILE *fp, struct vfstab *vp, char *file); int getvfsspec(FILE *, struct vfstab *vp, char *spec); int getvfsany(FILE *, struct vfstab *vp, struct vfstab *vref); DESCRIPTION
The getvfsent(), getvfsfile(), getvfsspec(), and getvfsany() functions each fill in the structure pointed to by vp with the broken-out fields of a line in the /etc/vfstab file. Each line in the file contains a vfstab structure, declared in the <sys/vfstab.h> header, whose following members are described on the vfstab(4) manual page: char *vfs_special; char *vfs_fsckdev; char *vfs_mountp; char *vfs_fstype; char *vfs_fsckpass; char *vfs_automnt; char *vfs_mntopts; The getvfsent() function returns a pointer to the next vfstab structure in the file; so successive calls can be used to search the entire file. The getvfsfile() function searches the file referenced by fp until a mount point matching file is found and fills vp with the fields from the line in the file. The getvfsspec() function searches the file referenced by fp until a special device matching spec is found and fills vp with the fields from the line in the file. The spec argument will try to match on device type (block or character special) and major and minor device num- bers. If it cannot match in this manner, then it compares the strings. The getvfsany() function searches the file referenced by fp until a match is found between a line in the file and vref. A match occurrs if all non-null entries in vref match the corresponding fields in the file. Note that these functions do not open, close, or rewind the file. RETURN VALUES
If the next entry is successfully read by getvfsent() or a match is found with getvfsfile(), getvfsspec(), or getvfsany(), 0 is returned. If an end-of-file is encountered on reading, these functions return -1. If an error is encountered, a value greater than 0 is returned. The possible error values are: VFS_TOOLONG A line in the file exceeded the internal buffer size of VFS_LINE_MAX. VFS_TOOMANY A line in the file contains too many fields. VFS_TOOFEW A line in the file contains too few fields. FILES
/etc/vfstab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
vfstab(4), attributes(5) NOTES
The members of the vfstab structure point to information contained in a static area, so it must be copied if it is to be saved. SunOS 5.10 12 Mar 1997 getvfsent(3C)
All times are GMT -4. The time now is 08:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy