10-10-2002
solaris 8 admin I text ambiguities on mount and umount
i'm prepping for my midterm, which i will bomb. i am scurrying to finish reading the final chapter before i get down into the review.
however, i came across something in chapter 8 - "mounting file systems" that has me really confused.
the text says the following:
Quote:
The root user can uset this command to manually mount every file system in /etc/vfstab that has a yes in the mount at boot field. for example:
# mountall
then it goes on to say,
Quote:
To mount only the local file systems specified in the /etc/vfstab file:
# mountall -l
now what's up with this... i thought it said that the "mount" command will mount everything in vfstab that has a yes in the mount at boot field. if this is the case, what's up with the "-l" which says that it will do the same.
maybe i'm not seeing something where it talks about "only the local file systems" .
can someone please explain the differences between using mountall with the -l and without the -l?
the same thing is said when talking about the umountall.
Quote:
This command can be run by root to manually unmount all the file systems listed in /etc/mnttab. For example:
# umountall
To unmount all local file systems specified in the /etc/mnttab file:
# umountall -l
again with the -l command... what's the deal with -l? what makes the command different with and without this option?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a 1 GB jazz drive. The jazz disk is used daily, both at home and at work on my Win 98 Server. So, I have to keep it in vfat format, which is fine because Linux rocks and will read it no problem. :-) However, I can't just stick the disk in the drive and open up the jazz folder in my mnt... (2 Replies)
Discussion started by: wizkid
2 Replies
2. UNIX for Dummies Questions & Answers
Hi...
question is this:
How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure.
... (4 Replies)
Discussion started by: soulshaker
4 Replies
3. Linux
Is it possible to mount a disk from a non-root account?
I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies
4. Solaris
Hi All,
Can someone share with me how to force umount in solaris 2.6?
Thanks
Leong (3 Replies)
Discussion started by: bkleong
3 Replies
5. Solaris
In Solaris 8, when I boot to single user mode, mount a device and then reboot or init 0, the system unmount it automatically. However, in Solaris 10 it does not seem to do the same. Here is what I did:
{0} ok boot -s
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0.... (11 Replies)
Discussion started by: StarSol
11 Replies
6. Cybersecurity
Hello,
I'm trying to remove the need to use sudo to mount (in particular, binding).
Modifying /etc/sudoers using visudo, I have tried:
%admin ALL=NOPASSWD: /usr/bin/mount
%admin ALL=NOPASSWD: /usr/bin/umountand
%admin ALL=(ALL) NOPASSWD: /usr/bin/mount
%admin ALL=(ALL) NOPASSWD:... (5 Replies)
Discussion started by: Narnie
5 Replies
7. UNIX for Dummies Questions & Answers
Hello...
I've mounted a share using standard nomenclature for the NFS mount command with the following command line:
mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)
mnt_for_70 is a mount point I created on {IP address2}
I'm confuse and want to be sure I use the... (1 Reply)
Discussion started by: blaine.miller
1 Replies
8. Fedora
I have some questions:
1, I successfully mounted my usb drive with "sudo mount /dev/sdb1 /mnt", but I can't wirte, It says "read-only file system". But I can write it in windows.
2, After I umounted the usb drive the led of it still on, but not blinking. Is it safe to unplug it? How to let it's... (17 Replies)
Discussion started by: vistastar
17 Replies
9. Solaris
OK I have a Solaris 10 Sparc running on a SUN T3-1 and the scsi driver is missing for the drive the root is on so it won't boot. I need to know if the following procedure is what I need to do to add the driver to get the system back up and running?
{0} ok boot -F failsafe
# mount... (0 Replies)
Discussion started by: trinityforce
0 Replies
10. HP-UX
Hi Folks,
Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX.
Thanks in advance,
Vaishey (5 Replies)
Discussion started by: Vaishey
5 Replies
LEARN ABOUT OPENDARWIN
mountall
mountall(1M) System Administration Commands mountall(1M)
NAME
mountall, umountall - mount, unmount multiple file systems
SYNOPSIS
mountall [-F FSType] [-l | -r] [file_system_table]
umountall [-k] [-s] [-F FSType] [-l | -r] [-n]
umountall [-k] [-s] [-h host] [-n]
DESCRIPTION
mountall is used to mount file systems specified in a file system table. The file system table must be in vfstab(4) format. If no file_sys-
tem_table is specified, /etc/vfstab is used. If - is specified as file_system_table, mountall reads the file system table from the standard
input. mountall mounts only those file systems with the mount at boot field set to yes in the file_system_table.
For each file system in the file system table, the following logic is executed: if there exists a file/usr/lib/fs/FSType/fsckall, where
FSType is the type of the file system, save that file system in a list to be passed later, and all at once, as arguments to the
/usr/lib/fs/FSType/fsckall script. The /usr/lib/fs/FSType/fsckall script checks all of the file systems in its argument list to determine
whether they can be safely mounted. If no /usr/lib/fs/FSType/fsckall script exists for the FSType of the file system, the file system is
individually checked using fsck(1M). If the file system does not appear mountable, it is fixed using fsck before the mount is attempted.
File systems with a - entry in the fsckdev field are mounted without first being checked.
umountall causes all mounted file systems except root, /usr, /var, /var/adm, /var/run, /proc, and /dev/fd to be unmounted. If the FSType is
specified, mountall and umountall limit their actions to the FSType specified. There is no guarantee that umountall unmounts busy file sys-
tems, even if the -k option is specified.
OPTIONS
The following options are supported:
-F Specify the FSType of the file system to be mounted or unmounted.
-h host Unmount all file systems listed in /etc/mnttab that are remote-mounted from host.
-k Use the fuser -k mount-point command. See the fuser(1M) for details. The -k option sends the SIGKILL signal to each
process using the file. As this option spawns kills for each process, the kill messages might not show up immediately.
There is no guarantee that umountall unmounts busy file systems, even if the -k option is specified.
-l Limit the action to local file systems.
-n List the actions that would be performed for the specified options, but do not actually execute these actions. Repeating
the command without the -n option executes the listed actions, assuming that the /etc/mnttab file has not changed in the
interval prior to repeating the command.
-r Limit the action to remote file system types.
-s Do not perform the umount operation in parallel.
FILES
/etc/mnttab Mounted file system table
/etc/vfstab Table of file system defaults
/usr/lib/fs/FSType/fsckall Script called by mountall to perform the file system check of all file systems of type FSType
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
fsck(1M), fuser(1M), mount(1M), mnttab(4), vfstab(4), attributes(5)
DIAGNOSTICS
No messages are printed if the file systems are mountable and clean.
Error and warning messages come from fsck(1M) and mount(1M).
SunOS 5.10 28 Oct 2002 mountall(1M)