Howto umount USB and shutdown the router properly?

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


Joined: 31 May 2011
Posts: 42

PostPosted: Sun Jul 15, 2012 14:19    Post subject: Howto umount USB and shutdown the router properly? Reply with quote
Hi all,

I' looking for a way to shutdown properly my wrt160nl with dd-wrt firmware V24-sp2 (not just a reboot)

I got a USB storage on it, that must be correctly unmouted before the shutdown (when I do a umount /dev/sda1 from SSH connection, I get a busy device... (cause some folders (/mnt, /root/tmp) are binded with rom folders (optware enabled))
... and I don't know how to unbind (umount -o ??) those mounts.

A lazy umount seems to be possible, but I think that's not a perfect way.

That's important for me to find an issue because I have already broken several USB dongles.

Please help, do you have a working script to do that? runnable into a cron job maybe?...

Thanks! Smile
Sponsor
eki27
DD-WRT Novice


Joined: 31 May 2011
Posts: 42

PostPosted: Mon Jul 16, 2012 16:51    Post subject: Reply with quote
Nobody can give an advice?

I could anderstand that's not possible to shutdown completely the device (hardware cause)...

But, it's still necessary to umount properly the USB before unplug the router.

Cause of optware, there is different mount in the startup script;
mount -o bind /mnt/etc /etc
mount -o bind /mnt/root /tmp/root
mount -o bind /mnt/opt /opt

Those mounts are difficult,for me, to undo.

There is any usefull linux command to kill each process attached to /dev/sda1 for example?

Thanks!!
Detection
DD-WRT User


Joined: 19 Jan 2012
Posts: 403
Location: UK

PostPosted: Mon Jul 16, 2012 21:59    Post subject: Reply with quote
Just go to Services > USB and turn off USB Storage Support or all USB Support and hit Apply

Job done, unmounted

_________________
TPLINK TL-WR2543ND (5GHz)
WRT160NL (2.4GHz)
eki27
DD-WRT Novice


Joined: 31 May 2011
Posts: 42

PostPosted: Tue Jul 17, 2012 8:25    Post subject: Reply with quote
Thanks for the idea, but that's not working.
The device stay mounted after disabling USB core and applying changes, became effective only after reboot.
Detection
DD-WRT User


Joined: 19 Jan 2012
Posts: 403
Location: UK

PostPosted: Tue Jul 17, 2012 12:49    Post subject: Reply with quote
Ah, well maybe you can use that as a workaround until someone else finds a way for you Smile
_________________
TPLINK TL-WR2543ND (5GHz)
WRT160NL (2.4GHz)
eki27
DD-WRT Novice


Joined: 31 May 2011
Posts: 42

PostPosted: Tue Jul 17, 2012 16:11    Post subject: Reply with quote
Yes, only if someone is able to... Question

I'm not far from the solution but there is something strange in the dd-wrt structure

I kill all processes from a cron job, and also try to unmount USB dongle, but the mount is busy with something into /tmp/root... when I "ps | grep /tmp/root" I get only the current grep process, nothing else.

I can't anderstand what could be still active...

strange, strange, strange
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