LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 10-14-2018, 04:38 AM   #1
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 144

Rep: Reputation: 80
Mounting windows share


Hello there.

Yesterday I spent almost 2 hours with simple task and I was close to think nothing good about my Linux skills
OK, our provider run a file server where several folders are related to movies. I just did not wanna go through them by eye, I wanted to find a file with command. So I decided to mount all folders to one and then use "find" tool. BUT, I was not able to mount it with mount cifs nor via fstab. Simply it throws errors "host is down". I started google my issue and after long time I found a solution which I did not expect.

sudo mount -v -t cifs //192.168.204.204/Filmy-dabovane /media/movies -o vers=1.0

The most important part of this command is vers=1.0. Default or higher verions simply did not work for me.

I hope this can help somebody not to spent all evening

PS: maybe I need an advanced advice. How to search a file name on windows share without mounting?

Stefan
 
Old 10-15-2018, 11:35 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,516
Blog Entries: 15

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
DOS has a FIND command built in:

PS H:\> find /?
Quote:
Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

/V Displays all lines NOT containing the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers with the displayed lines.
/I Ignores the case of characters when searching for the string.
/OFF[LINE] Do not skip files with offline attribute set.
"string" Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.
You can use that command line via CMD window or PowerShell window.

Windows also has built in search capability in Windows Explorer. If you open Windows Explorer and navigate to the directory you want to search (or parent directory of multiple subdirectories) you can search that way.
 
Old 10-15-2018, 12:04 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,708

Rep: Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379
Quote:
PS: maybe I need an advanced advice. How to search a file name on windows share without mounting?
The only way I can think of at the moment is to create a local database. You can do that with updatedb or just save the file names to a text file. You still need to connect to the share to create the database.
 
Old 10-15-2018, 03:05 PM   #4
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 144

Original Poster
Rep: Reputation: 80
Thanx Michaelk

Yes, making the txt file is a good idea, although I need to refresh the file server form time to time. Anyway, in case I connect to the smb share in Pcmanfm or Thunar, where is it mounted? Or, is it mounted? I don't know how this works.

Thx for help

EDIT: Solved by myself. The mounting point is in /run/user/1000/gvfs. Now no problem to save a folder content.

Last edited by the_waiter; 10-15-2018 at 03:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Windows share with a space in the share name Suncoast Linux - Networking 1 06-19-2009 11:15 AM
Mounting Windows share leupi Linux - Server 10 04-12-2008 09:36 AM
Mounting a Windows Share in Samba alkos333 Slackware 2 12-26-2007 08:33 AM
samba mounting windows share gunnix Linux - Software 6 06-25-2006 07:47 PM
mounting windows share with samba? lilili Linux - Software 2 03-08-2006 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration