Trouble Mounting Network Drive On Wandboard/Arch

Hi. I've installed Arch Linux on a Wandboard running Logitech Media Server (LMS). LMS needs to read my music files off of a NAS network share. I can't figure out how to mount that network share.

I was told by someone who has a similar NAS to make the following entry in etc/fstab:

//192.168.10.15/media/Music /mnt/netdrive cifs noauto,x-systemd.automount,user=nobody,password="",iocharse t=utf8,noperm,nounix,nobrl 0 0

But when I start LMS and point it to /mnt/netdrive, my media/Music folder isn't shown. Is there a problem with the way I'm trying to mount the network share?

I've tried using "root" and "admin" as username and the admin password of the NAS as password, but still no luck. I've tried mounting the share manually, but I get a "permission denied" error.

Any help would be greatly appreciated.


Similar Content



Mounting Network Share With Arch Linux: Need Rpcbind At Boot Time

Hello to all. I was having trouble mounting an NFS network share (on a NAS) on Arch Linux running on a Wandboard. This is a small dedicated headless system that has one function - running Logitech Media Server (LMS). The Linux implementation is called SqueezeOnArch (SOA).

I found a solution: The NAS (a Netgear ReadyNAS NV+) uses NFS version 3, and Arch Linux requires the rpcbind service to mount an NFS3 share. With rpcbind started, I can mount the share. But the problem is that the SOA implementation of Linux doesn't start rpcbind by default.
Now I need to figure out how to make sure that the rpcbind service is enabled and started at boot, or at some point before the share is mounted. Any suggestions are welcome.

Thanks in advance
Les

Permission Denied When Trying To Execute An Application On A SD Card

