CentOS 5 :: Automount Cifs Filesystem Using The Fstab File

Aug 3, 2010

I have been running a server for 3-4 years now, and my shares have been mounting just fine. Well, the network admin looked at a backup and seen that the last date backed up was june. I got to looking around and seen that the share is not mounting. I can mount it with sudo mount -a, which tells me my syntax is correct. I get an error about IPv4 socket not opened and it is aborting the operation when I run dmesg | tail, since I can use the above command to mount later, it sounds to me like it is trying to mount before the network connection is ready.

I have done some looking over some init scripts and found that in the /etc/rc.d/init.r/netfs script it has a line that states that it is checking to see if the network is up before it starts to mount the filesystems and the such. This is set to no, my question is, can I change this option to yes and get my desired results, waiting for the network to be up before it mounts the filesystems.

View 6 Replies


ADVERTISEMENT

OpenSUSE Install :: Can't Automount Cifs Network Drives In Fstab?

May 24, 2011

I just made a fresh install of OpenSUSE 11.4-Tumbleweed and have the latest updates. However fstab lines I've used in the past are not working.

Here's an example of two:
//IPADDRESS/share /home/user/mount cifs credentials=/home/user/.scripts/.creds,_netdev,uid=client_user,gid=users 0 0
//IPADDRESS/share /home/user/mount cifs guest,_netdev,uid=client_user,gid=users

I can execute a command

Code:
sudo mount /home/user/mount and it works, but I'm wanting all my fstab lines to automount at boot as on other machines.

View 5 Replies View Related

Networking :: Not Accepting The Encryped File In Fstab To Mount Win Share Through Cifs?

Jun 24, 2010

I'm using cifs to mount windows share.I have created one credentials file and given the path in fstab to mount at boot time. Now i want to encrypt the credentials file and place that in the fstab file.But it is not accepting.. how to use encrypted file to use in fstab,so that normal users can not watch the credentials inside the file.

View 3 Replies View Related

OpenSUSE Network :: Automount CIFS Shares?

Jan 30, 2010

Question 1.I have strange problem in OpenSUSE 11.2I have /etc/fstab entry:

//server/projects /server/projects cifscredentials=/root/.credentials,dir_mode=0777,file_mode=0777,_netdev 0 0
service network running

[code]....

View 1 Replies View Related

Ubuntu :: Cifs From Fstab Messing Up Uids?

Jan 22, 2010

I am trying to mount cifs through fstab but it is not working. I have an Ubuntu samba server and a Kubuntu client. The share from the server is one dir with subdirs having different permissions and owners/groups. When I do AS ROOT:

Code:
smbmount //192.168.0.254/share /media/maps/share -o username=toshko%pass
the output of the "mount" command is as follows:
Code:
//192.168.0.254/share on /media/maps/share type cifs (rw,mand)
The result is messed up owners with different uids and groups:

[Code]...

View 2 Replies View Related

Ubuntu Installation :: CIFS Entry For FSTAB?

Nov 11, 2010

I just went from Jaunty to Maverick. I booted Maverick and manually mounted my Windows Network drives by clicking on the appropriate "mount" command in the directory /media.I then created an fstab file like I did in Jaunty. Here is the smb mount command that I had in the fstab file. I had a file with the user id and password in the credentials file.Code://???.???.??.?public_p/media/servername smbfs credentials=root,dmask=0777,fmask=0777 0 0This provided me access to my server for the past 18 months.I modified the fstab file for Maverick which was working fine for 3 days so I would automatically mount the server drives.

View 1 Replies View Related

OpenSUSE Network :: FSTab, Cifs And 'guest' Login?

Jul 15, 2010

i'm trying to setup a permanent CIFS share from my nas, but it keeps prompting for a password dispite GUEST access set on the share.FStab is as follows:

Code:
//192.168.0.253/media/ /mnt/nas1_media/ cifs guest,_netdev 0 0
if i do

[code]....

View 5 Replies View Related

Ubuntu Networking :: Fstab Setup For Cifs Mounting?

Aug 12, 2010

Hopefully this'll be an easy one (but I wasn't able to find any other posts with the exact same problem).I'm connecting to a large hard drive at work. I can mount perfectly fine. The following is the relevant line in my fstab file:

//XXX.XXX.XXX.XXX/data /mnt/labdata cifs users,rw,exec,suid,dev,username=XXX,password=XXX,_ netdev,fmask=777,dmask=777 0 0

The problem is that when I try to cd to the correct directory, I get a permission denied error. I don't own the mount point, and there aren't general read/write permissions set. But if I change to superuser, I can access it no problem. I can read, write, make directories, etc. So the problem is with my computer--not the remote one.

