[SOLVED] mounted windows shares from fstab dont stay mounted

i have windows shares mounted through fstab and when i first boot up, they are mounted fine, but after a certain amount of time (not sure how long it takes) they disappear and it hangs thunar (oh yeah, using xfce) and i have to reboot to get them back. running mount -a doesnt bring them back
line from fstab
//charger/share /home/user/Documents cifs rw,uid=1000,gid=1000,file_mode=0700,dir_mode=0700,credentials=/home/credfile 0 0
daemons line from rc.conf
DAEMONS=(hwclock syslog-ng hal network netfs samba @alsa crond)
Last edited by dodgefan (2011-08-03 20:01:44)

thanks anyway, figured it out, installed autofs and setup everything to mount to /media and made links to my home folder

Similar Messages

  • How to acess windows share from Ipad ios 7

    how to acess windows share from Ipad ios 7

    Download an app from the AppStore that provides this functionality. Search for 'access Windows share' for some options.

  • Applescript for mounting Windows Shares

    I have scoured the web for this script for mounting windows shares in OS X. I am compiling it as an application and dropping it into the startup items:
    tell application "Finder"
    activate
    try
    mount volume "cifs://SERVER/SHARE"
    end try
    end tell
    My question is this: I have a MacBook(Pro) and use it at home and at work... I have scripts setup for both locations, to mount various shares, but when I'm at home and the work scripts run, they fail to mount (because I'm not on the work network), or when I'm at home, the work shares fail to mount, generating a dialog with something to the effect of "couldn't find that share"... I've got a dozen of these scripts, it would be nice if it would just silently fail, rather then generating multiple dialogs.
    I was thinking of making the apple script check my ip address, and if it returns a work IP address, then it would go onto talking to the finder, if it doesn't find a matching IP address, then it would just end.
    Or, somehow have applescript ping the server that it's trying to connect to, and on success, run the script, and on fail just end it.
    Any thoughts?
    Thanks,
    Dan Ormsby

    You should probably post in the AppleScript forums:
    http://discussions.apple.com/forum.jspa?forumID=724

  • [Solved] Mounting Windows Share

    Well what a 2nd post this is!
    I've just spent forever trying not to have to post for help but its time i do.
    I'm trying to mount a windows share on bootup in autostart.sh so that mpd doesn't die via not being able to find the tunes.
    It seams you HAVE to be root to do this. Yes sudo will work but you don't get a password prompt.
    I've only found one useful thread from google but these solutions don't seam to work for me http://bbs.archlinux.org/viewtopic.php?pid=272495
    [dan@z0r ~]$ mount /mnt/shares/tank_d
    mount: only root can mount //10.1.1.69/d$ on /mnt/shares/tank_d
    Last edited by DanWA (2008-12-14 06:54:35)

    Don't try and mount it at GUI start, mount it with all the other drives when your system starts. Put it in your /etc/fstab file so that it mounts at system boot - no password required.
    Something similar to below. See the fstab link for exact details:
    /dev/xxxx /mnt/shares/tank_d ntfs auto,user,rw 0 0
    Bob
    Last edited by Hrod beraht (2008-12-13 15:53:39)

  • Mount windows share in linux

    How can i mount a windows share in read-write mode from my linux system
    I am able to mount in readonly mode as below even though i mentioned rw in that.
    mount -t cifs -o username=administrator,password=adminpass,rw,0,0 //192.168.1.1/RHEL5 /mnt/win
    This post is related to Re: backup strategy

    I managed to make it work.
    I did entry as below in /etc/fstab
    //192.168.1.1/RHEL5 /mnt/win cifs credentials=/etc/
    smbcred 0 0
    run
    mount -a
    /etc/smbcred file contains username and password
    now it is mounted as read write mode.
    ~

  • Finder can't access a mounted windows share - but the Terminal can...

    When I mount a drive using the finder's "Go / Connect to Server..." command I can choose the share to connect to and Finder mounts the share, puts it on the desktop etc... but then it tells me that:
    "The folder “Sharename” can’t be opened because you don't have permission to see its contents."
    Any attempt to access the folder through the finder will result in the same error message.
    Since the share does otherwise mount sucessfully, it shows up in /Volumes/ and using the terminal I can access the contents of the drive and open files. Applications, both terminal and GUI can read and save to files and folders opened in this way, but the GUI application cannot find the path again if you browse away in the app's browsable dialog boxes (like Save or Open). I can access any file using an absolute path in any program.
    There are more nuances to this behaviour:
    Other shares hosted by the same server don't have this problem.
    Using the terminal, I appear to have the same Unix permissions to the files and folders on the shares that work as the ones that don't work.
    Using Finder's "Go to Folder..." command I can open some, but not all folders in the flaky sharepoint mounts. All files seem to work though.
    My guess is that there are some permissions that are making Finder unhappy, but I'm not sure what they might be. But regardless, why then can I access everything from the Terminal? I'd like to use the Finder - it makes my experience much smoother!
    Some other people in this forum seem to have had the same problem with their NAS drives, but I don't think anyone has yet suggested they try accessing it via the terminal. It would be really helpful if anyone could confirm this Finder/Terminal discrepant behaviour.
    Any thoughts?

    I am having the same problem but with OS X 10.9 (Mavericks).
    I try to connect to the NAS via the Go / Connect to Server utilizing smb or cifs protocols and it will mount but then I can't enter the mounted drives/directories with finder.
    The workaround for forcing smb1 has been applied and I find that Finder would not permit me to enter those mounted directories but I can go via the command line and work fine. The  only issue is that with a Mac, as much as everybody say, you should not need to go to the command line... Yeah, right.
    For the amount of money that I paid for the Mac Book Pro, it should work. So, now I can confirm that even Mac OS X can be as bad as Windows...
    Any idea when will Apple put out a fix or an update to finder?

  • Trying to write an application to mount Windows Share in osx

    Hello,
    I am very new to the osx environment and I was hoping someone could point me in the right direction. I have a decent amount of programming experience in windows environment, but absolutely no experience writing apps for osx. I would like to write an application that users can launch, enter their credentials and connect to a windows share which I have already designated for them. I can easily do this in automator, however I was hoping to create something where there is a little less confusion. I haven't had any luck finding any resources on this topic and I was hoping someone could give me a little guidance. thanks for your time.

    I managed to make it work.
    I did entry as below in /etc/fstab
    //192.168.1.1/RHEL5 /mnt/win cifs credentials=/etc/
    smbcred 0 0
    run
    mount -a
    /etc/smbcred file contains username and password
    now it is mounted as read write mode.
    ~

  • Samba mounting windows share

    Hi, I'm trying to mount a windows share but all I can do after mounting is seeing the folders and files on the share. I can not read any file, I get "permission denied". On windows everything should be set to allow for the files to be read (if my brother didn't forget, overlooked anything). I even disabled the windows firewall.
    The windows 2000 computer can access the arch linux samba shares without a problem.
    I'm running arch current up to date.
    Here's how I mount, as root:
    mount -t smbfs -o username=gast,password=gast //192.168.0.132/Muziek /mnt/LW/Muziek/
    (gets mounted succesfully, but I can't read the files)
    Here's my /etc/samba/smb.conf:
    #Global Parameters
    [global]
    workgroup = THUIS
    netbios name = gel
    passdb backend = smbpasswd
    force create mode = 0770
    force directory mode = 0770
    wins support = yes
    case sensitive = no
    encrypt passwords = yes
    security = share
    server string = Linux                 
    [share]
    path = /mnt/hda1
    public = yes
    only guest = yes
    writable = no
    printable = no
    create mask = 777
    Can anyone help me out? I've been trying to get it working for at least a few hours :s.

    You are right. I did not need the dir_mode and file_mode, and I did have full control enable, but no dice.
    However it seems there is a folder aliasing feature, that was introduced in windows vista (though I don't recall the windows name for the feature and I am running win7), I believe to be the problem. For example, if I share and mount  C:\Users I have access to C:\Users\myuser and can create folders and documents there. However the predefined folders Music, Documents, Pictures I have no write permission inside of.
    Next if I share and mount C:\Users\myuser I have the same result for those folders however now I can see additional folders  one is 'My Documents' in this folder I have write access and changes are mapped back to the Documents Folder. Additionally there are now showing in the Documents folder, I had no write access to, additional folders which also weren't showing before 'My Music', 'My Pictures', and 'My Videos' in which I now have write access and they map back as well.
    When I connected to the shares from an XP machine I could simply access the original folders.

  • Lost a lot of files during move to a mounted Windows share via SMB

    Hi,
    after mounting a network Windows share via SMB and then using the Finder to move files from my local disk to that share all the files that were to be moved are lost in ****. I am totally upset because these were very important files. What is it that drives 10.5.2 nuts here? Has anybody any ideas?

    Look in \Music\iTunes\iTunes media\ (or \iTunes music\).

  • HELP!!  Solaris 10 - Mount NFSv4 Share from Linux using Kerberos Security

    Greetings all, my apologies if this post is in the wrong place...
    I have an issue getting Solaris 10 to mount an NFSv4 share from a SuSE Linux 10 machine using kerberos security.
    I am able to mount the NFSv4 share from another SuSE 10 machine. The kerberos principal for that is nfs/host.domain and is working perfectly with the mount command of 'mount -t nfs4 -o sec=krb5 host:/ /mnt'
    My problem is that when I try to mount that same share on Solaris 10 using the command 'mount -F nfs -o sec=krb5 host:/ /mnt' I am getting nowhere fast. My kerberos principals for the Solaris machine are nfs/host.domain, host/host.domain, and root/host.domain. I have tried rebooting the Solaris 10 machine with a different keytab file in place each time (as I'm not sure which principal to make the keytab from for Solaris).
    When I run the Solaris 10 mount command all it does is hang. I don't get any error message, etc. On the kerberos server I can see where the Solaris machine has communicated and appears to receive a ticket, and I can see that the NFS server was responding to the client's request, however the mount command just hangs.
    Any ideas / suggestions? I really need someone to point me in the right direction!
    Your help is very appreciated!

    I had similar, not identical, issues with a custom JumpStart DVD I was creating. I was not using flar and it was for x86, not SPARC.
    I found that changing the case for the value assigned to network_interface made a difference. In looking at the sysidcfg manpage and online JumpStart documentation, all the examples they used had capitalized "PRIMARY" and "NONE". When I changed the value to the capitalized equivelant, my particular issue had gone away.
    You may also want to consider adding ip_address and default_route to the network_interface section. Test either way to identify the differing results.
    In my particular scenereo, I did not want any networking configuration to be done. The resulting line in sysidcfg was:
    network_interface=NONE {hostname=jsclient}HTH

  • [SOLVED] iptables & Windows Shares

    Hey guys I hope one of you who knows iptables can please help me out.  I am trying to connect to a windows share on a local network when I have my firewall active.
    Here is my iptables.rules which I have opened up ports 135-139 & 445 (tcp/udp), can any of you see what the problem is.
    *filter
    :INPUT DROP [0:0]
    :FORWARD DROP [0:0]
    :OUTPUT ACCEPT [304170:18214390]
    :interfaces - [0:0]
    :open - [0:0]
    -A INPUT -p icmp -m icmp --icmp-type 18 -j DROP
    -A INPUT -p icmp -m icmp --icmp-type 17 -j DROP
    -A INPUT -p icmp -m icmp --icmp-type 10 -j DROP
    -A INPUT -p icmp -m icmp --icmp-type 9 -j DROP
    -A INPUT -p icmp -m icmp --icmp-type 5 -j DROP
    -A INPUT -s 127.0.0.0/8 -i eth0 -j DROP
    -A INPUT -s 192.168.0.0/16 -i eth0 -j DROP
    -A INPUT -s 172.16.0.0/12 -i eth0 -j DROP
    -A INPUT -s 10.0.0.0/8 -i eth0 -j DROP
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A INPUT -j interfaces
    -A INPUT -j open
    -A INPUT -p tcp -j REJECT --reject-with tcp-reset
    -A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
    -A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
    -A INPUT -f -j DROP
    -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP
    -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
    -A INPUT -i eth0 -p icmp -m icmp --icmp-type 8 -j DROP
    -A interfaces -i lo -j ACCEPT
    -A open -p tcp -m tcp --dport 22 -j ACCEPT
    -A open -p udp -m udp --dport 135:139 -j ACCEPT
    -A open -p tcp -m tcp --dport 135:139 -j ACCEPT
    -A open -p udp -m udp --dport 445 -j ACCEPT
    -A open -p tcp -m tcp --dport 445 -j ACCEPT
    COMMIT
    Last edited by Tyriel (2009-06-18 10:02:24)

    fukawi2 wrote:
    robmaloy wrote:
    if i interpret the iptables manual correctly:
    the line
    -A INPUT -j interfaces
    matches ALL PACKETS, so the rules below are ignored
    UNLESS
    you add a RETURN rule in your chain:
    User-defined chains don't have default policies, so if no rules are matched, it will JUMP back to where it came from even without a RETURN rule. It's good practise to add a RETURN rule anyway though.
    Without knowing more, I'm agreeing with cactus that the connections are coming from one of the private IP ranges that are explicitly dropped early in the rules (192..., 172... or 10....)
    good to know, ty

  • How do I add Macbook air to my windows network and how do I connect to windows shares from said Macbook?

    Finally, I have a "clued in" boss who wanted a Macbook air.  I have it, and I can get to the internet by supplying the correct proxy credentials.  My issue is trying to connect him to windows shares on my network?  I know how to do this cold for adding a PC, But need some 101 on how to take this awesome macbook air and add it to the domain and how to get connected to various shares within my DOMAIN.  as well as use network printers (I assume that is pretty easy). . .  I should add that I can ping the servers in question, I am just not familiar with how to connect to them via Mac. . .I am sure this is laughably easy, I am the king of making things difficult, I swear!
    Thanks for any and all help as usual!!
    Dave

    Which os do you have?
    Check Apple's Knowledge Base for Printer Troubleshooting solutions and suggestions for your particular os.

  • Auto-mounting Windows shares at login?

    When I bring my PowerBook to work, there are five different Windows shares I need to connect to in order to access all my files. I've added the shares to my Login Items under my account in System Preferences, so they connect automatically every time I log in.
    The only problem is that this opens a separate Finder window for each connection. I'd like to just have it connect to the shares in the background without opening any new windows. Is there any way to do this? I tried checking the "hide" checkbox in Login Items, but it didn't make a difference.

    I discovered a better solution - if you make an Automator action (get specified servers > connect to servers), it won't open any new Finder windows.
    So I created the action, filled it in with the 5 servers I need to connect to, saved it as an application, and added it to my login items. Now when I log in, I just get a dialog for each server asking for my username/password, and it connects to each in the background without opening any windows.

  • How to mount windows share as a drive letter?

    I have a user that has interlinking excel spreadsheets that are located on a network share. Spreadsheet A on K: links to Spreadsheet B on K:. The links in excel are defined as K:\adirectory\spreadsheetb.xls...
    How do I mount a drive on a Mac, such that MacOffice will be able to follow the links?

    *"How do I mount a drive on a Mac, such that MacOffice will be able to follow the links?*
    Sorry, but you don't, at least not in that sense, as Macs don't follow Windows drive letters.
    The user will have to mount the same share on the Mac desktop and link to it via standard SMB links an hope that the links translate server for server and share for share.

  • Smb mount Windows share 10.6.8 vs 10.8.4

    We have the following setup:
    a windows file share
    an iMac with 10.6.8 connected to active directory
    a MBpro with 10.8.4 connected to active directory
    logged into each machine w/ the same user
    The 10.6.8 smb mounts (via Finder->Connect to server) to the file share as one would expect.
    The 10.8.4 smb mount fails with an error message:
    Error mesage: The foler "foldername" can't be opened because you don't have permission to see it's contents.
    Here's what I've done:
    checked the smb mount path and they are the same on both machines
    mounted the folder on a windows machine
    So, it seems that user permission is OK because it works on the 10.6.8 and windows machines.
    Any ideas why it's failing on the 10.8.4?
    Thanks!!!

    Welcome to Apple Communities
    1. Open Disk Utility and repair permissions
    2. Open Finder, go to your user's folder > Library > Caches and delete everything
    3. Verify disk
    4. See if your apps are compatible with OS X 10.8 > http://www.roaringapps.com
    You can also do a backup and create a DVD or USB drive to install OS X > http://arstechnica.com/apple/2012/07/how-to-create-a-bootable-backup-mountain-li on-install-disk/ When you start in 10.8 installer, open Disk Utility, select your volume and erase the drive, and install

Maybe you are looking for

  • Can I use flash drive in Windows that install on Oracle VM Server

    Dear everyone, I install Windows server 2003 on Oracle VM Server x86. I can use .iso file by copy iso file to /OVS/iso_pools and add resource. But I want to use flash drive on Windows server 2003 that installed on Oracle VM. I don't know how to do or

  • All Day event creation succeds but does not create any event in the calndr

    Hi Everyone, I have a situation with the creation of all day event. The iCal used for the creation of the all day event is as follows MIME-Version: 1.0 Content-Type: text/calendar; charset=UTF-8 Content-Transfer-Encoding: quoted-printable BEGIN:VCALE

  • Question to assigning Source System for Activation

    We want to assign source system for activation, before business content-InfoObject catalog activation. The steps as follows: 1.On the Data Warehousing Workbench: Business Content view from the menu choose Edit  Source System Assignment.->This step i

  • InDesign a cessé de fonctionner

    Bonjour, Je travaille sur un fichier de 50 pages en Indesign 5.5 sur PC. Et depuis 2 jours, je reçois le message "InDesign a cessé de fonctionner". Et aussitôt, InDesign se ferme. Et quand je tente de le réouvrir, voilà ce qu'il se passe : 1/ il me d

  • Trying to install a fresh copy of OS X 10.8

    I'm totally stuck. I got a new MacBook Pro and I'm giving my old MacBook that has OS X 10.8 to another family member of mine. I wanted to erase and reinstall OS X 10.8 on my old MacBook computer so that the person gets a new, fresh computer. However,