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
ADVERTISEMENT
Aug 9, 2011
I have Ubuntu machine with cifs share mounted at boot via /etc/fstab
fstab entry looks like this:
/kain/buksica /media/buksica smbfs owner,_netdev,gid=xxxx,uid=xxxxx 0 0
When my coleague shuts down his windblows machine my Ubuntu box freezes.. I cannot even open my home folder.
Is there any way kernel can detect that this share is down and silently umount it or in some other way keep stable.
View 6 Replies
View Related
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
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
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
Apr 4, 2011
Linux box info: root@mytestbox:~# uname -a Linux mytestbox 2.6.32-30-generic-pae #59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011 i686 GNU/Linux
Windows box info: Windows Server 2008 SP2 Enterprise I've verified via --verbose output that mount.cifs is indeed processing the passed on options.
root@mytestbox:~# mount -t cifs //10.1.1.10/Test /root/testwin --verbose -o credentials=/root/testcreds,rw,nocase,noperm,noacl,nounix,noserverin o,iocharset=utf8,file_mode=0777,dir_mode=0777
[Code]...
Yet, when I type mount all it reports is (rw,mand). The share works just fine, and I can see the masking (all files are showing as rwxrwxrwx as expected etc) but mount is not listing the options?!
Is this normal expected behavior? Is there a bug report on this? I've google'd to the best of my capabilities and could not locate any such information which is why I decided to hit the forums prior to filing a bug.
View 1 Replies
View Related
Feb 6, 2010
I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.
I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:
Code:
However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.
From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:
Code:
The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.
Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.
View 3 Replies
View Related
Nov 20, 2010
Running Debian stable. I added the following command to rc.local and made it executable:mount -t cifs -o username=ted,password=computer,uid=mooreted,gid=users "//192.168.1.121/Storage Volume" /mnt/vortexAfter rebooting dmesg throws the following error:
[ 21.400697] CIFS VFS: Error connecting to IPv4 socket. Aborting operation
[ 21.400708] CIFS VFS: cifs_mount failed w/return code = -101
However, if I run the command as root after the system boots it works fine.Been using this method on other distros for over a year. No idea what the problem is.
View 4 Replies
View Related
May 7, 2010
Command used as root to mount a Windows 2003 server share to Linux Red Hat 4 x86-64 on Dell: mount -t smbfs -o username=user,workgroup=domain.edu,password=password //server.domain.edu/h$ /mnt/test The mount is successful, but only root can write to the mount. How do I set the permissions on the mount to allow certain users read/write access to the share? I am logged on the Linux server as the same user who authenticated the mount. The user can read write on the Windows server share, but not while loggged into the Linux server.
View 7 Replies
View Related
Aug 19, 2011
I have two mount points that used to work. I have them defined as cifs shares in fstab, and they map to a Windows machine, which I am able to ping from my Fedora machine, but for some reason I get a mount error 2, and the destination is not accessible. The man page doesn't really give any troubleshooting steps. Since I am mounting by IP address (which as I said has worked before), nothing has changed, although the IP address did change, which I updated in the fstab file to the new IP address (and since I have reserved this new IP address so it can't change again!)
I ran a test and shared a folder from another one of my computers, and added a line in fstab to auto-mount that, and I get a "permission denied" error 13, which is different than the error 2 I get on the other 2 shares. What should I be looking for as far as actual connectivity between the machines? I have verified that the windows machine is on and I can access the same shares from another computer.
Update: Added the host and IP address to my hosts file, and replaced the IP address with the name, and still get the same error. Also, the share name has a space in it, so I replace that with a "�40" space character (which worked in the past). I tried replacing that with an actual space, and putting quotes around the URL, but then I get a "bad URL" error.
[Code]..
View 5 Replies
View Related
Jul 28, 2011
Code:
192.168.0.133:/openils /openils nfs4 rw,_netdev,auto 0 0
fails to mount the nfs4 share, however
[code]...
View 6 Replies
View Related
Sep 24, 2009
I am trying to mount a NAS device using the hostname on my linux computer (running slax)
The command I am using is
mount //hostname/sharename /mnt/test -t smbfs -o username=***,password=***
i am getting back the error
mount error: could not find target server. TCP name hostname/sharename not found
No ip address specificed and hostname not found
I can do this mount from an older version of SLAX but i can't from this new version. smb:/ can find then through the file explorer window but I can't mount them from the command line.Is there something i am doing wrong?
View 1 Replies
View Related
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
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
Jul 29, 2010
I'm trying to add a line to fstab to mount a share on every boot. I can mount the share manually using
sudo mount -t nfs 192.168.2.1:/x_machine /mnt/test
I've added the line
192.168.2.1:/x_machine /mnt/test nfs rw,hard,intr 0 0
to my /etc/fstab file, but it doesn't seem to mount on boot. What am I missing. I tried looking in the log files for an error, but couldn't find anything. Ubuntu 10.04 x64 desktop edition.
View 7 Replies
View Related
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
Jun 19, 2010
Mount a Windows share where my user account has admin privileges. All permissions granted to the share on the windows pc side.Mount statement is as follows:sudo mount -t smbfs -o username=johndoe //winname/directoryname /mnt/tmp/Share mounts ok but does not let me create or write to an existing file. When I select Properties on the directory it says that permissions are unknown on the share looking at it from Ubuntu.
View 4 Replies
View Related
Feb 11, 2010
I've just started playing around with a Sheevaplug running a very light version of Ubuntu. I'm planning to run it with an SD card to store all my server data and a USB stick to regularly back up some of it.My problem is that the 2 partitions on my SD card mount fine at boot, but my USB stick's single partition does not. Could it be that the mounts specified in fstab are done before my USB device has finished getting alive? Mounting the USB stick manually works perfectly well.
fstab
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 /media/usb1 ext2 defaults 0 0
/dev/mmcblk0p1 /media/sd1 ext2 defaults 0 0
/dev/mmcblk0p2 /media/sd2 ext2 defaults 0 0
dmesg after boot
Code:
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver.....
In the dmesg
Code:
usb-storage: device scan complete
comes after
Code:
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
which makes me think the USB stick has missed the fstab train the 2 SD card partitions are on. And changing the order of the entries in fstab does not make any difference either.
I'm not planning to reboot my Sheevaplug every 5 minutes, but I like things to be nice and clean.
View 1 Replies
View Related
Nov 1, 2010
Forgive the terseness. I'm frazzled with this issue, perhaps I should have asked earlier. Every weekend for the past 2 months has been an endless cycle of 'repair broken system' off the install disk.
Installed from Ubuntu server 10.04LTS x86_64, + xfce-desktop Here is uname -a Linux ournas 2.6.32-25-server #45-Ubuntu SMP Sat Oct 16 20:06:58 UTC 2010 x86_64 GNU/Linux If I add my raid + lvm to the fstab file, the boot stalls, (no error it, just hangs waiting, forever). So that's a not very user friendly to start with.
I've tried the suggestions about UUID in fstab tried using LABEL instead, or even /dev/xxx. Every time it hangs. I've googled this endlessly and not found a solution. So don't ask why... since I seem to have tried every odd suggestion to fix this, I've lost track. There seems to be some consensus that whoever gave us plymouth laid an egg. Forgive me if I'm wrong, but did we need a better graphical boot if it breaks everything else?
[Code]...
View 3 Replies
View Related
Jul 18, 2011
I have been trying to work out how to set up Fedora 15 to automatically mount an NFS share at boot time. I can mount the share interactively using 'mount -t nfs server:/usr/local /usr/local'. When I put the entry in /etc/fstab, it stops the machine booting. It tries to give me a shell ('Enter root password for shell or press Control-D to exit') or something close to that. However, I cannot enter the maintenance mode, it hangs. Same thing with pressing control-D, it hangs and doesn't get any further.
I rescued the system by booting off a CD, mounting root, and removing the nfs entry from fstab. After that it booted fine. The entry I had in the fstab is: nfsserver:usr/local /usr/localnfsro,hard,bg,intr,comment=systemd.automount0 0
I put the 'comment=systemd.automount' entry in because of some related searches I did in forums.
View 14 Replies
View Related
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
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
View Related
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
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
Oct 1, 2010
I'm trying to get some of my NAS storage to mount on my xubuntu 10.04 box at boot time. I have it in fstab, and when I run
$sudo mount -a
it mounts just fine. However, I have to run that manually, I can't get it to just mount at boot time. Here's the entry from my fstab: [URL] So like I said, manually running mount -a works fine, I just can't get it to do it automatically at boot time. I feel like the auto option should take care of that, and that's what I've read around here, but it's just not working.
View 2 Replies
View Related
May 11, 2010
I recently formatted my HDD and installed Ubuntu Server 10.04 x64. This is actually the 4th install in the past week because I was testing some things. But I had this problem on at least the previous install which made me want to start fresh again. The problem I'm having is Ubuntu will not boot if I add any of my drives to fstab. If I leave it with the standard proc, /, and swap lines it works fine. As soon as I add a line for one of my RAID arrays or an NTFS formatted partition the system hangs on bootup. It doesn't matter if I have the extra drives operating or not.
The last thing I see before it hangs is:
Code:
/dev/sda1: clean, 69351/4358144 files, 583945/17401600 blocks
Here is what the fstab currently looks like:
Code:
proc /proc proc nodev,noexec,nosuid 0 0
UUID=c62ac627-46a6-4fd5-87e8-4ae0d9185d53 / ext4 errors=remount-ro 0 1
UUID=c1cee1e4-f8ac-4555-a88b-f237afdedd27 none swap sw 0 0
/dev/md0 /mnt/raid5 ext4 defaults 0 0
The other two lines which also made it hang included one which was almost exactly the same as the /dev/md0 line except it was md1 with a different mount point and another which used a UUID and was ntfs-3g. I know they work because all 3 of them were mounted by "mount -a" after putting them into fstab and they're pretty much the same as what I was using with 9.04 server.
View 3 Replies
View Related
Mar 25, 2010
I am having problems with an old laptop I have. It had windows xp on it, and after loaning it to a friend it wouldn't boot up. I decided to try linux, but I'm having problems loading it. If I try to run the liveCD it halts because its unable to mount root. If I try to install it just doesnt work well (will stop at different points).
So I figured a mem test would help. I am running the test, currently its on test #6, but it is coming up with a ton of errors. Does this mean I need to replace the RAM?
If so, this is the computer I have. Will this RAM work? I've been out of the tech game for awhile so not really following hardware anymore, and just want to double check.
View 5 Replies
View Related
Feb 10, 2010
I am trying to setup fstab to automatically mount my NTFS partitions. I have used various Mount managers to create the entries in fstab. The fstab seems fine, but when mounting at boot or even via Nautilus I get the error message that I do not have permission to mount the disk.
1) Can this permission be set in the fstab file? If so what is the syntax of the fstab entry?
2) If not, is there a tool i.e. GUI to set the mount permissions?
View 14 Replies
View Related
Nov 9, 2010
I wish it was under better circumstances...very morning at 6:25am syslog-ng stops logging, right after it attempts to log rotate. its odd... the daemon doesnt die... it gets a new PID, but doesnt write the output to /var/log/syslog.Yet if I manually restart or reload syslog-ng it works great... its just like it doesnt like the logrotate...I have googled around and tried a few things...first I changed the postrotate in the logrotate.d/syslog-ng
--------/etc/logrotate.d/syslog-ng---------
/var/log/syslog {
rotate 7
[code]....
View 2 Replies
View Related
Jul 20, 2011
I'm having some trouble in trying to make a clean solution and tougher time searching to not get the basic mounting pages/posts. So I thought I'd throw this out hereFor Oracle, we have an app server that runs /sharedapps and is an NFS mount for all other app/db nodes. What I'm working on now is that on this app server that hosts/exports /sharedapps file system has a sub folder with a CIFS mount (/sharedapps/data/appmount). e thing is that the remote nodes with the NFS mount to /sharedapps don't see the remote data in /sharedapps/data/appmount, only the main app server that has the CIFS connection. Realistically it makes sense why, but I'm trying to research if there is a way to have it do so. This is where I'm struggling. We are working on this in a dev instance right now but soon to be in production. In production, there are many DB nodes that could process a request which is why it would be best to have the NFS connection follow the remote CIFS connection
View 8 Replies
View Related