04-30-2012
You can confine find to a single mountpoint with the -xdev switch.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Howdy
I have this directory structure ...
eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest
I want to find files in these directories, but I want to exclude eep, ehf & ehp.
Cany anyone help with the correct command ?? (1 Reply)
Discussion started by: SmurfGGM
1 Replies
2. AIX
We need to allow ordinary users to preform NFS mounts on a AIX server without giving them root access to the server. Is there a way to give an ordinary users root access on a tem basis or a script to allow them to preform NFS mounts? (4 Replies)
Discussion started by: daveisme
4 Replies
3. Shell Programming and Scripting
Hi Forum.
I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns:
1st col: “Y” means sub-directory scan; "N" means no subdirectory scan
2nd col: sub-directory location
3rd col: File prefix... (7 Replies)
Discussion started by: pchang
7 Replies
4. Solaris
Hi,
I was wondering, whether there is a limit regarding the max number of nfs mounts in
Oracle Solaris 10 (newest update).
The data center plans to migrate from a fibre channel based storage environment (hitachi) to a nfs based storage environment (netapp). Regarding the Solaris 10 database... (1 Reply)
Discussion started by: schms
1 Replies
5. Shell Programming and Scripting
I had a Shell script that removes the files that are in a directory older than the specified days.
find /test/files -mtime +10
I would like to add another condition to the find command above that is to exclude any file starting with ‘CGU'
Thanks (1 Reply)
Discussion started by: db2dbac
1 Replies
6. Red Hat
We have 2 servers in cluster. Node1 has an ext3 mount for backups and the other connects using NFS to this node1.
I believe the reason it is configured in this manner is to not duplicate backups since this is a Database server. Not sure this was the reason though. Right now if node1 goes down all... (5 Replies)
Discussion started by: ikn3
5 Replies
7. Solaris
I have several Solaris 11.2 zones. when I reboot them I have to go in and do mountall to mount the NFS mounts.
any ideas where to troubleshoot why they are not automounting? (2 Replies)
Discussion started by: os2mac
2 Replies
8. Shell Programming and Scripting
How can i tweak the below find command to exclude directory/s -> "/tmp/logs"
find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Discussion started by: mohtashims
7 Replies
9. Shell Programming and Scripting
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies
10. AIX
Hello all,
I'm working to fix a two-node SysMirror cluster that uses NFS mounts from a NetApp appliance as the data repository. Currently all the NFS mounts/unmounts are called from the application controller scripts, and since file collection isn't currently working, (One fight at at time... (3 Replies)
Discussion started by: ZekesGarage
3 Replies
HFS.UTIL(8) BSD System Manager's Manual HFS.UTIL(8)
NAME
hfs.util -- HFS/HFS+ file system utility
SYNOPSIS
hfs.util -m device mountpoint [mountflag1] [mountflag2] [mountflag3] [mountflag4]
hfs.util -p device [mountflag1] [mountflag2] [mountflag3] [mountflag4]
hfs.util -J [size] mountpoint
hfs.util -U mountpoint
hfs.util -N device
hfs.util -I mountpoint
hfs.util [-aksu] device
DESCRIPTION
The hfs.util command supports the mounting, probing, and unmounting of HFS file systems.
Options:
-a Adopt permissions for the HFS file system at device
-I Print out status information about the journal on the HFS file system at mountpoint
-J [size] Enable journaling on the HFS file system mounted on mountpoint. An optional size may be specified (e.g. 32M for a 32
megabyte journal).
-k Get the UUID key for the HFS file system at device.
-m Mount the HFS file system located on device onto mountpoint with the flags mountflag1 mountflag2 mountflag3 mountflag4
-M Force mount the HFS file system located on device onto mountpoint with the flags mountflag1 mountflag2 mountflag3
mountflag4. This is a deprecated option.
-N Disable journaling on a HFS+ file system located at device
-p Probe the device for an HFS file system using the flags mountflag1 mountflag2 mountflag3 mountflag4
-s Set the UUID key (generates a new UUID value) for the HFS file system at device
-u Unmount the HFS file system located at device
-U Disable journaling on the HFS+ file system mounted on mountpoint
The mountflags referenced above are either:
o removable or fixed
o readonly or writeable
o suid or nosuid
o dev or nodev
Note that for the device references above, you must only supply the last component of the path to the device in question, such as disk0s2
rather than /dev/disk0s2.
SEE ALSO
diskarbitrationd(8)
HISTORY
Derived from the Openstep Workspace Manager file system utility programs.
Darwin July 16, 2003 Darwin