LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-04-2012, 02:56 PM   #1
mattz40
LQ Newbie
 
Registered: Mar 2005
Location: Chalottte NC
Distribution: Debian Squeeze 386
Posts: 18

Rep: Reputation: 0
Command Line Access to USB NAS Drive


I'll try to keep this as short as possible
I'm running Debian Squeeze on a more or less desktop machine. It's actually a single purpose machine squeezed into a picture frame that displays pics using feh in slide show mode. I had it running for years with etch, started getting errors and ended up upgrading to squeeze so I'm starting over setting this up.
Since I originally built this I've switched to a Netgear N600 router, and added a 1TB USB drive to the router that I can access from any home machine.
The frame connects via wireless to the router, and I can access the drive by clicking on icons.
There is (so far) one thing that I can't figure out -
1) I run feh from a script that runs automatically when the machine boots. I've had the pics on the pic frame for years but now in the interest of simplicity, I'd like to display pics stored on the USB NAS so that others can put pics on there without dealing with tightVNC.

I can get to the drive and can run a slideshow using gnome image viewer by clicking on the icons, but I can not for the life of me get feh to display images on the NAS drive by typing commands on the command line, nor can I figure out how to change directory to the NAS image folder.

According to the folder icon properties, the location of the folder holding the pics is smb://readyshare/usb_storage/Frame Pics/

The command I've used to invoke feh has been:
feh -z -q -F -X -D300 /home/user/pics
and it works fine. But when I change it to
feh -Z -q -F -X -D300 smb://readyshare/usb_storage/Frame Pics/
I get the 'no loadable images specified' error

I turned on local http access to the NAS drive, and can get to the folder with the browser, but get the same feh error when I change the 'smb:// readyshare...' to 'http://readyshare...' URL. I've tried every permutation of the location - slash in front, no slash, slash at the end, etc. No luck.

One point that may be important - There is an icon on the desktop for 'usb_storage on readyshare', however, that icon doesn't appear until after I click on the launcher I created that goes right to the folder on that drive containing the pics. That might be an issue when I get to the point of having it boot straight into the slideshow, but right now the icon is there and feh says there are no loadable images. Any advice would be appreciated.
 
Old 06-04-2012, 06:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,965

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Many applications have the capability built in to view windows shares. The original protocol was SMB hence the smb://. This lets you easily view windows files however, they are only accessible via that particular application.

If you want to access the files via the command line you will have to mount the share like:

mount -t cifs //ip_address/ready_share/usb_storage /media/file_directory

You will need to create the directory file_directory replace with a name of your on choice. The command line that starts feh replace smb://... with "/media/file_directory/Frame Pics". You will need the quotes since you have a space in the directory name.
 
Old 06-06-2012, 05:27 PM   #3
mattz40
LQ Newbie
 
Registered: Mar 2005
Location: Chalottte NC
Distribution: Debian Squeeze 386
Posts: 18

Original Poster
Rep: Reputation: 0
I'm getting closer but not there yet.

I believe what's happening is that I can't figure out the IP address of the USB drive that is attached to the router.
The router, like every other router I've seen is 192.168.1.1. I can enter that in the url space of a browser and get to the router's config screen. But if I follow that IP address with /readyshare/USB_Storage it can't find anything.
If I enter smb://readyshare/USB_Storage/FramePics into the address space of a browser it gets right in to that directory

When entering the command
mount -t cifs //192.168.1.1/readyshare/USB_Storage/FramePics /media/pics
I get the password prompt, and whether I hit enter with it blank or with a PW I get
retrying with uppercase share name then:
mount error 6 = No Such device or address

I did create a pics directory in /media before entering the mount command.

Any idea how I can determine the IP address of a USB drive connected to a router?
There is a choice in the router config that I can check which will assign an IP address and allow ftp and http access over the internet. I'd rather not check those boxes. The boxes that are checked that allow ftp and http access locally just have url names, not IP addresses. I have tried the IP address it would assign if the internet access boxes were checked since it shows it, but that didn't work either.
 
Old 06-06-2012, 05:57 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,965

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Ok, my fault I led you a bit astray. Your correct the default IP address is 192.168.1.1.
The netbios name of the router is readyshare and the share name is usb_storage. So

mount -t cifs /192.168.1.1/usb_storage /media/pics
 
Old 02-23-2013, 07:53 PM   #5
Bruce from Canada
LQ Newbie
 
