This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Permanent edit to fstab
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Permanent edit to fstab
I'm trying to mount an external SMB drive using the entries in fstab. I get it mounted but fstab gets reset after a reboot. How do I make the changes stick?
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Permanent edit to fstab
use webGUI
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
Thanks for the quick reply!raulfg3 wrote:use webGUI
I've tried that approach but am sure I'm not doing it right. I've tried mounting a custom device but guess I need to get the path correct. Any guidance you can give is appreciated.
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
Looking back at my original post I see where I may have caused some confusion. The drive I'm trying to mount is not connected physically to the NAS4Free server, but is it's own NAS. I can mount it at the CLI using mount_smbfs but that's not permanent neither is my attempt to do it through editing /etc/fstab. My ultimate objective is to rsync a drive on N4F with the other NAS.
I hope this clarifies my scenario and would welcome some advice on how to accomplish my objective.
Thanks.
I hope this clarifies my scenario and would welcome some advice on how to accomplish my objective.
Thanks.
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Permanent edit to fstab
You cannot change fstab manually
Simple way:
Add external disk over Disks|Management|HDD Management page
add mount point over Disks|Mount Point|Management page
Simple way:
Add external disk over Disks|Management|HDD Management page
add mount point over Disks|Mount Point|Management page
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
KimmoJ
- Starter

- Posts: 42
- Joined: 02 Feb 2016 15:02
- Status: Offline
Re: Permanent edit to fstab
I'm guessing this is to do with the "embedded" approach? As in, the fstab you see is on an ephemeral volume that doesn't get saved to the actual installation.
I didn't think things through when I installed mine the first time and just put zfsnap in /usr/local... worked great, right up until I rebooted and there was no more zfsnap script in that location. So I went to a full install. It will give me issues when upgrading etc, and a full install isn't recommended, but it seemed easier to me than following the other way I found to add stuff "on the side" to Nas4Free, and so far so good. The snapshot setup options in native Nas4Free are so pathetic that you have to work around them manually. It's a fantastic product otherwise but that needs serious work, as does NTPD.
I didn't think things through when I installed mine the first time and just put zfsnap in /usr/local... worked great, right up until I rebooted and there was no more zfsnap script in that location. So I went to a full install. It will give me issues when upgrading etc, and a full install isn't recommended, but it seemed easier to me than following the other way I found to add stuff "on the side" to Nas4Free, and so far so good. The snapshot setup options in native Nas4Free are so pathetic that you have to work around them manually. It's a fantastic product otherwise but that needs serious work, as does NTPD.
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
How does one add a WD Live NAS (non-USB) using the Disks|Management|HDD Management page? The only disks I see listed are the ones physically connected which I mentioned before that this disk will not be physically connected.alexey123 wrote:You cannot change fstab manually
Simple way:
Add external disk over Disks|Management|HDD Management page
add mount point over Disks|Mount Point|Management page
Yes, it looks to be the case here.KimmoJ wrote:I'm guessing this is to do with the "embedded" approach? As in, the fstab you see is on an ephemeral volume that doesn't get saved to the actual installation.
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
OK, I think I'm making progress. Slow learner yeah.
I found out how to do a mount_smbfs in the command scripts section. Now to figure out how to automate the password entry since I can't create a .nsmbrc in /home
I found out how to do a mount_smbfs in the command scripts section. Now to figure out how to automate the password entry since I can't create a .nsmbrc in /home
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Permanent edit to fstab
Another way for you
Use postinit command script
Use postinit command script
Code: Select all
mkdir /mnt/sambadrive && cp /mnt/PATH/TO/.nsmbrc /root/.nsmbrc && mount_smbfs //username@servername.local/share /mnt/sambadriveHome12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
OK I'll give that a try.
For some reason when I run the following command at CLI I get the message that cfg not found but the command still works without a password file. However, when I run the same command in command scripts as postinit it doesn't.
mount_smbfs -I 192.168.1.99 -N //username@servername/share /mnt/share
For some reason when I run the following command at CLI I get the message that cfg not found but the command still works without a password file. However, when I run the same command in command scripts as postinit it doesn't.
mount_smbfs -I 192.168.1.99 -N //username@servername/share /mnt/share
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
So I tried it and no luck. The cp worked but not the mount_smbfs. I already had the /mnt/sharename created so used the following postinit command script:
Code: Select all
cp /mnt/PATHTO/.nsmbrc /root/.nsmbrc && mount_smbfs -I 192.168.1.99 -N //usernam@servername/sharename /mnt/sharename-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
Any help?
-
KimmoJ
- Starter

- Posts: 42
- Joined: 02 Feb 2016 15:02
- Status: Offline
Re: Permanent edit to fstab
Well, you could do a full install with swap and everything. Trickier to update, but behaves more like a normal FreeBSD install. I'm just a newbie user too though, no clue exactly how much pain that entails later when it's upgrade time.Still, with ZFS drives, worst case scenario I'll arrange downtime, blow away the installation entirely, install it anew and restore a config backup... or something.
Alternatively, can't you Rsync directly from machine to machine? That would remove the need to mount anything remotely, just do Rsync over SSH.
Alternatively, can't you Rsync directly from machine to machine? That would remove the need to mount anything remotely, just do Rsync over SSH.
-
Juggler
- NewUser

- Posts: 11
- Joined: 09 Feb 2016 19:25
- Status: Offline
Re: Permanent edit to fstab
Yes, I also looked at setting up a direct rsync server/client setup but was having challenges setting it up on the WD Live.KimmoJ wrote:Alternatively, can't you Rsync directly from machine to machine? That would remove the need to mount anything remotely, just do Rsync over SSH.
-
KimmoJ
- Starter

- Posts: 42
- Joined: 02 Feb 2016 15:02
- Status: Offline
Re: Permanent edit to fstab
Not familiar with the WD product, so can't help there directly. However, if it has SSH and root access you should be able to cobble something together.
Maybe relevant: http://www.smallnetbuilder.com/nas/nas- ... -book-live (seems to be down, try it from Google's cache) http://webcache.googleusercontent.com/s ... -book-live
Maybe relevant: http://www.smallnetbuilder.com/nas/nas- ... -book-live (seems to be down, try it from Google's cache) http://webcache.googleusercontent.com/s ... -book-live