LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2008, 08:52 PM   #1
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Rep: Reputation: 15
path to files on another machine


I am trying to make a list of songs for mpd (which is running on ubuntu computer) and it needs the full to the files. My music is on an external drive on my Windows machine.

How would I figure out what the path is?

sorry, i know this is a really basic question.
 
Old 08-12-2008, 10:31 PM   #2
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
Share your Windows drive and mount it on Linux machine with mount -t cifs or mount -t smb command. But including this drive in your /etc/fstab file will be better way.
 
Old 08-14-2008, 01:11 AM   #3
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Original Poster
Rep: Reputation: 15
looking at the format for the mount command, it seems i need to know the path to the drive to mount it.

the drive is shared on the windows computer and i tried:
//windowscomputer/shareddrive/

but it didnt work.

how do i reach that drive from the command line?
 
Old 08-14-2008, 03:50 AM   #4
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
Try to use your Windows computer's IP address instead of name in the command. For example: mount -t cifs //111.222.333.444/shareddrive/ /mnt/music.

Last edited by allez; 08-14-2008 at 03:52 AM.
 
Old 08-15-2008, 06:35 PM   #5
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Original Poster
Rep: Reputation: 15
thank you!
that moved me forward to a new problem:

me@ubuntu:~$ sudo mount -t cifs //192.168.x.x/sharedfolder/Music /mnt/music

retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

I am positive the i.p. address and name of the windows shared folder are typed correctly.

me@ubuntu:~$ dmesg | tail
[1797614.805871] CIFS VFS: cifs_mount failed w/return code = -6
[1797614.957619] CIFS VFS: cifs_mount failed w/return code = -6
[1798147.697112] CIFS VFS: cifs_mount failed w/return code = -6
[1798147.846160] CIFS VFS: cifs_mount failed w/return code = -6
[1798652.279692] CIFS VFS: cifs_mount failed w/return code = -6
[1798652.423619] CIFS VFS: cifs_mount failed w/return code = -6
[1869376.462196] CIFS VFS: cifs_mount failed w/return code = -6
[1869376.605012] CIFS VFS: cifs_mount failed w/return code = -6
[1869443.836598] CIFS VFS: cifs_mount failed w/return code = -6
[1869444.045461] CIFS VFS: cifs_mount failed w/return code = -6

I'm googling that error from dmesg but not really getting anywhere.

For what its worth, I can see the directory in gui file manager, just not the command line.
 
Old 08-19-2008, 11:48 AM   #6
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
Try to run smbtree command and show its output here.
Also try to connect to the share with smbclient utility.

Last edited by allez; 08-19-2008 at 11:50 AM.
 
  


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
Copy directories/files from Fedora 8 machine to SuSE 10.3 machine r-t Linux - Newbie 6 03-11-2008 07:54 AM
script to change unix path to windows path in all files csross Programming 8 04-29-2006 01:05 PM
trying to copy files from another machine to the local machine using telnet,..how? shrike_912 Programming 6 03-14-2006 04:45 PM
How to Transfer files between Linux machine and Window Machine rktech83 Linux - Networking 7 03-14-2006 03:10 AM
Routing - no path for one machine, OK for another loggy Linux - Networking 1 05-24-2004 05:23 PM


All times are GMT -5. The time now is 08:12 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