What's new

User NVRAM Save/Restore Utility (R26.2)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Status
Not open for further replies.
A quick update..thanks @Chrysalis for spotting the bug (and leading me to the reason I didn't spot it in my testing :oops: )

User NVRAM Save/Restore Utility
LATEST RELEASE: Release 21
6-August-2015
nvram-save-r21.zip
Download http://1drv.ms/16pENHc
===============================
Version 21 (6-August-2015)

Program Changes
  • Fix call to exception processing if not running from current directory
  • Add syslog entry for exception processing
  • Fix bug in setting jffs options moving from <378 to 378.55
 
Hmm....I didn't have the Disk Utility options as part of the save, I'll add them in the next release. But, I'm more interested in them being lost after a reboot. When I tested on my fork code, I found that there was an ASUS bug in indexing for the USB id's, such that the schedule was being saved incorrectly and made it look like the settings were lost. I wrote a fix for the next fork release for that.

As far as @RMerlin latest code, the indexing function was changed from the fork, so I'm not sure if it has the same bug or not.


Tried out the newer Script Version 21.

->Add missing Disk Utility vars

I assume this is for the USB Health Scanner scheduling.
It lost the set scheduled health scanner settings after reboot and also after usb drive unmount.

Apart from that Everything works smoothly and it might be my perception but it does appear to be a bit faster in backing up settings.
 
in what scenario would someone say no to the '-clean' option when restoring nvram
if restoring on same router/firmware revision should i say no to the '-clean' option.
my understanding is if i downgrade revision, use different firmware, different router i should say yes to '-clean'.
 
john9527

I tried downloading nvram-save-r21.zip from your site today but am being told in Firefox Blocked: may contain virus or spyware. I have not received these messages downloading earlier versions of the utility from your site.

Can you check?

Thanks.
 
Checked....
Download with IE - OK
Download with Firefox on Linux - OK
Download with Firefox on Windows - Blocked

Actually, every release gets that message when I try and download, and the message includes the identifier 'live.com'. It looks like their site checker decided to block everything on that specific live.com url.
I double checked the download and it's OK. You're safe to ignore the warning.
 
john9527

I tried downloading nvram-save-r21.zip from your site today but am being told in Firefox Blocked: may contain virus or spyware. I have not received these messages downloading earlier versions of the utility from your site.

Can you check?

Thanks.

I getting this too in Cyberfox 40.0.2
 
I getting this too in Cyberfox 40.0.2
This one really baffles me.....even if they are looking inside the zip, it's .txt, .ini and .sh files (which are a nothing to windows, another text file).

When I did a search, I found references that firefox will sometimes block whole domains if any virus was detected on it. That's the only thing I can think of. Hopefully it will clear up by itself.
 
Mozilla Firefox is blocking a MS domain, maybe there tell us something??? hah.

I love your utility none the less if not for it I would not bother to update fw. A week ago accidentally saved default factory savings over my saved setting in the utility on my usb stick and had to redo all my mac address and QOS from scratch it was not fun.

But 1 good thing came out of it, for some reason after doing that my Speed test from my pc on Speedtest.net and Optimum speed test jump from a average of 96-98mbit to 102-110mbit with QOS on which now in line with my other wired PC if not better which been showing those speed for years, my pc never did across win7 and win 10 so something changed for the good so it all good.
 
Last edited:
Blocked also Windows 10 using Firefox browser. Anyone have a solution yet?

No problem using Microsoft Edge, figures!
 
Last edited:
Thanks, John for a wonderful script and teaching this old dog some new tricks.:)
 
Pardon my ignorance, and I haven't messed around much in *ix in over a decade, but I'm wondering why all the permission errors when running as a non "admin" username? E.g.,

in the backup script output "chmod: /tmp/mnt/ASUS/backup/nvram-usr-20150918-F810.txt: Operation not permitted".