Now, if I add the option uid=MYID, I can read and write just fine. The system makes me the owner of the directory on mounting. But that's not what I want--I'm trying to allow multiple users access to this file system. I want there to either be a neutral owner (e.g. root) with others having read/write access, or I want the owner of the mount point to be the user currently logged in.

View 5 Replies View Related

Fedora :: Automount Using Fstab ?

Sep 2, 2009

I remember automounting my windows drive (I dualboot windows and fedora) using /etc/fstab.

Now I can't find what to add to the file in order to mount my drive.

The drive is /dev/sda2 and I would like to mount it at /mount/windows, it's an NTFS drive.

I have been looking around the forums and reading the manuals but can't figure it out

View 3 Replies View Related

Ubuntu :: Fstab Not Mounting Cifs Manually Call Mount -a?

Apr 30, 2010

I have the following line in my fstab:

Code:
//192.168.0.242/websites /mnt/supercube cifs rw,user=XXX,pass=XXX,iocharset=utf8,file_mode=0777,file_mode=0777,dir_mode=0777,uid=XXX 0 0
But it doesn't auto mount with everything and disconnects whenever I suspend my computer. The only way to get it to mount is with
Code: sudo mount -a and it mounts fine with no error.

Did lucid change the way it uses fstab or something? Obviously writing mount -a isn't a huge concern, but it kind of destroys the point of putting it in my fstab.

View 9 Replies View Related

General :: Unable To Mount Cifs - Windows - Partition Through Fstab

Apr 27, 2010

I have mounted window shared partition to my RHEL 5.4 server through following command

Quote:

But I'm unable to mount the same via fstab.172.20.x.x is my windows server download is my shared folder name.

Suggest me correct fstab entries

My current fstab entry is as follows

Quote:

View 5 Replies View Related

Ubuntu Networking :: Automount In Fstab ?

Mar 30, 2010

I run ubuntu 9.10, and my wife runs winxp. I am trying to setup an automount of her storage (D) drive in my fstab. here is the line in fstab:

The share mounts with no errors, but when i go into palces and view the share, it is blank, totally empty. I can create and delete documents here, but the next time I open the share, i cant see anything. If i connect to the share using places>connect to server, everything is fine. If i connect using places, network, and browse to her machine, it works just fine.

Today i did a fresh install of karmic, installed smbfs, added the above line to fstab, same issue. I have searced and searched but I haven't found a problem exactly like this. This setup has been working fine until sometime recently. I cant be sure exactly when it stopped working, or why. The reason I need it to automount is I have several applications that point to that drive. It is worth noting i have tried several variations on the line in fstab, all with the same results.

View 5 Replies View Related

General :: CIFS Mounting Works Via Command Line - Fails With Fstab

Dec 2, 2009

I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.

[Code]....

Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234

The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

View 2 Replies View Related

General :: Access Fstab To Automount In Kubuntu?

Jul 11, 2010

Other users can't access my second SATA HDD until I have logged in and clicked on it (or saved or opened a file, etc) and it asks for a password. Once I enter a password then I can access it and so can other users.

I figure I need to auto mount the drive.

I can't seem to view the fstab. In a terminal it says 'permission denied'. I've tried changing to root but get 'Authentication failed'

P.S. I was sure under Kubuntu 7 or 9 you could right click on the icon and select 'automount'. Or was it MEPIS...?

View 6 Replies View Related

Ubuntu Servers :: Unreachable /etc/fstab Cifs/smbfs Mount Halts Boot?

Jan 16, 2011

I have the following two lines at the bottom of my /etc/fstab

Quote:
//172.16.6.15/e /tmp/e cifs _netdev,iocharset=utf8,credentials=/root/.smbcredentials,gid=0 0 0
//172.16.6.15/e/Public /var/www/index/pub cifs _netdev,iocharset=utf8,credentials=/root/.smbcredentials,gid=0 0 0
My server address is 172.16.6.1.

If the destination (which is my workstation desktop) 172.16.6.15 is offline when the server tries to boot, the entire boot procedure halts with the following message: Unable to find suitable address. mountall: mount <destination> terminated with status 2 The problem is that my server runs headlessly, and every time something silly like this happens where you'd normally expect the OS to continue regardless, I'm forced to plug a monitor in and diagnose on console

