NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
fooboo
May 20, 2016Star
Shares disappeared after restarting Frontview manually.
ReadyNAS NV (I know, I know) running latest firmware.
Been a faithful user for years.
Somewhere between restarting frontview and nfs-kernel-server via command line (in an attempt to tighten up nfs share security), it looks like my shares disappeared from Frontview (they are still there under /c)
/etc/frontview/apache/Shares.conf is empty
/etc/frontview/samba/Shares.conf is empty
Strangely, if you look at the screenshots below, the shares now show up as user accounts so something went sideways as well as the exports (over CIFS, NFS, AFP) no longer being accessible.
If I go to a different machine and do a "showmount -e <nas>", I am able to see the NFS exports but am not able to mount (probably due to missing perms)
I am still able to ssh in and have backed up /etc onto a different machine via rsync. I have not tried creating a new share yet as I'm not sure if that might make things worse.
I'm really hoping that I can recover without having to blow everything away.
I did check the output for "df -h" and "df -i" and I'm fine on disk utilization as well as # of inodes consumed.
10 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee Retired
What's the output of the following?:
# df -h# df -i
nas01:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdc1 1.9G 343M 1.6G 18% /
tmpfs 16k 0 16k 0% /USB
/dev/c/c 5.4T 4.6T 825G 86% /c
nas01:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hdc1 128000 8058 119942 7% /
tmpfs 31583 1 31582 1% /USB
/dev/c/c 182812672 619305 182193367 1% /c
As mentioned, I don't think space is the issue (even though /c is getting a little full)
Here is the output of ls.
As you can see the Shares.conf are showing as zero. I'm wondering if adding a new share will help populate those files sufficiently that I can manually add the other old shares back in. Obviously, I want to avoid deleting those shares...
nas01:/etc/frontview# ls -l samba/ apache/
apache/:
total 96
lrwxrwxrwx 1 admin admin 7 May 19 14:09 1987cbba.0 -> new.pem
lrwxrwxrwx 1 admin admin 32 Nov 16 2013 a725456d.0 -> /etc/frontview/apache/apache.pem
drwxr-xr-x 2 admin admin 16384 Apr 8 2009 addons
-rw------- 1 admin admin 1555 Nov 16 2013 apache.pem
-rwxr--r-- 1 admin admin 9079 May 19 16:47 httpd.conf
-rw-r--r-- 1 admin admin 3025 May 19 14:07 new.pem
-rw------- 1 admin admin 0 Jun 14 2006 Ports.conf
-rw------- 1 admin admin 0 May 19 16:26 Shares.conf
-rw------- 1 admin admin 0 May 19 16:26 Shares.conf.1
-rw-r--r-- 1 admin admin 301 May 15 2006 ssleay.cnf
-rw------- 1 admin admin 140 May 18 13:01 Virtual.conf
samba/:
total 256
drw-rw---- 2 admin admin 16384 Jan 30 2008 addons
-rw-rw---- 1 admin admin 0 May 19 16:26 Shares.conf
-rw-rw---- 1 admin admin 294 May 19 16:26 Shares.conf.admin
-rw-rw---- 1 admin admin 294 May 19 16:26 Shares.conf.administrator
-rw-rw---- 1 admin admin 0 May 19 16:26 Shares.conf-sav
-rw-rw---- 1 admin admin 75 Apr 24 2012 smb.conf.CIFSFS
-rw-rw---- 1 admin admin 54 Mar 4 2005 smb.conf.OS2
-rw-r----- 1 admin admin 125 Apr 24 2012 smb.conf.OSX
-rw-rw---- 1 admin admin 54 Mar 4 2005 smb.conf.Samba
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.UNKNOWN
-rw-rw---- 1 admin admin 88 Sep 24 2013 smb.conf.Vista
-rw-rw---- 1 admin admin 120 Jun 5 2009 smb.conf.WfWg
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.Win2K
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.Win2K3
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.Win95
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.WinNT
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.WinXP
-rw-rw---- 1 admin admin 55 Apr 24 2012 smb.conf.WinXP64
- kohdeeNETGEAR Expert
You might be able to try restoring the original config files from /etc/default/config/etc/frontview
cp -rP /etc/default/config/etc/frontview/* /etc/frontview/
Oh cool!
I found a (semi?) intact Shares.conf at
/etc/default/config/etc/default/samba/Shares.conf (it's missing /c/u001 and /c/vmdatastore)
[backup]
comment = "Backup Share"
path = "/c/backup"
public = 1
writeable = 1
oplocks = 1
[media]
comment = "Media Server Share"
path = "/c/media"
public = 1
writeable = 1
oplocks = 1
Similarly, /etc/default/config/etc/netatalk/AppleVolumes.default
After restoring the files and cleaning out /etc/passwd, what do you recommend as the best way to restart things? Reboot or restart services? (AFP, CIFS and NFS are all currently impacted for me).
- kohdeeNETGEAR Expert
fooboo wrote:
I found a (semi?) intact Shares.conf at
/etc/default/config/etc/default/samba/Shares.conf (it's missing /c/u001 and /c/vmdatastore)
No, that's actually the default config file; that's the config it would have used if you factory defaulted. You can copy the default config Shares.conf to the /etc/frontview/samba/Shares.conf to match your existing shares and get yourself back up and running. You might also be able to check /var/backups/ to see if there is a config backup there of your original shares.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!