Sponsored Content
Top Forums UNIX for Advanced & Expert Users /etc/mnttab is zero length - I have done a silly thing Post 302149104 by Smiling Dragon on Tuesday 4th of December 2007 10:42:02 PM
Old 12-04-2007
Error /etc/mnttab is zero length - I have done a silly thing

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 server (for loop).

They all came back with a fs busy message so I was presuming no harm done. However, a df to check all was in order came back with no results, likewise running mount.

When I went to look in the mnttab itself I find it's zero length !?! Smilie

Everything appears ok in that the filesystems are still actually mounted and read/write.

If I try a mount or umount I get the message
"mount: Inappropriate ioctl for device"

I suspect a reboot would sort me out but that's a big hammer and I'd rather get to the bottom of it.

What have I done and how in the world do I fix it?

Running solaris 10 on a T2000, fairly recent patches applied. Bugger all running aside from base OS and SAN kit.
 

10 More Discussions You Might Find Interesting

1. Solaris

Silly question

Are GNOME or javadsktop supported of the box on Solaris 10 on Ultra (SUNBlade 1500) ? I'could switch desktops to KDE at CDE logon. But when I tried to use the JavaDesktop it simply returns me back to the log on screen of CDE. How do I conigure to the latest GNOME and.or JavaDesktop if... (3 Replies)
Discussion started by: miket
3 Replies

2. HP-UX

bdf , /etc/fstab , /etc/mnttab

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 Dummies Questions & Answers

silly question

How do I go about finding the number of unique words in a file. (3 Replies)
Discussion started by: EECSDAVE
3 Replies

4. Linux

veritas hasf /etc/mnttab

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

5. UNIX for Dummies Questions & Answers

/etc/vfstab vs /etc/mnttab

what is the difference between the /etc/vfstab and /etc/mnttab? when i check both files, the content is almost the same. can you enlighten me? what i know is /etc/vfstab is used for hard mounts. (4 Replies)
Discussion started by: hrist
4 Replies

6. Solaris

My /etc/mnttab file is showing ro permission for /usr

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

7. Solaris

what is the difference between /etc/mnttab and /etc/vfstab

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

8. Solaris

MNTTAB and NFS questions

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

9. Post Here to Contact Site Administrators and Moderators

Might be silly question

Hi Team, In case if i want to delete one of my posting thread.. can i delete that? Just asking to know.. (5 Replies)
Discussion started by: darling
5 Replies

10. UNIX for Dummies Questions & Answers

/etc/mnttab empty UNIXware 7.1.3

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
mount(8)						      System Manager's Manual							  mount(8)

Name
       mount, umount - mount or unmount file systems

Syntax
       /etc/mount [ options ] [ device ] [ directory ]

       /etc/umount [ options ] [ device ] [ directory ]

Description
       This  is  a  general description of the command.  Additional descriptions are provided to define the syntax and options for the NFS and UFS
       file systems.

       Each invocation of the command announces to the system that a file system is present on the device device.  The file system may be local or
       remote.	File directory must exist as a directory file.	It becomes the name of the newly mounted file system root.

       If invoked without arguments, prints the list of mounted file systems.

       Physically write-protected disks and magnetic tape file systems must be mounted read-only or an error will occur at mount time.

       General users can only mount file systems with certain restrictions.  For example, the user, other than the superuser, performing the mount
       must own the directory directory.  Furthermore, no users other than the superuser can execute or programs on the mounted file systems.	In
       addition, users other than the superuser cannot access block or special character devices such as on the mounted file systems.

       The  command  announces	to the system that the removable file system previously mounted on the specified directory is to be removed.  Only
       the person who mounted a particular file system or the superuser can unmount the file system again.

Options
       -a	   Reads the file and mounts, or unmounts, all file systems listed there.

       -f	   Fast unmount.  The option has no meaning for local file systems and directories.  However, for remote file system  types  (such
		   as  NFS),  the  option  causes  the	client	to unmount the remotely mounted file systems and directories without notifying the
		   server.  This can avoid the delay of waiting for acknowledgment from a server that is down.

       -o options  Specifies a string that is passed to the kernel and used by the specific file system's mount routine in the kernel.	 For  spe-
		   cific options, refer to the file system-specific description, such as

       -r	   Indicates  that  the  file system is to be mounted read only. To share a disk, each host must mount the file system with the -r
		   option.

       -t type	   Specifies the type of file system is being mounted.	When used with the option, the option mounts all file systems of the given
		   type found in the file.  For specific file system types, refer to the file system-specific description, such as

       -v	   Tells what did or did not happen.  (Verbose flag)

       The options for are:

       -a	   Unmounts all mounted file systems.  It may be necessary to execute twice to accomplish unmounting of all mounted file systems.

       -v	   Tells what did or did not happen.  (Verbose flag)

Restrictions
       Mounting corrupted file systems will crash the system.

Files
       File systems information table

See Also
       getmnt(2), mount(2), fstab(5), fsck(8), mount(8nfs), mount(8ufs)

																	  mount(8)
All times are GMT -4. The time now is 12:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy