Recovery Partition Backup - Permission Denied

AVanover5

New Member
Joined
Dec 26, 2010
Messages
18
Reaction score
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?
 

Taegost

Member
Joined
May 16, 2010
Messages
687
Reaction score
1
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...
 
OP
A

AVanover5

New Member
Joined
Dec 26, 2010
Messages
18
Reaction score
0
Location
Yuba City, CA
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...

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.
 
OP
A

AVanover5

New Member
Joined
Dec 26, 2010
Messages
18
Reaction score
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.
 
OP
A

AVanover5

New Member
Joined
Dec 26, 2010
Messages
18
Reaction score
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...
 
Top