Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Thalagyrt
Aug 10, 2006

Mode 7 Samurai posted:

I was following through a guide using fstab but in the following line

code:
//servername/sharename  /media/windowsshare  cifs  guest,uid=1000,iocharset=utf8  0  0
I am not sure what to put in the //servername/sharename part. My NAS is a WD My Cloud and when I look in the network it is listed just as WDMYCLOUD, but when I try that as the servername it doesnt work. I also tried using the IP address but that doesnt seem to want to work either.

Edit: To clarify when I try the above method it returns the following:

code:
bash: //WDMYCLOUD/Public: No such file or directory

That's not a command you throw into a prompt or shell script, that's a mount point for /etc/fstab... Your edit pretty much implies that you're dropping this fstab entry into a shell script somehow.

Adbot
ADBOT LOVES YOU

Thalagyrt
Aug 10, 2006

Mode 7 Samurai posted:

Both return "no such file or directory"

Again: these are not commands. The error message you pasted above indicates that you're trying to enter these on the command line. They are entries in /etc/fstab, which you can then mount using the mount command.

Thalagyrt
Aug 10, 2006

Mode 7 Samurai posted:

I am apparently bad at linux, I cant seem to get this to work. I am new to Linux so its all partially stuff I sort of understand and a bunch of stuff I dont, haha

Open up /etc/fstab in an editor with sudo, and pop a line in for the path you want to mount.

//ip/share /local/mount/point cifs rw,username=username,password=password 0 0

You need to make sure the local mount point exists - so if you use /data for example, make that data directory: sudo mkdir /data

Once that's done, you should be able to mount /data, and you're good to go.

  • Locked thread