Hot answers tagged

25

Why, hello there Lars! That's a fascinating question you've asked, and after some research I may have found an answer for you. According to this and other posts out there, it may be possible to set the VFCF_JAIL attribute on the NFS filesystem provider, which would in theory allow jails to perform NFS mounts. This may, in turn, allow one to run amd inside ...


11

/etc/fstab is the traditional configuration file to define permanent mounts.


7

What is the reason that you need to map a drive? Is it just so that you can store the user credentials? If the security PC can save to a UNC path (\\servername\share), then you could try running the service as a different user, one that has permission to access the share. Let me know if I am on the right track here: \\nasbox\SecurityFootage is where the ...


6

From the Ubuntu documentation, try installing usbmount. sudo apt-get install usbmount Here is the description from the repo: automatically mount and unmount USB mass storage devices This package automatically mounts USB mass storage devices (typically USB pens) when they are plugged in, and unmounts them when they are removed. The mountpoints ...


5

There should be an /etc/auto.smb already, use that, and add the following line to /etc/auto.master: /cifs /etc/auto.smb --timeout=60 Now all cifs shares will show up under /cifs: ls /cifs/<server> will show all the shares available. You might want to put some options in /etc/auto.smb to mount with specific modes. I have a auto.smb that I ...


5

I think you have a cart before the horse problem here in that when you export a file system using NFS it locks on to the source direcotory. You are trying to not even have that source directory available at that time and only put something there via a mount later. This will not work, because once you give NFS a handle on something to share, it will always ...


4

assuming you have ntfs-3g installed, you can mount it by using mount /dev/sdX# -t ntfs-3g /media/MOUNTPOINT WHERE: X = letter (depends on your computer) # = number (partition number you want to mount) MOUNTPOINT = folder (where this disk would be mounted)


4

The file auto.master usually contains this line: /net -hosts An older alternative is (was): /net /etc/auto.net The first line is the so called builtin map referring to the file /etc/hosts and the second example is a so called program map (usually a simple shell script), which may better explain to you how the automounter works. I guess you have ...


4

Instead of mounting zpool2 as /var/db, mount it as /zpool2 or /db or whatever makes sense for you. Then make /var/db a symlink to /db.


3

You can set the file system mountpoint properties to legacy and use /etc/fstab to define them. That way, you'll be able to define the order in which they will be mounted. Edit: I just noticed you already considered the legacy approach. It might be the only one though.


3

Install usbmount sudo apt-get install usbmount Allow users to access usb drives sudo sed -i 's/MOUNTOPTIONS="/MOUNTOPTIONS="user,umask=000,/' /etc/usbmount/usbmount.conf Plug in and use cd /media/usb touch beeblebrox You can get some More Details.


3

I had similar problems with mounting a CIFS share on CentOS 6.3 64-bit - the documentation I found doesn't seem to document two additional arguments that need to be set up in the auto.master file for this to work. Here's what worked for me and might likely work for you (modified a little to fit your example): At bottom of /etc/auto.master: ...


3

udev is the key. Have a look at the files under /etc/udev/rules.d udev Howto Create your own udev rules


3

It seems the crucial point where things break is: 15:36:09 aoldbsuse hald: mounted /dev/sdc1 ... 15:36:09 aoldbsuse multipathd: 360a98000572d5073536f68484c4c512f: failed in domap for addition of new path sdc It seems you do have hald-based automatic mounting in place, so you need to turn it off (no idea how, besides disabling entire hald). Chances are ...


3

Would you be satisfied with just df -T /mnt ? :)


2

You may want to look into the nohide NFS export option to recursively mount filesystem hierarchies. This is assuming the NFS exports are from a Linux system (versus a filer or NAS) and that you're interested in mounting its mounts to your client. Also see: http://www.digspace.org/linux/7-linux-nfs-nohide


2

change server-ip -fstype=cifs,rw,noperm,user=DOMAIN\username,pass=password ://server-ip/share to share -fstype=cifs,rw,noperm,user=username,pass=password,domain=domain ://server-ip/share


2

The automounter has complete control of directories you configure it to use, so you would lose all local directories if you did that.


2

I don't believe networking is up at the time at the time the filesystems are mounted. NFS mounts are started by a script in /etc/network/if-up.d/mountnfs. The comments in mountnfs script say it should also mount CIFS shares. You might want to try rebooting the system and then manually running the /etc/network/if-up.d/mountnfs script to see if any errors ...


2

Having just crammed up on udev to get USB stick to automount when not running a gui, (and not using autofs.) Yes veronica, udev does run awfully early. agent scripts can happily fork off and run after a sleep. udevadm settle might help you out here in addition to checking runlevel. action="Add" is run at boot, not just hotplug. Whether action="remove" ...


2

Check out Microsoft's DevCon utility, I use it to disconnect eSATA HDD's at the end of backup batch files so the users don't have to log in and 'safely remove' them before swapping drives. It might be able to at least help you accomplish some of what you're doing. :)


2

umount -f -l always works for me on hung nfs mounts.


2

In /etc/sysconfig/autofs, change the MOUNT_NFS_DEFAULT_PROTOCOL variable. # MOUNT_NFS_DEFAULT_PROTOCOL - specify the default protocol used by # mount.nfs(8). Since we can't identify # the default automatically we need to # set it in our configuration. This will # ...


2

I just did this on a CentOS 5.6 box and I think part of your problem might be with your auto.test file. In it's current form you'll be creating a /test mount point and then a single moung of test under it, i.e. /test/test. Also you might want to add the --ghost switch to your auto.master line like so: /test /etc/auto.test --timeout=60 --ghost The ...


2

To answer your headline question yes, it is possible to mount your /media/ant from a .bashrc simply put mount /media/ant in the relevant file. Unfortunately you have to run mount as root so you have to arrange arrange for the particular user to be able to run mount as root e.g. via sudo. This gets complicated and introduces other security issues. As ...


2

You can launch your spot instance with a persistent EBS root volume (or attach a separate EBS volume post-boot). The EBS volume will remain after your spot instance terminates. See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-spot-instances-applications-ebs.html


1

It should be due to this on your automount configuration: You have to add ://192.168.1.2/scrolls the : is required for smb shares when using autofs [root@rhel7-client /]# cat /etc/auto.shares scrolls -cifs,credentials=/etc/creds.txt ://192.168.1.2/scrolls


1

1.Make USB device base name permanent(eg: Iomega usb device) To avoid any confusion whether base name for your USB block device is /dev/sdb1, /dev/sdd1 or /dev/sdXn we make it permanently /dev/Iomega anytime you plug it in. This can be done with help of udev device manager. You should have udev already installed on your system, otherwise install it with: ...


1

The network might not yet be initialized at this point. You can add _netdev to the mount options. This will delay the mount until the network is connected. //192.168.0.99/download /vagrant/Downloads cifs credentials=/root/.smbcredentials,_netdev,auto 0 0


1

The mount point target: /vagrant and /vagrant/Downloads is itself not available at booting time. /vagrant is a mount point itself, which is introduced by vagrant tool right after the virtual machine boot finished. Changing fstab to: //192.168.0.99/download /mnt/Downloads cifs credentials=/root/.smbcredentials,auto,_netdev 0 0 did the trick of ...



Only top voted, non community-wiki answers of a minimum length are eligible