Delete the \jffs in NVRAM as a second instance to \jfss USB

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
bootit
DD-WRT Novice


Joined: 15 Oct 2024
Posts: 20

PostPosted: Tue Oct 22, 2024 4:35    Post subject: Delete the \jffs in NVRAM as a second instance to \jfss USB Reply with quote
Router Name
DD-WRT
Router Model
Asus RT-AC5300
Firmware Version
DD-WRT v3.0-r58568 std (10/15/24)
Kernel Version
Linux 4.4.302-rt232-st56 #12481 SMP Tue Oct 15 05:05:13 +07 2024 armv7l

I used administration/factory defaults but the \jffs remained in NVRAM as a second instance to \jfss USB (see below).
On services/services tab
Ticked Use JFFS2 for Client Lease DB
Unticked Use NVRAM for Client Lease DB

Do I need to delete the \jffs in NVRAM (/dev/mtdblock/4) ?

I refer to article
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=307838

It was never answered and suggests using the following command. Is this safe?
flash_erase /dev/mtd/5 0 0

I refer to article
https://wiki.dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30#Hard_Reset_on_ARM_and_other_newer_routers

It says the various resets don't clear the NVRAM so perhaps removing it is important. What is the correct method and that command line above seems like it is the way?

Thanks.

BusyBox v1.37.0 (2024-10-15 05:06:40 +07) built-in shell (ash)

0;root@DD-WRT: ~root@DD-WRT:~# df | grep jffs
/dev/mtdblock/4 2538747 3 2407672 0% /jffs
/dev/sda2 2538747 3 2407672 0% /jffs
0;root@DD-WRT: ~root@DD-WRT:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 26112 26112 0 100% /
none 512 0 512 0% /dev
/dev/mtdblock/4 2538747 3 2407672 0% /jffs
/dev/sda1 2615280 12 2615268 0% /tmp/mnt/sda1
/dev/sda3 2537723 3 2406700 0% /opt
/dev/sda3 2537723 3 2406700 0% /tmp/proftpd/users/ftp/ftp
/dev/sda3 2537723 3 2406700 0% /tmp/proftpd/users/ftp/ftp
/dev/sda3 2537723 3 2406700 0% /tmp/proftpd/users/ftp/ftp
/dev/sda2 2538747 3 2407672 0% /jffs
/dev/sda3 2537723 3 2406700 0% /tmp/proftpd/users/ftp/ftp
0;root@DD-WRT: /devroot@DD-WRT:/dev# cd /dev/mtdblock
0;root@DD-WRT: /dev/mtdblockroot@DD-WRT:/dev/mtdblock# ls
0 1 2 3 4
0;root@DD-WRT: /dev/mtdblockroot@DD-WRT:/dev/mtdblock# cd /4
-sh: cd: can't cd to /4: No such file or directory
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 15212
Location: Texas, USA

PostPosted: Tue Oct 22, 2024 15:23    Post subject: Reply with quote
There's wiki articles for a reason.
Journalling Flash File System wrote:
To unmount the JFFS:
Code:
nvram set sys_enable_jffs2=0
nvram set sys_clean_jffs2=0
nvram set jffs_mounted=0
nvram commit
reboot

Afterwards you can delete these variables with "nvram unset <variable>".

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
bootit
DD-WRT Novice


Joined: 15 Oct 2024
Posts: 20

PostPosted: Wed Oct 23, 2024 7:39    Post subject: Journalling Flash File System Reply with quote
kernel-panic69 wrote:
There's wiki articles for a reason.
Journalling Flash File System wrote:
To unmount the JFFS:
Code:
nvram set sys_enable_jffs2=0
nvram set sys_clean_jffs2=0
nvram set jffs_mounted=0
nvram commit
reboot

Afterwards you can delete these variables with "nvram unset <variable>".


Thanks for pointing me to this wiki article. I have read this before. However, at my novice level of experience, I don't necessarily realize what its saying and how to apply it. This kind of experience needs guidance from users who know and a chance for me to grow my understanding.

I assume the commands are run in Telnet? Scripting is new to me.

In the meantime I loaded something more intuitive for a new user and followed
https://wiki.dd-wrt.com/wiki/index.php/Asus_RT-AC5300
Using the ASUS Mini CFE web server

Similar to above, but using a web browser instead of the ASUS Firmware Restoration Tool

Set a static IP of 192.168.1.10 with subnet mask of /24 (255.255.255.0) on the PC you are using to flash the router.
Connect PC to one of the router's LAN ports with an ethernet cable.
Place the router in Rescue Mode using the steps above.
Open a browser and go to http://192.168.1.1
NOTE: It is recommended to click on "Clear NVRAM" / "Restore default NVRAM values" and return to page before proceeding.
Click on "Browse" and select the previously downloaded asus_rt-ac5300-firmware.trx file and click "Upload".
NOTE: Wait a minimum of 3 minutes, up to 10 minutes before proceeding. Do not disconnect from the router or power off the router.
Upon completion of upload, you should return to the page, where you can click "Reboot".
IF not, power cycle router with on/off button.
You should now be able to go to http://192.168.1.1 and be greeted by the password change page of the DD-WRT webUI.
Set username and/or password and configure to your needs.
NOTE: You will need to enter username and password to navigate away from the information page.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum