OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

Impact of new mount strategy on Frater's Optware scripts

 
Learn about scoring Download Discussion's Raw Score: 244827.0
September 7, 2011 04:17 AM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

wabe

Member

Upgraded to your build last night - all went well. Haven't noticed any wi-fi problems due to the new Brodcom driver yet as been reported by others in the dd-wrt forum.

Noticed that Frater's optware scripts doesn't work as intended due to the new mount strategy. What I had to do was the after flashing was the following:

- Mount the Optware partition manually to "opt" using the UUID

- Reboot

After this all worked as intended

One of the nice things about Frater's service scripts is the factdefault script. In your recent image this script would kick-in automatically when a new image is flashed and restore values from the most recent backup.

The new mounting strategy involves a manual step. Another advantage of the old mounting scheme is that the scripts kick-in if the router loose it's nvram settings.

Is there a way to get Optware running automatically after a clean flash like before? Since the default settings now will not mount the Optware partition to "opt" Optware will not start "automagically".

Discussion:    Add a Comment | Comments 1-9 of 9 | Latest Comment

September 7, 2011 4:53 AM updated: September 7, 2011 4:57 AM

Is there a way to get Optware running automatically after a clean flash like before? Since the default settings now will not mount the Optware partition to "opt" Optware will not start "automagically".


Good point and I have already included LABEL support in busybox's mount, so all I need to do is to check if UUID for opt is set, if not(e.g. after reset) mount any partition that is labeled "Optware" to /opt.

So basically this is adding one line in my mount code:-)

September 7, 2011 5:30 AM

Great!! When will this enhancement be available?

September 7, 2011 3:36 PM

Noticed that you posted a revision. Is the mount fix implemented?

September 7, 2011 4:05 PM

Nope, I'm currently compiling builds that include the new automount feature, after that I run a quick test.

September 8, 2011 4:38 AM

OK, I ran a few tests and it works as expected, but I saw a few other problems, which should be fixed before I release another build.

September 8, 2011 9:02 PM

Kong thanks for playing nice with Frater's OTRW. Can't wait till your next release that mounts Optware partition to /opt

I imagine this would render the following code on my .rc_startup not needed anymore [Please confirm].

ord() {
printf '%d' "'$1"
}
insmod mbcache
insmod jbd
insmod ext2
insmod ext3
pn=1
prt="3172837 sd.$pn"
n=1
while [ $n -lt 500 ] ; do
if [ -z "$p" ] ; then
p=`grep "$prt" /proc/partitions | awk '{print$4}'`
pc=`echo $p | cut -b3`
else
grep -q '/opt' /proc/mounts && break
mknod /dev/$p b 8 $((16 * (`ord $pc` - 97) + $pn))
mount -o noatime /dev/$p /opt
fi
let n+=1
sleep 5

September 9, 2011 8:20 AM

Hi zoomlink,

yes once it works as intended this is obsolete. I just completed my code and I'll test it later on. I already tested mounting yesterday and it worked fine now, tested with 3 drives.

The new behaviour, whenever a disk is connected/removed is the following:

All partitions from all discs will be mounted, default strategy is to mount a partition that is labeled Optware to /opt and a partition labeled Jffs to /jffs
All other partitions will be mounted to /tmp/mnt. If uuids are defined they will override which partitions gets mounted to /opt or /jffs. Thus if you do a router reset Optware/Jffs labeled partitions will be already mounted to the correct location.

The new code also takes care of stopping included services in order to cleanly umount all partitions on a reboot.

The Disk Info will show mountpoints.

If you remove a disk while the router is running the mountpoints will be removed.

So basically this is a complete rewrite of the hotplug mechanism for usb drives.

Only thing missing now is a button that allows you to umount partitions for a certain drive in order to remove it while the router is running.

September 11, 2011 5:56 PM

My friend Kong.... hope you had a good weekend.

When can we expect your new revised build? The anticipation is killing me.

September 12, 2011 8:54 AM

Hi zoomlink,

did you see the new build:

http://www.myopenrouter.com/forum/thread/30970/Kong-Mod-Update-build-17598/

;-)

Discussion:    Add a Comment | Back to Top | Comments 1-9 of 9 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window