Finding connected network drive in terminal

New to Debian (Or Linux in general)? Ask your questions here!

Finding connected network drive in terminal

Postby biebert » 2017-10-27 21:27

Hello,

I could not find an answer to what I hope is an easy question, it may be my lack of knowledge of the correct terminology to see any previous topics about this.

I connected to a network drive on my work server from a remote computer by typing "smb://<server>/<directory>/" info into the file manager address bar, and connected to the drive without trouble. I am now trying to access the directory from the terminal, but cannot find the directory. I can see the connected directory under the "NETWORK" area of the File Manager, so I am pretty sure I am connected. I am accustomed to finding the directory under /Volumes/<directory> on macOS terminal, but cannot find the equivalent directory on the Debian 8 OS I am currently using.

I tried just dragging and dropping the directory from the file manager into terminal, but i get this "bash: smb://<server>/<directory>/: no such file or directory"

Hopefully the terminology I used is somewhat understandable, and thank you for your help.
biebert
 
Posts: 3
Joined: 2017-10-27 21:11

Re: Finding connected network drive in terminal

Postby Soapm » 2017-10-28 00:12

You want to create a directory then mount the share there.

Here is one from my windows machine mounted in "Archive" directory...

Code: Select all
//192.168.0.xxxx/Archive /archive cifs username=****,password=****,sec=ntlmv2  0 0
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: Finding connected network drive in terminal

Postby p.H » 2017-10-28 07:21

If the file manager mounted the remote filesystem, you can found the mount point with the command "mount".
But the file manager may access the filesystem without mounting it.
p.H
 
Posts: 155
Joined: 2017-09-17 07:12

Re: Finding connected network drive in terminal

Postby debiman » 2017-10-28 08:30

output of
Code: Select all
mount
please.
User avatar
debiman
 
Posts: 1511
Joined: 2013-03-12 07:18

Re: Finding connected network drive in terminal

Postby GarryRicketson » 2017-10-28 09:04

On some file managers you can select the directory, >right click the mouse> open in terminal.
Also :
Finding connected network drive in terminal
Has a lot of tutorials and instructions on this.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4352
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Finding connected network drive in terminal

Postby biebert » 2017-10-28 19:20

I appreciate all the help, I may just need to learn more about using Debian before I can sort this out. Not sure if the fact I am using a virtual machine on my windows machine may affect any of the outputs

debiman wrote:output of
Code: Select all
mount
please.

This is my mount output
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2056552,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=3293908k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
none on /media/sf_Host type vboxsf (rw,nodev,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1646956k,mode=700,uid=1000,gid=1000)

Soapm wrote:You want to create a directory then mount the share there.

Here is one from my windows machine mounted in "Archive" directory...

Code: Select all
//192.168.0.xxxx/Archive /archive cifs username=****,password=****,sec=ntlmv2  0 0


I tried this but unfortunately when I try to mount into the directory i created, the terminal cant seem to find the network directory I specify to mount into the directory on my machine

GarryRicketson wrote:On some file managers you can select the directory, >right click the mouse> open in terminal.
Also :
Finding connected network drive in terminal
Has a lot of tutorials and instructions on this.


the right click thing works for other directories, just not the one that appears to be mounted under NETWORK. the search link was helpful, most of them refer to using the smbclient, or mountsmb, but those don't seem to be commands recognized by my machine, I made sure samba was installed. or they refer to finding ~/gvfs, which I found but had nothing in it

Thanks again for the help
biebert
 
Posts: 3
Joined: 2017-10-27 21:11

Re: Finding connected network drive in terminal

Postby debiman » 2017-10-29 12:35

biebert wrote:This is my mount output...

no remote drive seems to be mounted.
which means you can't access it, whether in a terminal or elsewhere.

i have no experience with smb/samba, but my nfs mounts show up in /etc/mtab.

i'd have a hard time understaning how you can access a remote filesystem without mounting it?
User avatar
debiman
 
Posts: 1511
Joined: 2013-03-12 07:18

Re: Finding connected network drive in terminal

Postby p.H » 2017-10-29 16:24

debiman wrote:i'd have a hard time understaning how you can access a remote filesystem without mounting it?

Some tools allow to access a filesystem contents without mounting it.
p.H
 
Posts: 155
Joined: 2017-09-17 07:12

Re: Finding connected network drive in terminal

Postby debiman » 2017-10-31 05:36

p.H wrote:Some tools allow to access a filesystem contents without mounting it.

that's a very smart remark but has no impact on the thread whatsoever.
thanks for pointing it out though, you really made my day.
User avatar
debiman
 
Posts: 1511
Joined: 2013-03-12 07:18

