05-10-2005
You can use the df command to get the device associated with a mount.
Check your man page for df as it may not have the -v option I show in the example.
df -v /var |tail -1|awk '{print $2}'
8 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
We have 6 hard disks attached to the hardware. Of this 2 hard disks are of 9 GB each.
Now I want combine both the same in such a way that i see a combined entry in the output of df -k .
The steps I follow are
1. Create partition on hard disks (Using format partition)
2. Run newfs -v for... (6 Replies)
Discussion started by: Hitesh Shah
6 Replies
2. Shell Programming and Scripting
Im having a file with records
DB1635 |Y|N|DB1632 |000024968_202 |0|000024968302|RCF02|
DB1636 |Y|N|DB1633 |000024968_203 |0|000024968302|RCF02|
i want to get output as
Y|DB1632 |RCF02|
Y|DB1633 |RCF02|
how can i do this ?? any... (3 Replies)
Discussion started by: Trendz
3 Replies
3. UNIX for Dummies Questions & Answers
Hi
We have two servers name A and B .
I have a folder "Share" on A was NFS mounted to "B" server.
I have set the ACL permissions using setfacl , so that both (One user from Server A and another user from Server B) users can read and write to the directory.
Both users can create the... (0 Replies)
Discussion started by: rakeshkumar
0 Replies
4. Ubuntu
hi friends ...
could u tell me how to mount specific drive (ntfs or fat 32) for specific users in ubuntu 11.04 ?
ie ,if there is a user called staff (a desktop user ) ,then he should able to use staff drive only ?
thanks in advance ...:) (1 Reply)
Discussion started by: kapali255
1 Replies
5. Shell Programming and Scripting
Hi All,
My AIX server have a mounted drive "/stage". I want to list the latest modified/created files in this drive. Also large files in this drive.
I tried to ls -l | sort +4nr | head -10
Someother solutions to list from entire drive.
Thanks. :) (6 Replies)
Discussion started by: karumudi7
6 Replies
6. UNIX for Dummies Questions & Answers
Hi I'm a beginner, and i've been having trouble joining two lines.
I need to convert this file
1097ALABAMA Mobile County METHOMYL INSE
CTICIDES 6 1.6200000E+00 1.8000001E+00
1003ALABAMA Baldwin County ... (5 Replies)
Discussion started by: kf_1434
5 Replies
7. Solaris
Hi ,
I am completely stuck and not getting any clue to come out this . So looking for help
Q : I have salaries 10 in server with that Dell Equallogic storage connected.
in dell Equlalogic in i have 70 TB storage .
I created 7 volumes 10 TB each .
In Solaries 10 i have syslog server i... (1 Reply)
Discussion started by: Roahn Tiwari
1 Replies
8. Shell Programming and Scripting
I got a problem with the permission of mounted 2TB drive in my Linux/Mint system. All the files in any folder are with 777, which is not what I want.
my fstab line for this disk is:
UUID=90803E0C803DF974 /media/grape/Workspace1_ntfs ntfs auto,users,permissions 0 0 and blkid gave me:
$> blkid
... (4 Replies)
Discussion started by: yifangt
4 Replies
LEARN ABOUT MOJAVE
mount_apfs
MOUNT_APFS(8) BSD System Manager's Manual MOUNT_APFS(8)
NAME
mount_apfs -- mount an APFS volume
SYNOPSIS
mount_apfs [-o options] [-u user] [-g group] special directory
mount_apfs [-o options] -s snapshot pathname directory
DESCRIPTION
The mount_apfs command attaches the APFS volume indicated by the device special to the global file system namespace at the location indicated
by directory. This command is normally executed by diskarbitrationd(8) or mount(8) at boot time.
The special parameter should be the path to an APFS pseudo disk device node, such as /dev/disk0s2s1 (which is a volume inside the container
/dev/disk0s2), which can also be specified as simply disk0s2s1.
The options are as follows:
-o options Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8)
man page for possible options and their meanings.
-u user Set the owner of the files in the file system to user. The default owner is the owner of the directory on which the file
system is being mounted. The user may be a user-name, or a numeric value.
-g group Set the group of the files in the file system to group. The default group is the group of the directory on which the file
system is being mounted. The group may be a group-name, or a numeric value.
-s snapshot The name of the snapshot to mount. In this usage pathname is the mounted root directory of the base volume containing the
snapshot.
DIAGNOSTICS
The mount_apfs utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
mount(2), unmount(2), fstab(5), mount(8)
HISTORY
The mount_apfs utility first appeared in OS X 10.12.
Mac OS X September 16, 2015 Mac OS X