Ubuntu Networking :: Script To Mount Share Only If Online?
Jan 17, 2010
I'm trying to make this script that can check if the computer is online using
Code:
ping -c2 $HOST | grep 'received' | awk -F',' '{ print $2}' | awk '{ print $1}'
and then run
Code:
gvfs-mount smb://address
to mount the share. The idea is to have it check every five seconds or something until it finds the connection. writing the script because I don't really know about programming.
View 9 Replies
ADVERTISEMENT
Jan 22, 2011
I have installed ubuntu 10.10 and the Samba addon to configure my shares to my Windows terminals.This is what I got
Firewall off (utf disabled)
Internal Sata /dev/sda1 (EXT4 FS)
External USB HDD /dev/sdb1 mounted at /media/SG1500GB (EXT4 FS)
I have two shares
1. //home/test - Which I can see and access with no problems (can't write to it though even though I set the share as writable?, but, I can read from it). This is available to everyone. My windows terminal can see this folder and access it. This is on my main 80GB internal drive /dev/sda1.
2. //media/SG1500GB/Music. I set this up for everyone full access and I can see it at all my Windows machines but,I can't get into the folder. Windows keeps giving me an error stating network path not found.I also try to access it via the Nautilus (Places/Network/system/music) and get an error message "unable to mount location, Failed to mount windows share". This drive is mounted per the disk utility.
View 4 Replies
View Related
Jul 26, 2010
I have a Dell Inspiron 1720 running Ubuntu v10.04 with a wireless card.My desktop is a Dell Optiflex running WinXP.The desktop is connected via ethernet cable to a Linksys wireless router. Certain folders on the desktop are set for sharing. Up until early last week I was able to access the desktop folders from the laptop with no issues.Suddenly I am now getting this error "Unable to mount location Failed to mount Windows share" whenever I try to access the desktop folders from the laptop.I suspect an upgrade is the culprit, but not sure.
View 3 Replies
View Related
May 25, 2010
I have been trying to share folders from my main PC which is running Ubuntu 10.04. I have been able to figure out Samba enough to get my a couple of folders shared, but I have been unable to share any folders which are on my external harddrive. After entering the path in my smb.conf file they appear on the network but I am unable to navigate to them. When trying to navigate to them through the network folder on the pc they are actually connected to I get an "Unable to mount location: Failed to mount windows share" dialog box. On the windows pc I am trying to share with I get, "Windows cannot acces \Josh-Desktop
ame of folder"
My smb.conf file looks like this:
That folders I cannot access are Music and Videos.
View 9 Replies
View Related
Mar 21, 2010
i'm trying to connect to the three other machines in my house but am having quite a hard time doing so. i've never had a problem in the past with ubuntu, but, with 9.1 and windows 7, things have gotten a bit harder. i'm running 9.1 and my roommates are running windows 7. i've installed, set up and configured samba and i can see the computers on my network, but any time i try to access either of the drives, it says unable to mount location: failed to mount windows share.
View 4 Replies
View Related
Sep 5, 2010
I have recently set up an ubuntu installation on an old PC. After some fiddling with both it, and the windows 7 machine, I have managed to share all of my drives. However, when attempting to access them from ubuntu, only 2 of the 4 hard disk shares will mount, with the other 2 failing with a Unable to mount location, failed to mount windows share error message.
View 2 Replies
View Related
Mar 27, 2011
im trying to get a network setup i followed the instruction via gentoo wiki samba what i have done
[Code]...
then i did chmod 777 to the shared folders on both machines went into nautilus it sees the folder but it will not mount the folder showing the error msg:"unable to mount location failed to mount windows share" ive been searching unbuntu forums opensuseforums and google for an answer to this issue but as of right now anything that i have tried to do has failed and nothing seems to be working.
View 12 Replies
View Related
Apr 16, 2010
I'm using Unix services for windows on a windows system and shared a few folders using it; now how can I mount it on Linux?
There's no way you can search for this question online. These search terms -
"mount windows NFS share linux"
Also mean -
"mount linux NFS share windows"
and -
"mount share windows linux NFS"
Which actually means NFS 4 which supports SMB protocol.
So actually it's IMPOSSIBLE to search for this and so this will be a good sticky.
View 9 Replies
View Related
Aug 17, 2010
I'm trying to mount a windows share (that mac users use) using:mount -t cifs //x.x.x.x/Graphics /mnt/graphics -o username=x,password=x,iocharset=utf8.It mounts ok for the most part, but where the mac users put bullets in front of their file names, ubuntu displays questions marks. I've tried this without the iocharset as well and same result when I execute ll -l.
View 1 Replies
View Related
Jan 21, 2011
used to work perfectly with my password being memorised and all, I would click on network, select the desired pc and access my shares on the network perdectly. As far as I can say nothing has changed, same username and password and workgroup, however when I now select the computer I desired to connect in Nautilus it ask for my password and username (which I know), but it doesn't connect, it continually ask for it.
The weirdest part (which make me believe the problem comes from my machine) is I can mount the network drive using "mount -t smbfs", with my usual login details Why has the graphical nautilus interface stopped working?
View 1 Replies
View Related
Mar 15, 2011
in a nutshell im trying to share 2 HDD's in same machine with several windows machines1. auto login so no welcome screen.2. auto mount the drives3. share the drives with/without password 1 is fine, i did resolve issue 2 with "storage device manager" but no matter what i do i cant get it to load correctly as i cant remove the option "mount file system in read only mode" so i cant create/move/delete anything. i did also change the owner for when it mounts off root to my user, but still no avail.and i can share the drives using ubuntu, but i also have samba.not important
Code:also another 2 Q's for after i have sorted this, i need ubuntu to shut down when i simplypress the off button as this will have no mouse, keyboard or TFT attached.so then i can simply press the on button and within a min or so i can just connect to my 'network drives' and then also to enable a remote desktop viewer, i did try the inbuilt 1 but couldnt connect with my win 7 machines
View 8 Replies
View Related
Apr 21, 2010
Can I share an NFS mount with samba?
Scenario:
ServerA has an NFS Mount to ServerB at mount point /home/qlogger/logs
I can cd to /home/qlogger/logs on ServerA and see the contents as they would be on ServerB (NFS Working with proper permissions rw).
I have a samba share setup on ServerA to share the NFS Mounted Directory (/home/qlogger/logs)
I connect with my windows host and am able to view the files and folders. I can create folders just fine however; when I go to copy a file from the windows machine to the samba share I receive a message saying the file is locked.
I have disabled oplocks in samba and the problem still persists.
View 1 Replies
View Related
Aug 6, 2010
After latest updates on Ubuntu 9.10 desktop today - network connection to Samba share on a network drive have stopped working.
I'm getting following error in Nautilus
Error: Failed to mount Windows share
Please select another viewer and try again.
View 1 Replies
View Related
Oct 10, 2010
I have sent the last 5 hours (it is now 6am) and I am in no mood for lazy know-it-all'sI have returned begging and crawling back to Ubuntu (I waited a day for 10.10 to be released) and I have again stumbled across why I go back to Micro$oft's Windows.All I want to do it have a permanent share to my nas, which is on my Netgear DGND3300.I can reach it by Place -> Network -> Windows Network -> NAKALEEN -> NAS -> USB_Storagebut for the life of me I can't make it permanent. I need it as all my Movies/TV/eBooks are on this.I have followed every and I mean EVERY option I have found on Google with no luck. From the fstab/mount option to the gvfs option (as you can guess both failed)The reason it is *$&^%$^&%$ me off it that Windows can do it with a couple of mouse presses (Map Network drive). Making Ubuntu a joke in this area.
View 9 Replies
View Related
May 27, 2010
I am trying to mount a file server directory on a client machine. I tried using NFS, but could not mount the share on the client. Several respobses were given to a post on this problem. but I still was not able mount the NFS share. I decided to try instead to mount the directory as a Samba share because I can already access it using Samba from windows, or from KDE or Gnome using smb://fileserver as a desktop location icon URL. When I try to mount the Samba share I get error messages that nearly identical those that occurred with NFS. . Here are some of the setup parameters
CentOS 5.4 on client and server behind a D-Link router
server IP: 192.168.0.44 (can ping it client)
client IP: 192.168.0.101 (can ping from server)
[code]....
This is the only error message that these commands have produced in the messages log, secure log or smbd log for either machine. My immediate goal is to set up the simplest possible local mount that will allow Grsync to backup to the file server.
View 4 Replies
View Related
Feb 3, 2010
I am trying to properly mount a samba share in order to access it from a terminal and run a script that I've written over a folder in the share. How could I do that? I tried smbclient but after successfully logging in I couldn't issue the sh command. Isn't it possible to have it mounted in the /mnt folder like a normal filesystem?
View 1 Replies
View Related
Mar 14, 2010
I have an ntfs external hd; I can mount and use it fine, without entry in fstab, but not share stuff. That is to say: I can use nautilus / thunar to share folders on it without errors, but they are not accessible via the network. The issue may be that the mount point has permissions 700. I can solve that by Code:sudo mount -t ntfs-3g /dev/sdb1 /media/Databank -o umask=0,nls=utf8or by setting umask=022 in fstab, but then I can't mount it as user anymore; if I set fstab to
Code:
/dev/sdb1 /media/Databank ntfs-3g user,umask=022,nls=utf8,defaults 0 0
I get this when I try to mount it as user in the filebrowser:
[code]....
View 1 Replies
View Related
Mar 21, 2010
I'm trying to connect to the other computers on the network in my house, but, when I try to view the main file folders it tells me "unable to mount location: failed to mount windows share" I've looked everywhere I can think of and have done everything they've told me to do, and I still can't get it to work.
View 9 Replies
View Related
May 1, 2010
I have been successfully creating permanent windows share mounts on Ubuntu since v8.04 by following the instructions in [URL] My fstab file has this line
Code:
//192.168.0.2/office_d /media/office_d cifs credentials=/home/peter/.smbcredentials,dir_mode=0777,file_mode=0777 0 0
which in the past has mounted the windows share without any problems.For some reason this doesn't work anymore. The .smbcredentials file is in the same place it has been since it was created. I have verified that .smbcredentils is in the correct place.In order to find out what the problem might be, I tried
Code:
dmesg | tail
and got the following response
Quote:
[ 18.428245] type=1503 audit(1272697118.037:15): operation="capable" pid=1249 parent=1245 profile="/usr/sbin/cupsd" name="sys_admin"
[ 18.432914] usb 1-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[ 19.516273] CIFS VFS: No username specified
[code]...
I can't pretend that I understand the full message, but it seems to say that it can't find/read the .smbcredentials file and as a result can't mount the share. When I change the code to
Code:
192.168.0.2/office_d /media/office_d cifs username=xxxx,password=xxxx 0 0
where xxxx is my username and password, the share mounts without any problems.I can't work out what I am doing wrong. Has the code changed? For obvious security reasons I don't want to place the username and password in the fstab file where everyone can see it.
View 2 Replies
View Related
Jul 14, 2010
I have a usb 1tb drive that I want to share over my netowork, but when i share it through nautilus, it doesn't mount right on other computers, ect. Is there a way to mount it. The location of the drive is /media/FreeAgent Drive___
View 3 Replies
View Related
Aug 3, 2010
I've just loaded a laptop with Ubuntu 10.04, and I am unable to mount a samba share from an older Red Hat server. The problem first occurred when I tried using "Places -> Network" or "Places -> Connect to server", and the server's log gives me something like this
[2010/08/03 15:40:38, 1] auth/auth_server.c:check_smbserver_security(363)
password server 10.100.1.2 rejected the password: NT_STATUS_LOGON_FAILURE
[2010/08/03 15:40:38, 2] auth/auth.c:check_ntlm_password(319)
[code]....
View 2 Replies
View Related
Oct 29, 2010
I have a router running IPCOP with a 30 gig drive. I know the OS doesnt need that much space for a router. Can IPCOP mount and share out another partition on the same hard drive its installed on to my windows computers on my network?
View 1 Replies
View Related
Sep 29, 2010
i need to always mount the user share of my Windows server at Ubuntu login.
This is my server struture:
Server
|-Group1
| |-user1
|
|-Group2
|-user2
ive found that i need to configure pam mount and i have this example:
<volume user="user" fstype="smbfs" server="krueger" path="public"
mountpoint="/home/user/krueger" >
but i dont know what to change relative to my server folder struture.
View 9 Replies
View Related
Mar 2, 2011
When i open my network all my computers and other terms show up but when i click on them all i get is cannot mount failed to retrieve share list from server im running ubuntu 10.10 and gnome i thought i had samba4 all installed what else could i be missing.
View 1 Replies
View Related
Mar 9, 2010
I have a networked raid drive. Thecus 2100. Its running linux, and includes samba sharing. On that I have a folder shared. I can connect to and read and write from nautilus. No problems. However, I can't use other apps through that method. Its not really "mounting" that drive in the sense you'd normally think of (afaik).
If I try to mount the folder, no matter how I have tried so far (-t cifs, smbmount, etc), I can navigate the folders, but if I try to read any file I get a permission error. Looking at the permissions with 'ls -l', everything looks OK. The weird thing is, I can write a file, then read that file back as long as its the same session.
Just now I tried 'smbclient' with no special arguments. Just the server and path url. It asked for my password. Once I was in, I had no trouble getting files. I had a thread about this a while back and there were several links and all sorts of command line options to try, which I did, with no different outcome. I think its got to be something much simpler and more obvious. smbclient and nautilus seem to have no trouble. Anybody know what they're doing differently?
View 5 Replies
View Related
Jul 20, 2010
I have recently put Ubuntu 10.04 LTS on a lab computer for use as a file server, but I cannot seem to get our Windows computers to see the Ubuntu share or vise versa.
I right clicked the folder, said share, and did the samba install.I edited the samba smb.conf file per the discussions here, I edited the nsswitch.conf file per the discussion here, I installed winbind, I disabled the firewall, and I rebooted and tried tearing down the share and re-sharing. Nothing seems to work. When I try to access the folders on the windows computers, I get "Failed to retrieve share list from server". When I try to access the ubuntu machine from Windows I get nothing. I have done a ping from each machine to the other and they have no trouble. As far as I know there are no firewalls between the two computers as the Windows computers can see each other's shares just fine and I've never had issues with ports getting blocked with any of our experiments.
The workgroup for all of the Windows machines is UEDA_LAB and I made that change in smb.conf as well as putting the computer name love218-legolas.
I have attached my smb.conf and nsswitch.conf files.
My main goal is to get the ubuntu folder seen by the Windows computers (for read/write/etc) so that it can be used as a file server.
View 3 Replies
View Related
Oct 9, 2010
My computer is connected to the college lan where almost all machines are some variant of Windows OS. If i use Places > Network, while windows network is displayed, mostly it returns unable to mount shares, my workaround for this problem is I use some tool like nbtscan to see which hosts are up and then use network > Connect to Server > windows share and type in the ip address, this mounts the windows share even though Places> network doesn't display such hosts. My question is there some command line way where I can invoke nautilus to mount the windows share, ie the same job connect to server > windows share does? And is there some application like say lan surfer for windows which lists all the folders shared by a windows client.
View 3 Replies
View Related
Mar 19, 2011
I have a computer, the one I am on now, with Ubuntu 10.10, it should be completely updated... and I can network with other computers, I can access Windows XP and 7 shared locations on other computers, and I can also get Ubuntu on other computers to access this computer's shared files.What I can't do, however, is share my hardrives that are on this computer, I have tried sharing them in /media/ and etc, but it is not working, apparently you have to mount them in some mystical way.
Another problem is getting Windows machines to access Ubuntu computers on the network - which I believe is a Windows problem, so I can figure that out some other time, but importantly, I want to be able to share my hardrives over the network.
If someone can give me some instructions to mounting and sharing hardrives(internal), and even my DVD-Drives, and portable USB devices, would also be fantastic - since, in Windows you can just right click, "share", and it's done.. It is a very useful thing to have, and I don't want to use Windows on this computer anymore, but I have no choice, really, if I can't share my storage to the other computers.
View 4 Replies
View Related
Jul 8, 2011
As soon as I get the hang of remastering, I am planning to remaster my distro (I have MEPIS 8 now, but will switch to either 9 or 11) to do two things: install KDE Trinity (I don't like KDE 4), and remove all extraneous software: games, "toys," and specialized programs that it was peculiar to include on the liveCD in the first place (such as jbidwatcher, a program for monitoring eBay bids). Oh, and I'll try to make it fit into one CD (not one DVD). Since I don't like downloading DVD-sized distros in the first place ( DVDs cost more!), I might download the latest antiX MEPIS and modify it to my liking.
If I successfully remaster a new version of MEPIS to my specifications, I might as well try to share it online in case anyone would want it. Where would I upload a Linux distro to share it?
View 5 Replies
View Related
Jan 2, 2010
I have two computers running Ubuntu 9.10, both have one shared folder. These were set up via Nautilus.
On computer 1 I can see and use the shared folder of computer 2 just fine.
On computer 2 I can NOT see the shared folder of computer 1 anymore since recently. I has worked in the past.
Some more information: the name of computer 1 is "daniel", the share name is "gedeeld". So the address of the shared folder of computer 1 would be smb://daniel/gedeeld/
Opening this address in Nautilus works fine on computer 1 (that shares the folder), but results in an error on computer 2.
Error: failed to mount Windows share. Please select another viewer and try again.
View 1 Replies
View Related