10 More Discussions You Might Find Interesting
1. Solaris
Hi All,
we are having a file system error in one of our servers. The server failed to boot in usual user mode. Instead boot with single user mode and requesting to run a FSCK manually to repair the corrupted. see the below output.
Netra T2000, No Keyboard
Copyright 2008 Sun Microsystems,... (5 Replies)
Discussion started by: Buddhike G
5 Replies
2. Shell Programming and Scripting
We would be migrating UNIX file system to Linux file system.
We do have many directory and sub directories with files.
after migrating unix to linux file system , i want to make sure all the files has been copied ? What would be the best approach to validate directory ,sub-directory and file... (1 Reply)
Discussion started by: balajikalai
1 Replies
3. Shell Programming and Scripting
I want to process a file block by block using sed, and if that block does not contain two patterns, then that complete block has to be printed.
See below for the example data.
................................server 1...............................
running process 1
running... (8 Replies)
Discussion started by: Kesavan
8 Replies
4. HP-UX
Hi all
I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge.
The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data.
Any help will be appreciated
FR (2 Replies)
Discussion started by: fretagi
2 Replies
5. UNIX for Dummies Questions & Answers
please some one help me to find the block size of ocfs2 file system in rehat linux 4 (4 Replies)
Discussion started by: robo
4 Replies
6. AIX
How to block the root user login in system direct console. Users should login with non-root ids themselves and then use the su command to become root. Which configuration file i need to check and disable it. (5 Replies)
Discussion started by: kmvinay
5 Replies
7. Linux
Hi All,
I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows:
struct request *req;
uint card_addr,total_bytes;
struct request_queue *rq = BlkDev->queue;
req = elv_next_request(rq);
..
..
card_addr = req->sector*512;... (1 Reply)
Discussion started by: amio
1 Replies
8. SCO
After System power get failed
File system is not getting mounted in read- write mode (1 Reply)
Discussion started by: gtkpmbpl
1 Replies
9. HP-UX
When i run dmesg, I get the following message which clearly indicates that the file system is full. Please let me know what does (1 block extent) means in the following error message?
msgcnt 1 vxfs : mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
Thanks (6 Replies)
Discussion started by: Adams Nave
6 Replies
10. UNIX for Dummies Questions & Answers
Hi friends,
In my case, there are serveral PCs running Linux in a LAN.
I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory.
I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies
getmnt(2) System Calls Manual getmnt(2)
Name
getmnt - get information about mounted file systems
Syntax
#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>
getmnt(start, buffer, nbytes, mode, path)
int *start;
struct fs_data *buffer;
int nbytes, mode;
char *path;
Description
The system call retrieves information about mounted file systems.
The mode argument is one of the following: or
If mode is or then path is the name of a single file system for which information is desired, start and nbytes are ignored, and buffer is
assumed to be large enough to hold one structure.
If mode is or then path is ignored. The start argument is the current logical location within the internal system mount table and must be
initially set to The start argument is updated to reflect the current logical location within the system mount table, allowing successive
executions of to retrieve information about all the mounted file systems. The nbytes argument defines the size of buffer, into which the
file system information is returned. Buffer sizes must be a multiple of bytes. Larger buffer sizes allow information about multiple file
systems to be returned.
If mode is or then dynamic information (the number of free inodes and the number of free blocks) could be out of date, but these calls are
guaranteed to return. The file system information in memory is not updated.
If mode is or then the file system information in memory is updated. However, if the server of any file system for which information is
being retrieved is down, then these calls will hang until the server responds.
When information about multiple file systems is returned, it is stored within consecutive buffer locations. The information for each file
system is described by the structure
struct fs_data {
struct fs_data_req fd_req; /* required data */
u_int fd_spare[113]; /* spare */
}; /* 2560 bytes */
struct fs_data_req { /* required part for all file systems */
u_int flags; /* how mounted */
u_int mtsize; /* max transfer size in bytes */
u_int otsize; /* optimal transfer size in bytes */
u_int bsize; /* fs block size in bytes for vm code */
u_int fstype; /* see ../h/fs_types.h */
u_int gtot; /* total number of gnodes */
u_int gfree; /* # of free gnodes */
u_int btot; /* total number of 1K blocks */
u_int bfree; /* # of free 1K blocks */
u_int bfreen; /* user consumable 1K blocks */
u_int pgthresh; /* min size in bytes before paging*/
int uid; /* uid that mounted me */
dev_t dev; /* major/minor of fs */
dev_t pad; /* alignment: dev_t is a short*/
char devname[MAXPATHLEN + 4]; /* name of dev */
char path[MAXPATHLEN + 4]; /* name of mount point */
}
Return Values
Upon successful completion, a value indicating the number of structures stored in buffer is returned. If the file system is not mounted
(mode is or or there are no more file systems in the mount table (mode is or is returned. Otherwise, is returned and the global variable
errno is set to indicate the error.
Diagnostics
[ENOTDIR] A component of the path prefix of path is not a directory.
[EINVAL] Invalid argument.
[ENAMETOOLONG] The length of a component of path exceeds 255 characters, or the length of path exceeds 1023 characters.
[ENOENT] The file referred to by path does not exist.
[EACCESS] Search permission is denied for a component of the path prefix of path.
[ELOOP] Too many symbolic links were encountered in translating path.
[EFAULT] Either buffer or start causes an illegal address to be referenced.
[EIO] An I/O error occurred while reading from the file system.
See Also
gfsi(5)
getmnt(2)