1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Recovery Partition Backup - Permission Denied

Discussion in 'Android Hacks and Help' started by AVanover5, Dec 30, 2010.

  1. AVanover5
    Offline

    AVanover5 New Member

    Joined:
    Dec 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Yuba City, CA
    I'm having an issue backing up the recovery partition. I use the "ConnectBot" app for a local unix shell. I mounted the root directory as r/w first because by default it's r/o. Then I tried backing up the recovery partition like this:

    Code:
    $ cat /dev/mtd/mtd1 > /sdcard/mtd1.img
    But I got a permission denied error. My phone is already rooted. So what am I missing here?
  2. Taegost
    Offline

    Taegost New Member

    Joined:
    May 16, 2010
    Messages:
    688
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Tampa Bay, Fl
    I may be wrong, but I believe the internal storage (at least, certain parts of it) are mounted as RO when the phone boots. You may need to explicitly mount the dev/mtd folder as rw, perform the command, then you should remount it as RO again to prevent unwanted things from happening in there.

    My Droid Does Tapatalk...
  3. AVanover5
    Offline

    AVanover5 New Member

    Joined:
    Dec 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Yuba City, CA
    You're right, certain parts are read-only. That's why I set the main directory to read/write (using RootExplorer because it's quicker than typing, not from shell). Otherwise, I'd get a permission denied error. I guess I'll check every subdirectory from root to mtd just to be sure...

    UPDATE: Yeah, all directories are r/w. Thanks for your help anyways though Taegost. I greatly appreciate any help.
  4. AVanover5
    Offline

    AVanover5 New Member

    Joined:
    Dec 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Yuba City, CA
    I ran this and got the following output:

    Code:
    $ chdir /dev/mtd
    $ ls -l mtd1
    crw------- root		root		90,	2 2010-12-30 02:13 mtd1
    $ █
    
    The dashes are split into three parts; the user, group, and others each of which have (r)ead, (w)rite, and/or e(x)ecute. So, am I not the owner? o_O I'm logged in as root right? It says root owns it. I'm so confused... I'll try chmod...

    UPDATE: "chmod 606" mtd1 responds with operation not permitted.
  5. AVanover5
    Offline

    AVanover5 New Member

    Joined:
    Dec 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Yuba City, CA
    I'm an idiot!!

    All I had to do was login to super user with "su". I realized it when my shell was "$" and not "#". I feel so stupid right now -.- I must just be tired. No chmod needed. Wow, lmao...
Search tags for this page
/mtd: permission denied
,
android mount partition permission denied
,

android mount recovery partition

,
backup on mtd partition
,
backup recovery partition android
,
cat. permission denied on android
,
connectbot permission denied
,
dd android backup
,
recoveryx permission denied