Is there an easy way to determine if a mounted filesystem is mounted as Read-Only or Read-Write? I was thinking just to pipe mount
but I thought there might be an easier way.
Is there any way to mount a remote CIFS/SMB/SAMBA share as a folder/directory and not as a drive letter. For example, I want this map:
\\Server\ShareName -> C:\Folder\ShareName
Instead of the usual map like this:
\\Server\ShareName -> Z:\
The server is Linux/Samba and the client is Windows 7 Professional 64-bit. The closest I've found is being able to mount a local volume as a subfolder using the Windows disk manager, but it doesn't appear to handle remote CIFS shares (see http://support.microsoft.com/kb/307889).
We have moved mysql data directory to another disk, so now /var/lib/mysql
is just a mount point to another partition. We set the owner of the /var/lib/mysql
directory to mysql.mysql
.
But everytime we mount the partition, the ownership changes to root.root
. Because of this, we couldn't create additional MySQL database.
Our fstab entry:
/dev/mapper/db-db /var/lib/mysql ext3 relatime 0 2
How to change the owner of mount point to user other than root?