NAS Access / Permissions.....???
1 Attachment(s)
I have a USB 3TB drive sitting on a Netgear R3600 router on my network, everything related to routing/switching/DHCP etc, is turned off. I only want it there to "host" the external drive as a NAS.
The router has a static IP address on the network, my problem is that I want it to mount automatically on startup for (basically) any computer on the network that connects and have read/write ability to it. I can "see" it but cannot "get" to it. When I try what (to me) is logical, (double click the share) in the left pane of the filemanager window it returns this: An error occurred while accessing 'Home', the system responded: mount: only root can mount //192.168.0.200/USB_Storage on /home/time/readyShare/ See Attached image. Please advise on how to complete this task. Thank you Alan |
IF the usb drive keeps 192.168.0.200, you will probably have to add a line in fstab. I believe its in /etc. Man fstab should help with the syntax. There are umask and user options. I screw mine up regularly, so make a copy before mucking with it. To edit this will require sudo or root.
I'm gonna go look for an example......... https://linoxide.com/file-system/exa...stab-etcfstab/ |
Does the drive use GPT?
Is the router capable of using > 2 TB drives How is the drive formatted? Have you configured shares and login accounts etc on the router? Are other computers capable of accessing the shares? |
Quote:
|
The router is also capable of sharing files using CIFS. The manual shows it as network neighborhood on page 33.
I have an older model Netgear router and don't have any problems but I don't have KDE runing on any of my systems. |
Quote:
|
Thank you to all who responded, all of your help and suggestions are greatly appreciated and taken into account.
The analysis that the primary problem seems to be the mounting/permission rights, at least that is the first issue I am facing, and I think once solved will be the last hurdle to jump, for the most part. I am running a Plasma Desktop KDE. If that helps also see below: ================================================================================== 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux ================================================================================== Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 23 Model name: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz Stepping: 6 CPU MHz: 2400.000 CPU max MHz: 2400.0000 CPU min MHz: 800.0000 BogoMIPS: 4787.86 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 3072K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm ================================================================================== |
Ok first attempt results:
I did a right click on the dolphin icon in the "Start" menu, selected <Edit Application> from the resulting pop-out menu in the Application tab at the bottom right of the window selected <Advanced Options> in the middle of the resulting window is a "box" labeled "User" I ticked the radio button for "Run as a different user" and in the "Username:" field I put "root" selected the <OK> button and the window dismissed. Upon launching of Dolphin in the usual manner it now asked for my root password, which I provided and dolphin opened when I tried to access the NAS I received the following error message: ===================================================================== An error occurred while accessing 'USB_Storage on 192.168.0.200', the system responded: mount: wrong fs type, bad option, bad superblock on //192.168.0.200/USB_Storage, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so. ===================================================================== As the message is hinting at a "helper program" and I have herd cifs mentioned more than once, I will try to install a package through synaptic package manager to assist and will report back the results. Thank you again for all the help... Alan |
I just tried to ad myself to the user group disk as suggested:
Add your user to the "disk" group, which will allow it to mount shares as a non-root user ====================================================================================== time@SATTime-2:~$ sudo su [sudo] password for time: root@SATTime-2:/home/time# adduser time disk Adding user `time' to group `disk' ... Adding user time to group disk Done. root@SATTime-2:/home/time# Result: An error occurred while accessing 'USB_Storage on 192.168.0.200', the system responded: mount: only root can mount //192.168.0.200/USB_Storage on /home/time/readyShare/ ====================================================================================== Alan |
what I THINK I need is a directory somewhere (not sure where) named /readyShare that connects to the NAS, I think its kind of like mounting a standard usb thumb drive, but I forget how to do that....I will look this up and give it a try as well.....
|
My attempt at Creating a mount point:
Create a Mount Point root@SATTime-2:/home/time# root@SATTime-2:/home/time# mkdir /media/readyShare root@SATTime-2:/home/time# ls Desktop Documents Downloads Music Pictures Public readyShare Templates Videos root@SATTime-2:/home/time# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 232.9G 0 disk ├─sda1 8:1 0 512M 0 part /boot/efi ├─sda2 8:2 0 230.4G 0 part / └─sda3 8:3 0 2G 0 part [SWAP] sr0 11:0 1 1.2G 0 rom root@SATTime-2:/home/time# blkid /dev/sda1: UUID="3504-88C7" TYPE="vfat" PARTUUID="923b4094-c129-4335-911f-b11ef9a39de2" /dev/sda2: UUID="b9bfaa4c-eb51-4848-bf15-77cf6c1a8421" TYPE="ext4" PARTUUID="3e544cea-29fe-4501-860d-da1ed300e127" /dev/sda3: UUID="c22381a5-1f66-4a8a-8ec7-7e9a30242295" TYPE="swap" PARTUUID="e90437ee-915d-4dc0-8c14-4f6ff38f141a" /dev/sr0: UUID="2006-05-14-15-13-00-0" TYPE="udf" root@SATTime-2:/home/time# fdisk -l Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 1ED94565-3BA2-485F-BCBC-4CBBF1E85BE8 Device Start End Sectors Size Type /dev/sda1 2048 1050623 1048576 512M EFI System /dev/sda2 1050624 484243455 483192832 230.4G Linux filesystem /dev/sda3 484243456 488396799 4153344 2G Linux swap root@SATTime-2:/home/time# |
Adding CIFS and rebooting (just for good measure) seems to have done the trick, I can now read-write-mod-save files.....
Thank you all once again for your help....!!!! |
Your trying to mount a samba share i.e. SMB/CIFS. The basic syntax is
Code:
mount -t cifs //readyshare or IP address/usb_storage /path/to/mount_point I see that you have already figured it out. |
I figured it out by happenstance on my first computer, when I moved to another computer on the network it did not work the way it did on the first one....both Debian same version but the ability to mount an IP address is or was in the back of my head but I didnt think it possible like you are showing I will try that on the other machine....thanks for the tip....
|
I had the following in /etc/fstab on the second machine:
===================================================== #AUTO MOUNT NAS AT STARTUP //192.168.0.200/USB_Storage /readyShare cifs x-systemd.automount,guest,noperm,$ ===================================================== I commented it out and replaced it with: ===================================================== mount -t cifs //192.168.0.200/usb_storage /media/nas ===================================================== In the process I noticed USB_Storage with Capitol letters, I don't really think it should make a difference, however I am checking on the first machine that is working to see what I have there..... The other machine reads like this: (I will copy/paste into the other and see what happens) ===================================================== #Test to see if NAS will mount //192.168.0.200/USB_Storage /home/time/readyShare/ cifs x-systemd.automount,guest,noperm,sec=ntlm 0 0 ===================================================== |
All times are GMT -5. The time now is 09:04 AM. |