So my question: Is there any way to make it proceed with the boot normally despite the host being unreachable? I could probably chuck a mount command into crontab or /etc/rc.local or a /etc/network/if-up.d script, but isn't this the way it really should be done (/etc/fstab)? If so, then we shouldn't expect the entire boot to halt just because a network share can't be mounted, right? While on the topic of a headless ubuntu server 10.10 not booting without some kind of intervention, I have yet another issue: If the server goes down without proper shutdown (power failure, for example) the grub menu displays the kernel choices and there's no countdown timer. Instead, I have to manually press enter to continue the boot. Is there any way around this? Clearly this should not be the case for a server distribution

View 3 Replies View Related

Ubuntu :: Fstab Automount Pointed At Lucid Box Not Working?

May 10, 2010

I'm probably missing something noobishly obvious here. I recently did a fresh Lucid install on my main desktop box, which had previously been running Karmic. With Lucid I can no longer use fstab in my laptops to automatically mount the desktop's shared media drive. Using the mount command works fine. One laptop is running Karmic, the other is running Hardy.This is the line in fstab on both laptops:

Code:
//192.168.0.123/multimedia /media/multimedia cifs username=x,password=y 0 0
This is unchanged since the desktop was running Karmic, where auto-mounting from the lappys worked just

[code]....

View 9 Replies View Related

Ubuntu :: Setup Two External Hard Drives To Automount In Fstab

Sep 10, 2010

I have set up two external hard drives to automount in fstab with the following lines:

/dev/sdb1 /media/DownstairsBackup ntfs-3g rw,auto,user,exec,sync 0 0
/dev/sda1 /media/UpstairsBackup ntfs-3g rw,auto,user,exec,sync 0 0

And right after I restart, all users have permission to read and write, and everything is fine. However, I have an automated backup utility (BackinTime) installed to back up particular (mounted network) directories every night, but whenever I check up on it the next day, I get the error "Unable to mount ..... Authorization required". (These network directories are mounted into the local filesystem in fstab as well.) Oddly enough, if I run BackinTime by hand as the users, it works fine. I'm running 10.04 LTS.

View 1 Replies View Related

CentOS 5 :: Restore Fstab Deleted File?

Feb 19, 2011

I accidentally deleted the file called "fstab,v" not "fstab" The files location was /etc/fstab,v if it is very important file and what its used for & how to restore?, as my server seems to be running fine, but I don't want to get into any problems later down the line.

View 5 Replies View Related

General :: Fstab Sdxx Or Uuid Or / Disk And Partitions In The Fstab File?

Jan 5, 2010

What would be the best way list disk and partitions in the fstab file?

View 1 Replies View Related

CentOS 5 Hardware :: USB External Hard Drive - Entry In Fstab File

Nov 13, 2009

I have centos 5.3 installed. I plugged in a WD usb external HD, Icon is showing up on desktop everything is working formatted with ext3. I would like to have an entry for this in my /etc/fstab file, and I need to know how to enable Quotas on some files on it.

View 3 Replies View Related

Ubuntu :: Can't Write On Fstab Bcz Of Readonly Filesystem

Jul 13, 2010

i was using ubuntu 9.04 . i had changed fstab mount option of my ubuntu partition from exec,utf8 to executf8.now i cant get the gui of my ubuntu . only command line appears and i cant edit fstab even from root. it says that the filesystem is readonly.i tried mount -o remount,rwit does'nt work.if anyone have a methode other than reinstall my ubuntu.

View 3 Replies View Related

Software :: CIFS - Unable To Find Its Location In The Filesystem Using "mount"

Apr 26, 2011

I have a CIFS share mounted from the "Places" menu and it is accessible from the desktop.I am unable to find its location in the filesystem using "mount" Where does it get mounted to?

View 1 Replies View Related

General :: Mount - Use The Advanced NTFS-FS Package To Automount A NTFS Filesystem ?

Mar 6, 2010

I want to enable Advanced NTFS-3G support (permissions and users) automatically from the fstab entry.

View 1 Replies View Related

Red Hat / Fedora :: (Repair Filesystem) 32 # - Computer Won't Boot Up After Edite The "/etc/fstab"

Jan 27, 2011

I edited /etc/fstab and after that the computer won't boot up. I got as far as (Repair filesystem) 32 #mount -w -o -remount / and it says already mounted or busy. I type (Repair filesystem) 32 #mount And it looks like all mount points are (rw) I try to edit /etc/fstab but when I save it I get told that the filesystem is READ ONLY.

View 4 Replies View Related

CentOS 5 :: Can't Get Autofs Working (CIFS)?

Oct 1, 2009

Greetings. I cannot get autofs to mount a CIFS share. I tried to follow http://wiki.centos.org/TipsAndTricks/WindowsShares .

a) Windows share is \server-01Share

b) user: backups, password: backups has READ access to this share