Hi,
I made some little applications with qt creator and i wanted to run them on an embedded linux board (linux 2.6.24). To transfer the files i use a SD card. If i move the applications to "/bin" after having mounted the SD card and then "chmod a+x" them then i have no problem running them.
But if i mount the SD card and try to run the applications directly in the folder where i mount it i have an error : "Permission denied". Also when using the command "ls" i notice that if i keep the files in the mounting folder and try to "chmod a+x" them, the modification don't happen. They stay "greyed" and don't go "green". (I don't know if this color code is a standart for linux terminal but maybe this could help you understand the problem).
When mounting the SD card i use the command :
Code:
mount -t vfat /dev/mmcblk0p1 /mnt/SD

So the files are located in /mnt/SD.

Am i missing something or is it not possible to run something like that ?

EDIT :
I tried "mount -t vfat -o umask=0000 /dev/mmcblk0p1 /mnt/SD" to chnage how i am mounting the SD card.

Still "Permission Denied".

With "ls -l" i can see that the permissions are staying :
-rw-rw-rw-

Even if i try something like "chmod 777".

It seems to be a problem related to the fact that the sd card is formated as fat32 but it must stay like that.

Auto Mount 2 Hard Drives Attached By USB To Router

Hi all. My first time post and very new to linux.
I am using linux Mint Debian version.

My goal is to auto mount 2 external harddrives (Each hard drive is 2TB) attached to the 2 usb ports on my asus wireless router model rt-n56r.

I have succeeded in auto mounting my first drive HDD1 by configuring fstab file:

//192.168.1.1/HDD1 /media/public cifs username=**,password=**,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

At boot this partition is mounted without issue.

In attempting to mount the second hard drive HDD2 I added another entry in fstab as follows:

//192.168.1.1/HDD2 /media/public cifs username=**,password=**,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

It appears that both HDD1 and HDD2 mount however, when entering the partition only files and directories of the second hard drive appear.

So I changed the mount point in the second hard drive to reflect /media1/public1 and after the configuration neither hard drive appears to have mounted.

I tried using UUID instead of path to partition but cannot get even 1 attached hard drive to mount.

I appreciate in advance the help and assistance to my query.

Can't Access Windows Share From Linux

Hi all. I can't connect to my Win 8.1 box from Linux Mint. I can ping the Win box successfully. I can access my Linux share from my Win box. It seems like the problem is with windows. I've been working on this problem for about three days now with no luck. I've uninstalled Norton Security in my Win box. I've deactivated Microsoft's firewall. Not helping. My smb.conf is:

[homes]
read only = no
security = domain
workgroup = WORKGROUP

[share]
comment = Shared Data
path = /home/gary/share
gues ok = yes
writeable = no
browseable = yes

To make things simple i created only one shared folder on my Win box, asm. On Linux i type: sudo mount.cifs //GARYZ97/asm /home/gary/share -o user=Gary ; Gary is apparently my correct Windows username. BTW, i've also tried gary.
Linux responds with: [sudo] password for gary: jj ; this is my correct sudo password
Next response is: Password for Gary@//GARYZ97/asm: ; here i have tried my Microsoft Account password; i've tried just hitting enter; i've tried jj my Linux password. I'm at my wits end. What am i doing wrong? I've googled so many different sites but no one seems to have the problem i have. Please help. I don't want to pull out all my hair. I can access my Linux share from Windows, edit it, save it, and i see the changes on my Linux box. I know i'm being repetitive here but i just can't access my Windows share from Linux. I have run testparm on smb.conf and no problems there. Almost forgot. After entering what i believe is my correct Windows password i get: mount error(115): Operation now in progress, and then on the next line, Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Linux Mint Share Asks For Password In Windows 7

In Linux Mint, I have right clicked on a folder and selected
"Sharing Options" -> checked the boxes to "Allow others to create and delete files in this folder" and "Guest Access..."

When I access the shared folder on Windows 7 it asks for a password. If I type a password in, it works.

I would like to configure it to not ask for a password, but just open the share.

Rsync, Reliable "copy And Paste" Type Of Backup In Case Things Break?

What I did in windows was create images of my drive and restore them.

in linux I am running

Code:
rsync -aAXv --exclude={"/home/*","/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /* /path/to/backup/folder

and this creates a folder for me with all my files, and apparently saves meta data like permissions and paths...

Since I'm using arch and things break sometimes,I'm booted into a CLI with errors and cannot figure my way out since I'm a noob... would I be able to just delete my entire root and replace it with the rsync backup without a problem?

Sharing Folders And Mounting Shares With SetGID / Samba

OK this is kinda long, so I will shorten it as much as I can, as to not be long-winded.

My current network at home:
1 - CentOS 7 desktop (server)
1 - Ubuntu 14.04 desktop
1 - Fedora 21 laptop
2 - Windows 7 desktops
some other various windows boxes also that don't get used regularly, but are on the network.

My 2 Linux desktops (which I use as servers, but they really aren't) have shared folders on them, which I share to the network via Samba (CIFS). I use Samba because Linux is smarter than Windows and Windows won't read NFS, so I share them as Samba so all devices can see them.

Generally speaking, if I share the folders on each box as 0777, I have no issues. But lately I have been wanting to implement some better security, so I wanted to SETGID and chown the shared folders from the local machine to a specific group, then change the folders to 2774.

My problem is that I keep getting permissions errors when trying to connect from the other Linux machines, and sometimes the Windows machines also. My main question is: do I CHMOD 2774 the local mount-point before mounting it? Or so I CHMOD 2774 the shared folder on the other server, then mount it locally to a folder whose permissions are different? Or do I CHMOD both of them the same?

basically the uis and gid ownerships change on a local folder when I mount a shared drive to that folder, so when I try to write or sometimes read that local folder, I get permissions errors.

I can provide any additional info needed.

Problem Setting Up Samba -- Korora 21 (Fedora)

I've got my new system up and running. It's a nice fresh change after running Linux Mint for the past 4 years. Now comes the time of setting things up the way I like them.

As part of my setup, I have a all of my DVD's backed up onto my computer so that I can use a media server in the house. I run XBMC at my TV's with a central samba server (my computer) holding the movies.

In LM, all I had to do was right-click the directory "sharing" and select SMB share and type in the name. Everything else was done for me. This doesn't seem that simple.

Here's what I've done:
1. Menu > Administration > Samba
2. Entered in all the directories to share, under the BASIC tab I've selected visibile, writeable. Under the ACCESS tab I've selected a user (see below).
3. I've created a system user called xbmc with the password of xbmc.
4. I've created a samba user called xbmc with the password of xbmc.

Still not working. So, I went into the shell where I manually started the smb service:
# systemctl start smb.service

So, I went back to Menu > Administration > Samba > Preferences:
Set workgroup to WORKGROUP (but it automatically changes it to lower case after I exit).

Drop to terminal and restart service with systemctl.

I go over to my XMBC installation and try to connect to the source and it finds the SMB share. I click on it and after about 30 seconds a window pops up asking for login credentials. I enter xbmc/xbmc and after about 30 seconds it just cycles through. XMBC doesn't offer any messages, so I went downstairs to my Windows machine and tried to connect to a network drive. I enter in \\IP\share-name and after a few seconds it asks for login credentials. I enter xbmc/xbmc but then it fails with "bad username or password".

I'm not sure what I need to do to get this working.

Here is my /etc/samba/smb.conf file:
http://pastebin.com/m9ExpPJF

System Korora 21 (just installed/updated)
kernel: 3.18.9-200.fc21.x86_64

Samba Mount Headache

I banging my head, I am unable to mount samba share. Here is the info
Samba share is in RHEL 6.5
# vi /etc/samba/smb.conf
[sambashare]
comment = samba share
path = /smbdemo
guest ok = yes
browseable = yes

# ls -dZ /smbdemo/
drwxrwxrwx. root root system_ubject_r:samba_share_t:s0 /smbdemo/

# getsebool -a | grep samba
samba_create_home_dirs --> on
samba_domain_controller --> off
samba_enable_home_dirs --> on
samba_export_all_ro --> on
samba_export_all_rw --> on
samba_portmapper --> off
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
sanlock_use_samba --> off
use_samba_home_dirs --> off
virt_use_samba --> off


Accessing this share from another Red Hat Box 6.4 (samba-client)
# smbclient -L 192.168.1.10 -U don [Works perfectly]

Now, when I try to mount the share as:

# mount.cifs //192.168.1.9/smbdemo /opt/test/ -o user=don
Password:
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)

# smbclient //192.168.1.9/smbdemo -U don
Enter don's password:
Domain=[BARNES] OS=[Unix] Server=[Samba 3.6.23-14.el6_6]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

I searched in google but no avail.

Network Configuration For Redhat 7

I just installed Redhat 7 and try to config the network , add the IP address to network card , but I got the problem.

I modify the file /etc/sysconfig/network-scripts/ifcfg-enp0s3 , the configuration is as below , and then reboot .

DEVICE="enp0s3"
NETBOOT="yes"
HWADDR="08:00:27:15:38:B7"
TYPE="Ethernet"
BOOTPROTO="none"
NAME="enp0s3"
UUID="462f4834-4fe7-43a7-84e7-83b2722e94c1"
ONBOOT="yes"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"

After reboot , I use "ip addr show" still not shown the ip address , the ip address is still blank , would advise what is wrong ? thanks