Automount USB on jffs is ext4 Netgear R7800

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
biro
DD-WRT Novice


Joined: 08 Apr 2010
Posts: 18

PostPosted: Sat Jul 24, 2021 6:21    Post subject: Automount USB on jffs is ext4 Netgear R7800 Reply with quote
Hello,
I added USB flash drive for /jffs and /opt and noticed when automount is enabled, it mounts as ext4.
How to make it mount as ext2?
I tried disabling Automount and then manually mount -t ext2 -o noatime $(findfs LABEL=JFFS) /jffs but it said device not found.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Sat Jul 24, 2021 7:17    Post subject: Reply with quote
To get the best out of DDWRT and the forum read the forum guidelines with helpful pointers:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

If you have not already read the forum guidelines, please do !!

The general questions forum is not for asking for router help (see the stickies in that forum and the forum guidelines)

I have transferred this question to a more appropriate forum.

Also always state router model and build number.

To answer your question the ext4.ko module is backwards compatible so also does double duty to mount ext2 partitions.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
biro
DD-WRT Novice


Joined: 08 Apr 2010
Posts: 18

PostPosted: Sat Jul 24, 2021 7:27    Post subject: Reply with quote
Before posting in General forum i looked at forum structure and found lots of questions related to mount are in GQ forum:


From Forum rules topic i read this:

6. Post in the right forum, from the former step you can see if your router is Broadcom, Qualcomm/Atheros, Marvell or other, use that forum to post router specific questions, for networking questions (e.g. routing, vpn, firewall etc.) post in the Advanced Networking forum and for other things in the General Questions forum.

My question is not router specific, i ask for any router running dd-wrt and not build specific either. Nor i asked networking question so for all other things including automount i ask in GQ forum, correct me if i am wrong.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Sat Jul 24, 2021 7:33    Post subject: Reply with quote
Announcement in the general forum:

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=54959

You do not know if it is router or model specific it could well be and as you did not state router model and build number I could not transfer it to the forum it actually should have been asked in Sad

But your question has been answered Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


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

PostPosted: Sat Jul 24, 2021 11:45    Post subject: Reply with quote
This one was benign to be in General, however router model and build number information should have been provided, per the forum rules and guidelines and it would've been preferred to have been in the hardware-specific forum for the simple reason that each device (group) has specific configurations for kernel modules, packages included, etc. Even though it may seem like a "General" topic, it may not be; but the sticky at the top of General forum says that this forum is specifically not for device help. But, I've let my clicker do the clicking, and I presume this is on an R7800.
_________________
"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
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6856
Location: Romerike, Norway

PostPosted: Sat Jul 24, 2021 13:00    Post subject: Reply with quote
EXT2 or EXT4 is the format the drive is formatted with. To change it, the drive must be reformatted and all data is lost.

Both EXT2 and EXT4 is handled by the same driver, so they all show up as EXT4.
biro
DD-WRT Novice


Joined: 08 Apr 2010
Posts: 18

PostPosted: Sat Jul 24, 2021 13:58    Post subject: Reply with quote
It is R7800 DD-WRT v3.0-r46974 std (06/18/21)

Code:
root@Office:~# mount
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
ubi0:ddwrt on /jffs type ubifs (rw,relatime)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda2 on /jffs type ext4 (rw,noatime,nodiratime,nobarrier,init_itable=0)
/dev/sda1 on /opt type ext2 (rw,noatime)
/dev/sdb2 on /tmp/mnt/nas type ext4 (rw,noatime,nobarrier,data=ordered,init_itable=0)
//192.168.8.1/OFFICE_NAS on /tmp/mnt/sync type cifs (rw,relatime,vers=2.1,sec=ntlmssp,cache=strict,username=miro,domain=Office,uid=0,noforceuid,gid=0,noforcegid,
addr=192.168.8.1,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,
echo_interval=60,actimeo=1)



/jffs is ext4. /opt is ext2 In Administration > Commands i added a startup code that unmounts /opt and mounts back as ext2 but i can't do it with jffs. It can't be unmounted i guess resource busy and will investigate further (probably minidlna must be stopped and then jffs unmounted).

I wonder if i can avoid all this just by disabling automount and mount it manually with startup commands.
I guess i have to load kernel modules because on disabled automount it throws error Device not found while i see it in /dev/sdb and blkid.
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sat Jul 24, 2021 17:45    Post subject: Reply with quote
biro wrote:

I wonder if i can avoid all this just by disabling automount and mount it manually with startup commands.
I guess i have to load kernel modules because on disabled automount it throws error Device not found while i see it in /dev/sdb and blkid.


https://pastebin.com/VDZ32r2D

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum