06-23-2010
vfstab
El comando mount leerá las entradas /etc/vfstab correspondientes a estos
sistemas de archivo, y las montará en la forma adecuada. Asimismo, cada vez que arranque el sistema, se leerá el archivo /etc/vfstab, y se montarán todos los sistemas de archivo que correspondan, incluyendo los nuevos.
Esto aplica a sun solaris.
Ezequiel Olmas
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If i wish to make a mount permanent, is it /etc/vfstab that i have to the entry add to? If so does anybody know the syntax, ie. is it tab or space delimited ? etc etc
any help would be greatly appreciated (3 Replies)
Discussion started by: hcclnoodles
3 Replies
2. HP-UX
Hi all,
Would like to know if it is possible to rearrange the order that mounts are displayed when the 'bdf' command is issued.
An example of what I mean is, currently I see the following ...
$ bdf -l
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 ... (6 Replies)
Discussion started by: Cameron
6 Replies
3. UNIX for Advanced & Expert Users
Being the clever-clogs that I am, I have managed to clobber the contents of /etc/mnttab.
It started when I tried to unmount all the volumes in a prticular veritas disk group and neglected to include a suitable grep in my command line, thus attempting to unmount _all_ the filesystems on the... (7 Replies)
Discussion started by: Smiling Dragon
7 Replies
4. Shell Programming and Scripting
Hi all,
I have been trying to figure out a way to mount swap on /tmp at a stage early than the default script that does it...
If anyone knows how it can be done pls pls help me!!!!!
I have been struggling a lot for it
Secondly, continuing with the same issue...
I wanted to know if the... (4 Replies)
Discussion started by: wrapster
4 Replies
5. Linux
Hi All,
Where is now the /etc/mnttab if you are in veritas sfha for red hat es 4?
Thanks in advance for any comments. (2 Replies)
Discussion started by: itik
2 Replies
6. Solaris
Hi Everyone,
How to find the wrong entry in etc/vfstab or wrong mount point in etc/vfstab ?
Thanks & Regards
Padmaja. (4 Replies)
Discussion started by: padmaja
4 Replies
7. Solaris
Hi All,
My current /usr utilization is 100%.As i don't have another harddisk i decided to delete some unnecessary files under /usr.But,while deleteing it is giving error "it is a readonly filesystem".I checked /etc/mnttab file it is showing the following entry
/dev/lofi/1 /usr hsfs ... (3 Replies)
Discussion started by: navjotmannan
3 Replies
8. Solaris
what is the difference between /etc/mnttab and /etc/vfstab???? what are these files used for
one time i removed mnttab file from my solaris box. infact i renamed it and my solaris box was not booting properly. (12 Replies)
Discussion started by: chidori
12 Replies
9. Solaris
SunOS 5.10 Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise
I have been asked to move all file from /CV to /EABATCH
looking at our mnttab I see these two entries.
wdcprodhome:/eabatch/EABATCH /EABATCH nfs nodevices,bg,intr,xattr,zone=cbp011,dev=5500010 1288539528
... (0 Replies)
Discussion started by: Harleyrci
0 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys
New to this forum so apologies if posted in wrong place. Got a unixware 7.1.3 system (I know !). df -k produces no output which I believe is because /etc/mnttab is empty. Can /etc/mnttab be re-built ?
Thanks (2 Replies)
Discussion started by: deel
2 Replies
LEARN ABOUT CENTOS
getvfsent
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)