Skip to content

Loading…

Backup for "dnsmasq" could not be created #5

Open
joschi70 opened this Issue · 2 comments

2 participants

@joschi70
Owner

On some devices the following error message might occur even if the device is rooted:

Unsupported device!
-- Backup for "dnsmasq" could not be created

It is currently unclear why this message occurs. Please try the following workaround if you are facing this problem.

Workaround
Open adb shell or terminal emulator app :

$ su
# cd /system/bin
# mount -o rw,remount /system
# cp -pr dnsmasq dnsmasq.pb.backup
# mount -o ro,remount /system

Now check with the following command if the copying worked ok:

# ls -l /system/bin/dnsmasq*

The output should look something like this:

-rwxr-xr-x root     shell      105864 2013-07-30 05:55 dnsmasq
-rwxr-xr-x root     shell      105864 2013-07-30 05:55 dnsmasq.pb.backup

On next start of the PirateBox app the error should no longer appear.

Workaround Note
If you get the error message

Usage: mount [-r] [-w] [-o options] [-t type] device directory

you can try the following:

# mount | grep /system
/dev/block/platform/omap/omap_hsmmc.0/by-name/system /system ext4 ro,seclabel,relatime,user_xattr,barrier=1,data=ordered 0 0

The first part of the output is the device name, which is device specific.
Now you can try to call mount with that device:

# mount -o rw,remount /dev/block/platform/omap/omap_hsmmc.0/by-name/system /system
@joschi70 joschi70 added the bug label
@joschi70 joschi70 referenced this issue from a commit
joschi70 re-mounting now tries to get the device name for the /system mount
point. this might fix issue #5
888f107
@joschi70
Owner

Some versions of the mount command seem to require a device parameter.
Version 0.5.1 of the app will try to retrieve the device parameter and passes it to the mount command.
Hope this will resolve this issue.

@alex-min

I'm just leaving this comment here for other people. I had the error and on my case, installing busybox (https://play.google.com/store/apps/details?id=stericson.busybox&hl=en) solved the problem directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.