关于公开征集2017年我区为群...
百度 二是增强了敢于担当的信心。
Mounting is the concept of attaching a file system to a computer for access.
1,244 questions
246
votes
4
answers
278k
views
How do I do 'mount --bind' in /etc/fstab?
I'm trying to add mount --bind /proc/ /chroot/mysql/proc to /etc/fstab. How can I do this?
239
votes
8
answers
264k
views
How do you validate fstab without rebooting?
I modified /etc/fstab.
I verified the new devices and I can mount them with the mount command.
How may I validate the modifications made to /etc/fstab ?
166
votes
19
answers
314k
views
What's the best way to check if a volume is mounted in a Bash script?
What's the best way to check if a volume is mounted in a Bash script?
What I'd really like is a method that I can use like this:
if <something is mounted at /mnt/foo>
then
<Do some ...
128
votes
15
answers
331k
views
Mount CIFS Host is down
I have an issue with a mount point that was previously configured. It shows the folder, but the mount is missing and holds "?" values for size, permissions, etc.
So I tried to remount using cifs and ...
64
votes
9
answers
260k
views
How to change owner of mount point
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 ...
62
votes
3
answers
248k
views
Mount Remote CIFS/SMB Share as a Folder not a Drive Letter
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 ...
58
votes
8
answers
993k
views
How to mount a VirtualBox shared folder? [closed]
What is the procedure for mounting a VirtualBox shared folder in Linux?
I tried variations of the following mount command but I keep getting protocol error or other mount errors.
sudo mount -t ...
55
votes
9
answers
229k
views
Determine if filesystem or partition is mounted RO or RW via Bash Script?
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.
53
votes
2
answers
24k
views
Prevent the possiblity of writing data to an unmounted mount point directory [duplicate]
I have an Ubuntu server where I'm automounting an external hard drive each boot.
To do this, I've created an empty folder on the root partition, and the drive gets mounted "inside" this folder.
...
53
votes
6
answers
58k
views
How useful is mounting /tmp noexec?
Many people (including the Securing Debian Manual) recommend mounting /tmp with the noexec,nodev,nosuid set of options. This is generally presented as one element of a 'defense-in-depth' strategy, by ...
45
votes
4
answers
128k
views
What's the best way to get info about currently unmounted drives?
First, the situation: I've got a Linux computer with two eSATA drive bays that accept removable SSD drives. I'm trying to write a little GUI application that makes it easier for the user to mount/...
41
votes
2
answers
38k
views
Mount block file on OSX
How can block files be mounted on osx? I tried
hdiutil attach filename
however this is terminating with
hdiutil: attach failed - not recognized
hdiutil only seems to work for iso/dmg images. On ...
40
votes
3
answers
16k
views
When is fsck dangerous?
Recently I've seen the root filesystem of a machine in a remote datacenter get remounted read-only, as a result of consistency issues.
On reboot, this error was shown:
UNEXPECTED INCONSISTENCY: RUN ...
37
votes
4
answers
53k
views
What are the advantages/disadvantages of hard versus soft mounts in UNIX?
This question may vary between distros but, in general, what are the advantages/disadvantages of using a hard or soft mount in the UNIX world?
Are there certain situations where one is more ...
36
votes
3
answers
67k
views
Cannot mount an existing EBS on AWS
I tried mounting an existing EBS Storage (which has data) to an instance, but it keeps throwing this error.
mount: wrong fs type, bad option, bad superblock on /dev/xvdf,
missing codepage or ...