Pages: [1]   Go Down
Print

Topic: Linux Question  (Read 1077 times)

0 Members and 1 Guest are viewing this topic.
Bounce
FJR1300
*

Reputation 104
Offline Offline

GPS: USA
Miles Typed: 1507

My Photo Gallery



WWW
« on: January 04, 2019, 02:15:25 am »

I am setting up a Raspberry Pi 3b+ and want to map a remote drive for it to see.

I have NOOB installed and the Raspbian OS software I want to use as well. Everything seems hunky-dorie except the software expects a direct (USB) connection to an external drive. I doan wanna to that.

I have created the local folder that will be used by the remote mapping command

example:

/home/MyNAS

and can map to the NAS with Windows or Mac without problem (using the UID/PW combo that I'm using in the sudo command). I'm a Linux neophite and have spent hours researching the details. I am close because there's a pause before the command errors out. Early attempts bounded back quickly.

The remote path is NTFS

//server/data/public

of which server name fails quickly, so I substituted the IP address.

example of the closest I've gotten

//10.168.192.55/data/public

I've been trying to manually mount (SSH to control the headless box) using:

sudo mount -t cifs -w -o username=[name] //10.168.192.55/data/public /home/MyNAS

then manually enter the pw when asked (so it seems to be talking). But it ends up with a error (paraphrased) that it can't find the path. I'll update that with an exact error once I can get back into it tomorrow.

I made the mistake of installing Samba but it now broadcasts shares on the headless box (the opposite of what I thought I might accomplish so will remove it).

I want to eventually add the mount command to the fstab file but wanted to get it working before doing that, so will also need to know the correct syntax for the fstab version it things.

I know there are some Linux/Unix experts out there so please help.
Logged

FJR-Tips.org

IBA #285
Sport-Touring
Advertisement
*


Remove Advertisements

Bounce
FJR1300
*

Reputation 104
Offline Offline

GPS: USA
Miles Typed: 1507

My Photo Gallery



WWW
« Reply #1 on: January 04, 2019, 02:28:42 am »

As a reference point, I follow this to create the mount point on the Pi

https://thepihut.com/blogs/raspberry-pi-tutorials/26871940-connecting-to-network-storage-at-boot
Logged

FJR-Tips.org

IBA #285
Blue is Best
Light is right
*

Reputation 267
Offline Offline

Motorcycles: 2012 FJR1300 2020 GSX-S1000
GPS: Rio Rancho, NM
Miles Typed: 3299

My Photo Gallery


Blue motorcycles are fastest




Ignore
« Reply #2 on: January 04, 2019, 10:14:08 am »

Hey Bounce, I would like to help you but could you restate your issue in English so I can understand?
Logged

Past bikes: Dirt- '74 MX360, SC500 x 2, '77 YZ400, '78 YZ400, '83 CR250, '85 CR250, '86 CR250   
 Street- '74 S3400, H1500, '72 H2750 x 2, '78 GS1000C, GS1000EC x 2, '80 GS1000S, '00 1200 Bandit, '05 FJR1300, '07 ZX14, '16 1250 Bandit, '17 KTM SD GT
Advertisement



Bounce
FJR1300
*

Reputation 104
Offline Offline

GPS: USA
Miles Typed: 1507

My Photo Gallery



WWW
« Reply #3 on: January 04, 2019, 01:05:46 pm »

Have a Pi that I want to be a Plex server. Do NOT want to plug the drive directly into it (which is what the basic software expects). I need to map a remote (networked) drive to a local alias so the software on the Pi thinks it's local.

I'm really close with:

sudo mount -t cifs -o username=Admin //10.192.168.40/folders/to/data //home/pi/local/folder

It then asks for a PW, accepts it, the throws

mount error(115): Operation now in progress

if I cd to the local pi folder where it's suppose to alias to, it still shows empty. If it works, this folder to appear to be full of whatever is over on the other machine.
Logged

FJR-Tips.org

IBA #285
Pages: [1]   Go Up
Print
Jump to:  



ST.N

Copyright © 2001 - 2013 Sport-Touring.Net.
All rights reserved.

 
SimplePortal 2.3.1 © 2008-2009, SimplePortal