from the QuickStart file:
chmod 755 ./*.sh (this makes the package script files executable)
If you changed your router logon from the default of 'admin' you may see a permissions error.
You can safely ignore it.

I see the files as owned by my non-standard name, root group. I see the directory owned by same. /etc/passwd lists:
[myadmin]:x:0:0:[myadmin]:/root:/bin/sh
nas:x:100:100:nas:/dev/null:/dev/null
nobody:x:65534:65534:nobody:/dev/null:/dev/null
[myadmin]:x:500:500:::

So "admin" isn't even known. Is this a busybox thing? Must be something simple I'm not thinking of. Is there a workaround?
 
Pardon my ignorance, and I haven't messed around much in *ix in over a decade, but I'm wondering why all the permission errors when running as a non "admin" username? E.g.,

in the backup script output "chmod: /tmp/mnt/ASUS/backup/nvram-usr-20150918-F810.txt: Operation not permitted".
Hi,

Not sure I got exactly the point of your posting, but here my view... :rolleyes:

On my USB stick, I have copied the backup scripts via Samba from my PC and this results to this permissions:
Code:
chief@RT-AC68U:/tmp/mnt/usb-stick/NVRAM-Save.68u# ls -lah
[...]
-rwxrwxrwx    1 nobody   nobody      3.1K Aug  6 00:21 jffs-restore.sh
-rwxrwxrwx    1 nobody   nobody      4.3K Aug  6 00:21 nvram-excp-merlin.sh
-rwxrwxrwx    1 nobody   nobody     19.6K Aug  6 00:21 nvram-merlin.ini
-rwxrwxrwx    1 nobody   nobody      2.6K Aug  6 00:21 nvram-restore.sh
-rwxrwxrwx    1 nobody   nobody      1.5K Aug  6 00:21 nvram-sample.ini
-rwxrwxrwx    1 nobody   nobody     12.1K Aug  6 00:21 nvram-save.sh
-rwxrwxrwx    1 nobody   nobody       313 Aug  6 00:21 nvram-user-sample.sh
[...]
Can you check the real permission set on your case?

What do you mean with "non admin" user? On the router you have only one user and this is the admin (in your case myadmin)... :eek:

With kind regards
Joe :cool:
 
Point of post is to find out/understand why I'm getting the permission errors. Thought that was clear form post.

"Non Admin" user means I have changed the name from default of admin to something else, like your "myadmin" so as to complicate anybody assuming it's stock ASUS for purposes of logging in.

My stick may be FAT32--will have to unmount, take it to a PC, and check. Is there a better choice for filesystem which can go both ways?

my permissions:
Code:
ASUSWRT RT-AC66U_3.0.0.4 Wed Aug 19 12:02:37 UTC 2015
my_admin@RT-AC66U:/tmp/home/root# ls -lah /mnt/ASUS
drwxrwxrwx    4 my_admin root       16.0K Dec 31  1969 .
drwxrwxrwx    4 my_admin root          80 Sep 14 10:48 ..
-rwxrwxrwx    1 my_admin root          18 Sep  1 20:28 .___var.txt
-rwxrwxrwx    1 my_admin root           0 Jul 31 14:00 .___var.txt.18
-rwxrwxrwx    1 my_admin root          18 Sep  1 20:28 .__dwatson_var.txt
-rwxrwxrwx    1 my_admin root           0 Jul 31 14:00 .__dwatson_var.txt.18
-rwxrwxrwx    1 my_admin root          25 Jul 31 14:00 .__folder_list.txt
-rwxrwxrwx    1 my_admin root           0 Jul 31 14:00 .__folder_list.txt.25
-rwxrwxrwx    1 my_admin root          18 Sep  1 20:28 .__joanne_var.txt
-rwxrwxrwx    1 my_admin root           0 Jul 31 14:00 .__joanne_var.txt.18
-rwxrwxrwx    1 my_admin root          18 Sep  1 20:28 .__my_admin_var.txt
-rwxrwxrwx    1 my_admin root           0 Jul 31 14:00 .__my_admin_var.txt.18
-rwxrwxrwx    1 my_admin root        6.7K Aug  6 00:21 Changelog.txt
-rwxrwxrwx    1 my_admin root       13.0K Aug  6 00:21 QuickStart-linux.txt
-rwxrwxrwx    1 my_admin root       13.0K Aug  6 00:21 QuickStart-win.txt
drwxrwxrwx    2 my_admin root       32.0K Aug 30 11:55 System Volume Information
drwxrwxrwx    4 my_admin root       32.0K Sep 18 08:46 backup
-rwxrwxrwx    1 my_admin root        3.1K Aug  6 00:21 jffs-restore.sh
-rwxrwxrwx    1 my_admin root        4.3K Aug  6 00:21 nvram-excp-merlin.sh
-rwxrwxrwx    1 my_admin root       19.6K Aug  6 00:21 nvram-merlin.ini
-rwxrwxrwx    1 my_admin root        2.6K Aug  6 00:21 nvram-restore.sh
-rwxrwxrwx    1 my_admin root        1.5K Aug  6 00:21 nvram-sample.ini
-rwxrwxrwx    1 my_admin root       12.1K Aug  6 00:21 nvram-save.sh
-rwxrwxrwx    1 my_admin root         313 Aug  6 00:21 nvram-user-sample.sh
-rwxrwxrwx    1 my_admin root        1.3K Sep 18 08:46 nvram-util.log
my_admin@RT-AC66U:/tmp/home/root#
 
That looks to me like it should work. You can check the file system on the router with the 'mount' command without any arguments to see if its FAT32.

For me, I have my USB divided into 3 partions....ext4 which holds my swap file, NTFS for the NVRAM utility, and a FAT32 for misc use (the mix allows me to double check that everything is working for my fork release).
I don't know if its optimal, but NTFS (or ufsd when viewed on the router) works fine with the utility.
 
It's FAT16. Guessing that's the issue--permissions not native to FAT types--not anything to do with "admin" vs some renamed "admin". Maybe I need to change it to ext2? Or not worry permission errors?
 
Last edited:
That looks to me like it should work. You can check the file system on the router with the 'mount' command without any arguments to see if its FAT32.

For me, I have my USB divided into 3 partions....ext4 which holds my swap file, NTFS for the NVRAM utility, and a FAT32 for misc use (the mix allows me to double check that everything is working for my fork release).
I don't know if its optimal, but NTFS (or ufsd when viewed on the router) works fine with the utility.
 
Trying to download v21 today from the OneDrive, Chrome is telling me the file is malicious and blocks the download. Tried v20 as well and got the same. Ideas?
--
bc
 
Status
Not open for further replies.

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Top