What's new
  • 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!

How to mount USB part to /jffs at boot?

Amateur273

Occasional Visitor
RT-AC66U on 3.0.0.4.376.48_3

/bin/mount /dev/sda2 /jffs
or
/bin/mount --bind /tmp/mnt/jffs /jffs

in pre|post-mount scripts no not take effect.

admin@kgw:/jffs# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.0M 27.0M 0 100% /
tmpfs 117.0M 4.5M 112.5M 4% /tmp
devfs 117.0M 0 117.0M 0% /dev
/dev/mtdblock5 32.0M 1.2M 30.8M 4% /jffs
/dev/sda1 3.0G 16.5M 2.8G 1% /tmp/mnt/OPTWARE
/dev/sda2 1007.9M 1.8M 954.9M 0% /tmp/mnt/jffs
/dev/sda3 3.4G 8.5M 3.2G 0% /tmp/mnt/Data
==============
After boot, manually I can mount by both commands.
 
Mounting the USB disk there is a bad idea. The firmware expects this to be a JFFS partition, anything else could lead to unexpected results.

Pre-mount is run as the router is about to mount the disk under its expected /mnt mount point. Again, mounting a disk on two different location can lead to unexpected results.
 

Similar threads

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

Back
Top