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!

Status
Not open for further replies.
Unfortunately:

Code:
/tmp/home/root# umount /dev/sda1

umount: can't unmount /tmp/mnt/usb: Device or resource busy

Unmounting using the web GUI did work, but the only way I could mount the drive again was by physically removing and inserting it again.

Note: this was at a different router. I still have to try it at the hard to reach one.
 
Unfortunately:

Code:
/tmp/home/root# umount /dev/sda1

umount: can't unmount /tmp/mnt/usb: Device or resource busy

Unmounting using the web GUI did work, but the only way I could mount the drive again was by physically removing and inserting it again.

Note: this was at a different router. I still have to try it at the hard to reach one.

You can reboot the router and that will do the same thing as I already said in my post.


Sent from my iPhone using Tapatalk
 
You can do it directly from the router SSH terminal and without losing any data ( but as a safety make a backup first )

First of all check your current USB filesystem and make note of your USB path I.e /dev/xyz ( where xyz can be anything ) by this command:

Code:
df -hT | awk '{print $1,$2,$NF}' | grep "^/dev"

After that unmount your USB drive, you can do that by disabling scripts and jffs partition on the router and then reboot it, then simply unmount the USB from the web GUI or use terminal command umount /dev/xyz ( you'll change xyz with the correct drive path here )

When the drive is successfully unmounted use this command to convert it to EXT 4 from EXT 2 without losing any data:

Code:
tune2fs -O dir_index,has_journal,uninit_bg /dev/xyz ( here again change xyz with the correct path name )

Next do a complete file system check with e2fsck command to fix and repair:

Code:
e2fsck -pf /dev/xyz

At this time your USB is converted to EXT4, now just issue this command to turn journaling off:

Code:
tune2fs -O ^has_journal /dev/xyz

Do a file system check once more:

Code:
e2fsck -pf /dev/xyz

And you're done.

Now just enable jffs and scripts on the router, reboot it and you're done.

You can test your converted file system by running this command once again:

Code:
df -hT | awk '{print $1,$2,$NF}' | grep "^/dev"

To check if journaling is properly disabled issue this command:

Code:
tune2fs -l /dev/xyz | grep features

If you don't see has_journal in the list , journaling is successfully turned off.
Thanks for this it works flawlessly.
 
You can reboot the router and that will do the same thing as I already said in my post.
This was after the reboot after turning off jffs scripts. I don’t know why it still was busy.

I will try John’s tip tomorrow on the second router. And all your other instructions of course. Thanks!
 
This was after the reboot after turning off jffs scripts. I don’t know why it still was busy.

I will try John’s tip tomorrow on the second router. And all your other instructions of course. Thanks!

Yup you can try the lazy unmount as John instructed.


Sent from my iPhone using Tapatalk
 
Unfortunately that lazy option did not work either (forgot to log the error; invalid option?). On this second router I also had to physically unplug the USB flash drive. After that it was recognized as sdb1 instead of sda1 for a couple of boots...

I have a third router to try next week.
 
I just noticed the system log is telling me that:

May 19 02:00:12 admin: AB-Solution: file 4 download failed or file is not hosts file, using backup file
May 19 02:00:13 admin: AB-Solution: file 6 download failed or file is not hosts file, using backup file
May 19 02:00:15 admin: AB-Solution: file 9 download failed or file is not hosts file, using backup file
May 19 02:00:15 admin: AB-Solution: file 10 download failed or file is not hosts file, using backup file

Is this self-correcting? Does the backup file provide the same information?
 
I just noticed the system log is telling me that:

May 19 02:00:12 admin: AB-Solution: file 4 download failed or file is not hosts file, using backup file
May 19 02:00:13 admin: AB-Solution: file 6 download failed or file is not hosts file, using backup file
May 19 02:00:15 admin: AB-Solution: file 9 download failed or file is not hosts file, using backup file
May 19 02:00:15 admin: AB-Solution: file 10 download failed or file is not hosts file, using backup file

Is this self-correcting? Does the backup file provide the same information?

run "update blocking file" manually with "u". if it fails try again.
 
Unfortunately that lazy option did not work either (forgot to log the error; invalid option?). On this second router I also had to physically unplug the USB flash drive. After that it was recognized as sdb1 instead of sda1 for a couple of boots...

I have a third router to try next week.

You're having trouble unmounting the drive or mounting it after the process?


Sent from my iPhone using Tapatalk
 
You're having trouble unmounting the drive or mounting it after the process?
Trouble unmounting on both routers (AC56U and AC68U); trouble mounting again on the second (AC68U).

Really curious what will happen on the third (AC86U).
 
Trouble unmounting on both routers (AC56U and AC68U); trouble mounting again on the second (AC68U).

Really curious what will happen on the third (AC86U).

Does web UI unmount works after disabling scripts and JFFS ?

Also once the process is done you can simply reboot the router to mount the drive instead of physically removing and connecting it again.
 
I just installed Ab-Solution on an RT-AC68U and everything is working great, with one exception; I cannot connect my email successfully. I have tried several different configurations and email servers, but always get a curl error:

curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Any suggestions on how I may resolve this?
 
I just installed Ab-Solution on an RT-AC68U and everything is working great, with one exception; I cannot connect my email successfully. I have tried several different configurations and email servers, but always get a curl error:

curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Any suggestions on how I may resolve this?

Using Gmail?

You need to turn off two step verification for your email address and I assume ABS also needs a certificate to send emails via Gmail just like normal Send mail demon needs.

https://github.com/RMerl/asuswrt-merlin/wiki/Sending-Email




Sent from my iPhone using Tapatalk
 
You'd have to edit /mnt/<your device>/adblocking/scripts/send-email.sh to get the outlook address to work.
Change this line
Code:
curl --url smtps://$SMTP:$PORT \
to
Code:
curl --url smtp://$SMTP:$PORT \
The s in smtps needs to be removed.
Then it'll work.

AB4 has that option built in to use smtps or smtp.


I wonder what you all expect me to code for the WebUI. Pie charts, cake and blinking text?
Realistically, I consider it done and a success when most if not all of the functionality from the SSH UI is working in the WebUI as well.


Hi sir
trying to get GMAIL working - I changed script by removing s in smtps - im using port 465 - I was getting error message
curl: (67) Login denied

with smtp - now i get
curl: (56) response reading failed

My password and login details are 100% correct - any ideas?
PS I also ran the script to install certificate - still no go and I have 2 stage verification off on gmail. This is on an AC5300 with V384.5 on AB 3.11.2
 
Last edited:
Status
Not open for further replies.

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!
Top