Re: Finding connected network drive in terminal

Postby biebert » 2017-11-02 01:15

debiman wrote:
p.H wrote:Some tools allow to access a filesystem contents without mounting it.

that's a very smart remark but has no impact on the thread whatsoever.
thanks for pointing it out though, you really made my day.


Well at least I learned that piece, now I can focus on how to actually mount it so I can access it through terminal, my attempt at a shortcut by just typing the "smb://**server**/directory" into the filemanager address bar at least gave me access, and can work from here.

Thank you for the help
biebert
 
Posts: 3
Joined: 2017-10-27 21:11

Re: Finding connected network drive in terminal

Postby debiman » 2017-11-02 05:38

biebert wrote:typing the "smb://**server**/directory" into the filemanager address bar at least gave me access, and can work from here.

quick idea:
does your filemanager offer to "open a terminal in current folder"?
try that, what is the working directory?
User avatar
debiman
 
Posts: 1511
Joined: 2013-03-12 07:18

Re: Finding connected network drive in terminal

Postby pendrachken » 2017-11-03 04:51

debiman wrote:
biebert wrote:This is my mount output...

no remote drive seems to be mounted.
which means you can't access it, whether in a terminal or elsewhere.

i have no experience with smb/samba, but my nfs mounts show up in /etc/mtab.

i'd have a hard time understaning how you can access a remote filesystem without mounting it?



Through GVFS / KIOSlaves. Like it has been done for a decade or more on GNOME / KDE respectively. Like it is working here since the OP can access the files through the GUI file manager.


Do your research or don't post. You have been giving absolute shit advice for quite a while now, I'm assuming to inflate your post count. Just stop.



I tried this but unfortunately when I try to mount into the directory i created, the terminal cant seem to find the network directory I specify to mount into the directory on my machine


You need both the name or IP address of the server and a place to mount the share.

do this step by step:

Code: Select all
#log into a terminal as your USER and type

mkdir ~/samba

#remember Linux is CaSeSensitive, so "Samba" and "samba" and "sAmba" are all different directories.

#find the IP address of the server that has your SMB shares and the share export name

su
#input your root password when asked by the su command

#USER and GROUP should be your user and group name.

mount //IP.ADDRESS/exportname /home/USER/samba USER AND PASSWORD OPTIONS

# see the man pages for mounting smb shares, or just look up the options up online


Following these directions should get you a passably mounted share. If not, exact error messages need to be kept so that people can more accurately see what is going wrong.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1288
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Finding connected network drive in terminal

Postby debiman » 2017-11-03 05:40

pendrachken wrote:Through GVFS / KIOSlaves. Like it has been done for a decade or more on GNOME / KDE respectively. Like it is working here since the OP can access the files through the GUI file manager.

Do your research or don't post. You have been giving absolute shit advice for quite a while now, I'm assuming to inflate your post count. Just stop.

i also stated that i am not familiar with samba/smb.
which seems to make use of gvfs.
and if i'm not 100% sure of something, i always make it clear in my posts.
it seems you, on the other hand, perceive yourself as an undisputed authority here?
i understand your criticism of my knowledge, but not the rest.
this reaction is totally over the top. reported.
and i think an apology is in order.
User avatar
debiman
 
Posts: 1511
Joined: 2013-03-12 07:18

Finding connected network drive in terminal

Postby GarryRicketson » 2017-11-03 13:25

Agreed, on a apology is in order.
User avatar
GarryRicketson
 
Posts: 4352
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Finding connected network drive in terminal

Postby pendrachken » 2017-11-03 14:07

Hell no, Gary. Just no. This isn't a "safe space", the little snowflake doesn't get to get out of feeling bad because he was offended by the truth. And You don't get to support him because you also have been told the same thning by multiple of us old-timers as well.


I am NOT going to apologize for telling the truth.


1: He tries to tell the OP that something isn't working at all, when the OP says in the first post that it is working. I.E. samba shares are mounted by GVFS in the file manager. Yet debiman claims that "samba isn't connected at all" since mount doesn't show it, when even the most cursory google search would show that shares mounted in these file managers DON'T use the system mount commands.

2: Posts stupid shit just to get his post count up. Like in this thread: posts "try to right click and "open terminal here" ", 5 days after the thread starter posts that the same trick doesn't work with the GVFS mounted shares.


So no, I will not apologize. Period. End of story.

If you want to ban me go right ahead, I don't give a shit anymore. You will be losing one of the few people around here that actually answers questions when they post though. Like my explanation of how to mount SMB shares from the terminal that followed in my previous post.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1288
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Next

Return to Beginners Questions

Who is online

Users browsing this forum: peter_irich and 3 guests

fashionable