c) mount -t cifs //server-01/Share -o username=backups,password=backups /mnt/server-01 WORKS FINE

d) Note that most default Centos services (including all NFS stuff has been disabled on boot, if this makes any difference)

e) /etc/auto.master:

left default configuration including (should these be changed or rem'd out?:)

/misc /etc/auto.misc
/net -hosts
#added at end of file
/test/auto.test
f) created /test and /etc/auto.test
#auto.test
#note I tried rw and just r

test -fstype=cifs,rw,noperm,user=backups,pass=backups ://server-01/Share

g) ls /test = nothing
e) message log contains automount:..."lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master"

View 15 Replies View Related

CentOS 5 :: Samba CIFS - Mounting Directory On Share

Jul 22, 2009

I've to make a Windows 2000 share on my Server Linux CentOS 5.1 with all the updates installed with yum. I've a directory on a Windows 2000 that contains some images for a catalogue. I have my internet site on CentOS 5.1 with a Apache - Mysql - PHP web server. I have to mount my directory on a share in /mnt/catalogueimages and made a symbolic link from my /var/www/html/mysite/catimages to this samba share.

This is what I do following your guide a this link: [URL]
I have placed in my /etc/fstab this line:
//SERVER/C/Catalogue /mnt/catalogueimages cifs user,username=Administrator,password=,uid=apache,gid=apache 0 0
My Windows 2000 server have no password.

After that I made the symbolic link:
ln -s /mnt/catalogueimages /var/www/html/mysite/catimages
All it's OK.

The problem is that I can't see the images via browser. I have tried also to put some images in the directory /mnt/catalogueimages, deleting the mount point, in order to see if the problem was in apache: the images are visible via browser. Why I don't reach to see the images mounted with samba?

View 9 Replies View Related

Debian :: Cannot Re-write To File On Cifs Mount

May 2, 2010

I have a Western Digital "My Book" on my network which I have mounted with cifs.

If I go into it and vi a file, all is fine. I can write and save and close. When I open the file and add to it and then try to write it again, I get the message:

"thefilename" E212: Can't open file for writing

The file is owned by me still and the permissions are -rw-rw-r--

I don't understand why it works the first time and not the second. Also this same effect is observable when I save from another program to there. The first save is fine, the second can not be saved.

View 5 Replies View Related

Fedora :: CIFS Bad Performance On File Creation?

Sep 28, 2010

I am experiencing poor performance when using cifs share.Such poor performance occur only in the creation of files on the share but not in the rewrite.This is what i do:

Code:
#mount -t cifs -o guest,user=<user> //153.9.200.2/winshare /mnt/winshare/
# time dd if=/dev/zero of=/mnt/winshare/b.avi bs=1024 count=10000

[code]....

View 6 Replies View Related

CentOS 5 :: Data DVD Will Not Automount

Jan 21, 2011

The DVD was created with Nero Express on a Windows XP SP3 system and reads perfectly well there.On CentOS 5.3 (at least) it will not automaount. I can mount and dismount the DVD manually. I can access the DVD with K3b.CDs mount just fine and come up as an Icon on the Gnome desktop. This is what I would like to happen for the DVD as well. The CD mounts at /media, which puzzles me. I read through a great deal on the web, but have found nothing that addresses the specfic probem. I know the Gnome Volume Manager and HAL are gone. I tried changing the autofs settings by adding the following line to the /etc/auto.misc file

dvd-fstype=auto,nosuid,nodev :/dev/dvdrw

to join the line for the CD, and then rebooting, but without success.

View 5 Replies View Related

CentOS 5 Networking :: CIFS Mounts Hang When Pushing Data / Resolve This?

Apr 9, 2009

Ive seen this a hundred times while searching google but I can't seem to get any of the fixes suggested to work for me.

Here are the specs code...

I have other servers on the same network with the same software/hardware that never loses its mount to the windows share, and nightly backups are run through those mounts. So why does the mount on this machine fail when we do a push? The only conclusion that I can come to is there is some sort of time out on the windows server that causes this. The other servers that have this same type mount use their share every night, where as the share on this server gets used once or twice a week. Once the mount hangs I can not unmount it, I have to reboot the server. Once the server is rebooted the push works fine. But then the next week when a push is tried it hangs. What else can I check?

UPDATE: I've also tried NFS mounts and autofs mounts and they hang as well

I enabled logging by echo 1 > cifsFYI and this is what I see in var/log/message code...

Ive removed the actual file names for security concerns. Any one have ideas as to why this is happening? The only other thing I can think of to try is to swap out the NIC but it's at a remote location so I can't do that right now.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved