[Q] Enter root as SD card from PC - Nexus S Q&A, Help & Troubleshooting

Hi,
Some files from my efs folder were deleted (which resulted in corrupt imei, but thats another story) and I found a program that can restore deleted files from flash storage.
But the problem is that it sees only storage cards. (It sees the phone's storage if I mount it)
Is there a way to somehow mount the root of the device as a storage device? (I have the drivers of the device so I can access its root through adb or "android commander" but not through this program)
Sent from my imei messed up (half bricked)Nexus S using XDA App

Any help here?

I don't think so. Before you can mount the sd card on the computer, you have to unmount it on the phone. So in order to mount root on the computer, you might first have to first unmount root on the phone (not sure about this). I can imagine your phone having a small problem with this.
Could you copy the contents of root to the sd card (maybe in fastboot or recovery), and let the program work on the files there?

Related

[Q] App2SD working but apps cannot access SD Card

Hi,
I have a weird problem that only happened days after I installed App2SD. I used GOT Open Recovery to format my SDcard and installed App2SD, but not knowing which version to install, i installed both the normal one and the symlink one.
I proceed to install all my apps and such and everything is into the SD card. Then just today, I found that my apps cannot access the SD card. Such as the camera, even titanium reports that no card is mounted. Under settings>SD card, there used to be a value but now its shown unavailable. But if I used astro, i can access the sdcard and launch stuff from it with no problems.
I can even connect my phone to my PC and see the SD card contents using SD Share.
I tried to reinstall App2SD using the GOT Open Recovery, but unable to. It'll hang there. for both versions, with and without symlink.
May I know what is happening or what can I do to enable my phone to see my card? Can I issue commands using terminal on my phone? If so, may I know what commands?

[Q] internal sd card for samsung captivate shows as write protected

I will give some background to begin with. I had installed the Kies mini update to the 2.2 software on my Captivate. I then rooted with super one click. I have the drivers for the Captivate installed in Windows XP and I have USB debugging enabled. It recognizes the drive and will show me the contents on the computer, but it doesn't allow me to copy from the computer to the drive. I know I can use dropbox for some things, but for other things like installing a custom rom, I would like to be able to copy to the drive. It does show as mounted and mass storage is enabled on the phone. Any ideas?
If you are rooted just go into cwr and mount sd card there. if not i have no idea as i haven't kept a phone stock since a week after i got my old Moto Droid, as soon as i found out it was possible.
Well apparently the version of Clockwork Mod Recovery that I have doesn't give the option to mount the SD card. I have 2.5.1.2. I did find a way using SGS tools to download a custom rom to the root of the SD card. I was going to reinstall Debian Linux at some point on my computer so I may have better luck with using that to write to the SD card then I am having with XP.
Yeah
Make sure that the SD card isn't locked. Also, back up everything on it to your computer and do a complete format as well. And if you're wanting to write ROMs to your SD (or CWM, etc.) in Linux, you're going to have to use dd in the terminal, and most like will be writing to "sdb".
Here's a simple walkthrough just in case you don't know how to use dd:
Become root by typing "su" and following it with your password. If you don't have a root password, type in "sudo passwd" and set it.
Next you have to unmount your microSD. To see what you have mounted type in "mount". Your SD card will most likely be called "/dev/sdb" or "/media/sdb" or something along those lines (not sdb1, that is the partition on the card). Once you know what your SD is called and where it's located, type in "umount /dev/sdb", placing '/dev/sdb' with the actual location and name of your SD card.
Now we get to use dd. Type in: dd if=<insert location of IMG here without the tags I included> of=<location of your sd without the tags I included> bs=1M
Be patient, because it usually takes a while, depending on what you're writing. Good luck mate.
I was looking for an answer to this myself. Me and my girlfriend both have the same phone, galaxy S. We both put andromeda rom on it and are now going to switch to FireFly (I did, she's trying to).
Well, mounting her USB storage ends up with the internal SD card being recognized as a CD ROM and the external as a usb storage device.
Anything we try to do to her internal says there's write protection and to disable it or use something else every time we do anything.
Only even trying this because we're getting some weird "Error at line 17: symlink with SU..." blah blah....
Completely stuck here. Doesn't make any fracking sense.
same to me. what should i do? I'm trying to install Andromeda. But I can't even copy ROM file to internal SD card. HELP ME ASAP!

SDCARD (as internal storage) not recognized (file system corrupt?)

Hello, my device doesn't recognize my external sdcard I formatted as internal storage any more. I assume that the file system is corrupt. I tried to open it on a linux-based OS on my computer but it didn't work because the file system is (hopefully not) encrypted. As my last backup is 3 months old, it would be not so nice if I would loose all my photos I made until now.
I tried to acces it via ADB but it didn't work. Is it possible to repair the (encrypted) file system?
Thanks in advance.
if memorycard is encrypted, it will not work in any phone as normal SD card,
what we must do is .. Format as External by keeping in same phone , then memory card will work in other devices ( your data will be lost )
of course I can format it. But I like to repair the file system because I don't want to loose my data.
thirdpartycookie said:
of course I can format it. But I like to repair the file system because I don't want to loose my data.
Click to expand...
Click to collapse
No I doubt it. Only your phone will recognize the encryption and if it becomes corrupted you'll probably lose your data. That's why I also have all my photos also backup to Google Photos.
I cloned the SD with dd on my computer. I'll buy a new card tomorrow to exclude hardware reasons. If this doesn't work, I have to reformat it.
It worked!
It seemed that I had read-only acces to the card cause of hardware failure. The 1:1 copy with dd worked, even with the 16 GB partition table (new card has 32 GB). Now I'm do a big Backup at first.
thirdpartycookie: Can u please explain , it's happened samething for my internal SD card

Copy /data partition to a computer

Hello.
Longtime 1+1 user here, I decided to buy me a new phone.
While organizing files to copy on my new phone, I accidentally deleted /sdcard. I'm no noob, but while browsing my internal storage on Windows, I saw amongst my know folders a folder called /sdcard, which would mean its path would be /sdcard/sdcard, so I thought I should delete it, since it didn't have anything inside. The thing is it was actually my /sdcard.
So everything is gone.
Now, multiple recovery software I've tried are able to find my files, but without their original path.
What I'd like to do is use Recuva to do it. In order to do that, I have to make a copy of my /data partition to my computer. All the ways I found tell you to make a copy to your /sdcard or external card. Since the file is large (~54GB), it can't be done on internal storage. But how can I do that in my phone since it doesn't have an external card?
Any ideas?
Look there https://stackoverflow.com/questions/26967862/how-to-make-an-image-of-android-partition-to-your-pc , I hope it'll help you!
Alternatively, you can use large (64Gb+) USB stick with an OTG cable and store your dump on it

[Q] broken filesystem on sdcard

Hello
I'm looking for some help on repairing a broken filesystem on a sdcard. There is a popular issue with the Redmi Note 8T that is corrupting the filesystem when copying a lot of files to the sdcard. Technical details and questions below.
The sdcard is a 128GB Sandisk Extereme card. It's encrypted (used as Adoptable Storage), the phone has still the decryption key, so when I insert the card it shows files and directories. Before the crash there was around 100GB of data on the sdcard. Now it has only 2,8GB of used storage (for most of the time - explenation below).
I've made a dd copy of the card and copied it to a larger 256GB card and a 512GB pendrive. Both starages connected to the phone (over usb, microcard reader) are giving the same result - the files and directories are decrypted, but the filesystem is corrupted. When I insert the sdcard into the phone and check the capacity, it shows that there is -6126312313/128GB of used space. After couple of minutes, the number changes to ~100GB/128GB or to 2,8GB/128GB (which is 95% of times).
Actually only one directory is corrupted the "Camera" directory. This one had previously around 95GB of pictures. When entering over MTP protocol and trieng to open this directory, it show's an error releted with bad directory size, entering over adb shell allows to enter it, but it's empty. Over adb it also shows that its size is 120KB. But there aren't any files inside the directory.
The phone of course isn't rooted and the bootloader is locked. Android 10 on board.
I'm looking for help, or any kind of idea on how to access the images in the Camera direcotry - and couple of questions below.
1. Is there any way to fsck over adb without root?
2. Can I access the decryption key on the phone? And decrypt the partitions on linux?
3. Can the sdcard be decrypted? And if yes - will it delete the decryption key after that?
4. Can I make a dd/binary copy of the card over adb and save it (looking for a way to fsck the filesystem on linux, but for that I need a full decrypted copy of the card)?
5. Is there a known app that could repair a broken filesystem?
6. Can the phone be rooted without loosing the decryption key? The phone doesn't need to be functional after that. If accesing the directory means breaking the phone - I'll go for it.
7. Any other ideas are very welcome, will give a try on anything.
And a final one - are there any other places on the internet (except xda) where I could ask for help which I'm not aware off?
Thanks!

Categories

Resources