Registered: Feb 2012
Location: Greater Montreal, QC, Canada (Eastern NA time zone as NYC)
Distribution: Fedora, multiple versions
Posts: 26

Rep: Reputation: Disabled
Now to see it GUI in Nautilus/Fedora 64 bit?

Quote:
Originally Posted by michaelk View Post
Ok, my fault I led you a bit astray. Your correct the default IP address is 192.168.1.1.
The netbios name of the router is readyshare and the share name is usb_storage. So

mount -t cifs /192.168.1.1/usb_storage /media/pics
Should I expect this command line answer to be eventually findable in Fedora_Nautilus, or am I looking for pie in the sky?.

Last edited by Bruce from Canada; 02-23-2013 at 07:54 PM. Reason: Did not know slash in body was illegal character.
 
Old 02-23-2013, 08:34 PM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Quote:
Originally Posted by Bruce from Canada View Post
Should I expect this command line answer to be eventually findable in Fedora_Nautilus, or am I looking for pie in the sky?.
I'm not sure what your question is. The command posted above is intended to be run in the terminal. It creates a remote mount of the shared drive so it can be accessed on the local filesystem by any services that need it. Once you run it, Nautilus will be able to navigate to the mount location as if it's located on the local disk just like everything else. Nautilus itself will not be able to run that command for you, if that's what you're asking.
 
Old 02-23-2013, 10:01 PM   #7
Bruce from Canada
LQ Newbie
 
Registered: Feb 2012
Location: Greater Montreal, QC, Canada (Eastern NA time zone as NYC)
Distribution: Fedora, multiple versions
Posts: 26

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
I'm not sure what your question is. The command posted above is intended to be run in the terminal. It creates a remote mount of the shared drive so it can be accessed on the local filesystem by any services that need it. Once you run it, Nautilus will be able to navigate to the mount location as if it's located on the local disk just like everything else. Nautilus itself will not be able to run that command for you, if that's what you're asking.
I was looking for a fully compiled RPM that I could simply search
with the Add-remove programs, install and have the problem solved with no need to get into a command line.

I would also like to be able to find on a local store shelf, a print server that would simply plug into any network with not need for OPSys specific software.
 
Old 02-24-2013, 09:38 AM   #8
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Quote:
Originally Posted by Bruce from Canada View Post
I was looking for a fully compiled RPM that I could simply search
with the Add-remove programs, install and have the problem solved with no need to get into a command line.
RPMs are used to install programs, not run little 1-liner mount commands for you. If you're so afraid of using the command line, then Linux probably isn't the operating system for you. You WILL need to use the command line from time to time in any Linux distribution.

The command line really holds the power and flexibility of this OS. Refusing to use it is like shooting yourself in the foot right before starting a marathon, you're just setting yourself up for headaches and disappointment.

Last edited by suicidaleggroll; 02-24-2013 at 09:51 AM.
 
Old 02-27-2013, 01:34 PM   #9
Bruce from Canada
LQ Newbie
 
Registered: Feb 2012
Location: Greater Montreal, QC, Canada (Eastern NA time zone as NYC)
Distribution: Fedora, multiple versions
Posts: 26

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
RPMs are used to install programs, not run little 1-liner mount commands for you. If you're so afraid of using the command line, then Linux probably isn't the operating system for you. You WILL need to use the command line from time to time in any Linux distribution.

The command line really holds the power and flexibility of this OS. Refusing to use it is like shooting yourself in the foot right before starting a marathon, you're just setting yourself up for headaches and disappointment.
My concern with the command line is not simply for myself the need to do so IMHO, is a significant deterrant to Linux' market penetration in competition with Microsoft and Windows.
 
Old 02-27-2013, 01:42 PM   #10
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,411

Rep: Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794
If Linux gained "market penetration" due to being like Windows then there would be no point in Linux .
 
  


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
how to mount usb drive in command line IN UBUNTU linux.ab Linux - Newbie 1 03-15-2010 12:57 AM
Mount USB drive from command line rcrummett Linux - Newbie 10 09-25-2008 05:16 PM
usb/cd automounting but access through command line stu_mueller Slackware 5 04-24-2008 02:17 AM
How to access a NAS from the command line? xpucto Linux - Server 7 10-10-2007 08:00 AM
How do I access my CD drive from the command line? snarvey Suse/Novell 2 03-19-2006 07:15 AM


All times are GMT -5. The time now is 03:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration