Booting From Encrypted SD card - HD2 Android Q&A, Help & Troubleshooting and Genera

Is it possible to boot the HTC HD2 into android (no particular version, at least ICS) using an encrypted SD card, I want to use the phone for going on activist rally's and filming police etc, I'd like no trace to be left on the hardware of the device, only the SD card which can be easily swallowed, tossed or destroyed, the SD card would be a class 10 and I would like to have to enter a password to decrypt the card before it booted.
Theoretically anything is possible, but is this possible with currently available tools or would this be something I would have to create from scratch, I do not want to re-invent the wheel
Thoughts?
I am not going to argue politics here btw, I'm purely looking for technical responses.

davidcampbell said:
Is it possible to boot the HTC HD2 into android (no particular version, at least ICS) using an encrypted SD card, I want to use the phone for going on activist rally's and filming police etc, I'd like no trace to be left on the hardware of the device, only the SD card which can be easily swallowed, tossed or destroyed, the SD card would be a class 10 and I would like to have to enter a password to decrypt the card before it booted.
Theoretically anything is possible, but is this possible with currently available tools or would this be something I would have to create from scratch, I do not want to re-invent the wheel
Thoughts?
I am not going to argue politics here btw, I'm purely looking for technical responses.
Click to expand...
Click to collapse
I don't think it would be possible to make android boot FROM the SD card while it's encrypted. Mainly because I think you'd have to have to decrypt the sd card before allowing the device to access the system files. (But I could be wrong, I'm only assuming here). (Maybe there's a way to do modifications to the "wheel" so that the card is decrypted just for system initiation. Or maybe decrypt only one part of the SD-card that contains the system and encrypt other partitions?) You need someone with knowledge to answer all of this ... And that's not me unfortunately.
On the other hand, you can install the system on NAND. Pick a small ROM so you don't have to use a2sd or any kind of script that is SD-card reliant. Then I think it would be possible to use an encrypted SD card. (Although I think Android still uses the sdcard for apps' data storage ...)
Sorry, I couldn't be of much help

Related

[Q] Does this method work?

I would like to know if the-ebook-reader.com/nook-color-cm7.html's method will boot off an SD card. And will it end up like youtube.com/watch?v=8OEli8s0UMk&feature=player_embedded this? I'm new to this stuff, and would love an explanation. Thanks in advance.
Short answer: yes.
Maybe I'm reading your question wrong, but what makes you think any of the info in those links is fake?
Or are you just asking whether he is running CM7 off the SD card (which he clearly states in the link that he is so that you can leave the internal as "stock")?
Long answer: The Nook will start to boot up and immediately checks for an SD card. If one is present and IF it has been prepared correctly, it will then boot off the card instead of its internal ROM.
Otherwise, it just uses the SD (if present) to store files for user programs (media, apps, etc.)
This guy is walking you thru preparing the SD card to boot into CM7.
If you want to use the Nook the way God (Barnes & Noble) intended, just take out the SD card and boot that way (or put in a "regular" SD card for more book and media storage).
so....It WILL turn out like the video? I just wanna make sure it will look/function like the video >.>
Yes. He stated off with his own wallpaper, but he shows the CM7 wallpaper halfway thru. You can choose whatever you want it's Android after all.
Thanks so much

[Q] The new 7720 ROM - Encrypted Card, What to do?

Hi,
I'm trying to keep up with the thread on the development forumm but theres to mach going on there.
Can someone please explain what's that they are saying that the rom is locking the sd card and the tonight there will be another rom?
What all this about? whats the difference between the current rom and the new one?
Thanks
it locks the sd card meaning the sd can no longer be used as a regular sd card and will only work on a windows phone 7 device
yeah, at the moment, you have two choices
use the V1 ROM and be able to upgrade your ROM, you can install android still, you can not upgrade to 7712 / 7720 AND have access to your SD card UNLESS you lock the SD card
the second choice is use V2 ROM, this will lock your SD card from the start and enable updates to be much easier
Locking the SD card means that it can not be used at all on another device, Currently there isnt any software that can format the protected portion of the card, some hardware devices can format it, Some Nokia phones, some camera
Locking is actually very useful unless you want android on the same SD card
If you do want to use Android as well then get a second SD card and pop it in when you want to use it.
WP7 its self CAN clear a protected SD card but it will keep it protected, so you can reflash new WP7 ROMS with protected SD cards without any issues at all, but it will always be protected unless you use a Nokia type device.
You can also format a locked card using your wm6.5 on hd2;-)
Sent from my Schubert using XDA Windows Phone 7 App
Thank you all!
pakure said:
You can also format a locked card using your wm6.5 on hd2;-)
Sent from my Schubert using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Not much use when you've got wp7 on it hey (unless you have 2 hd2's of course )
pakure said:
You can also format a locked card using your wm6.5 on hd2;-)
Sent from my Schubert using XDA Windows Phone 7 App
Click to expand...
Click to collapse
No, it cannot. It says it is damaged on my topaz.
A buggered up partition table can be fixed with a propper format which is what 99% of people say "fixes" a broken card.
However, a "Protected" Card can not be formatted in this way, im have a chat with the SD association at the moment to see whats what, so far it is a software limitation on the PC that is stopping us clearing that data, in short if someone writes a program to do it, it will do it, the question is how!
can you guys see the partition on a PC partition app but not modify it? Or can you not even see the partition?
orangekid said:
can you guys see the partition on a PC partition app but not modify it? Or can you not even see the partition?
Click to expand...
Click to collapse
if a SD card has been locked its essentially unreadable in anything but the device that it was locked in, if you plug a locked (protected) SD card in a PC it will be detected in device manager but windows will not beable to access it, the SD association is a bit vague in their replys but apparently some OSs are able to format a protected card, MS isnt one of them unless there is undocumented flags that can be used at the command prompt, the best bet is probably Linux, I hate using Linux as a desktop but i do have it running as a VM server so i might give that a try a bit later
The funny thing is, its not complicated to do it (apparently) its just no one has really used the protected feature set of the SD standard
Also, (apparently, some SD cards use the protected area to store information other than the encryption key for the whole card, apparently this information might be used in read /write operations on the card, clearing the protected area to remove the SD card lock might have a negative impact on the cards performance.
pakure said:
You can also format a locked card using your wm6.5 on hd2;-)
Sent from my Schubert using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Sorry, but it is confirmed. Windows Mobile 6.5 can not. Apparently Ubuntu does, I am testing!
dazza9075 said:
if a SD card has been locked its essentially unreadable in anything but the device that it was locked in, if you plug a locked (protected) SD card in a PC it will be detected in device manager but windows will not beable to access it, the SD association is a bit vague in their replys but apparently some OSs are able to format a protected card, MS isnt one of them unless there is undocumented flags that can be used at the command prompt, the best bet is probably Linux, I hate using Linux as a desktop but i do have it running as a VM server so i might give that a try a bit later
The funny thing is, its not complicated to do it (apparently) its just no one has really used the protected feature set of the SD standard
Also, (apparently, some SD cards use the protected area to store information other than the encryption key for the whole card, apparently this information might be used in read /write operations on the card, clearing the protected area to remove the SD card lock might have a negative impact on the cards performance.
Click to expand...
Click to collapse
Interesting. I did a few experiments and a whole heap of reading about this yesterday (Osx doesnt recognise the card either btw):
The card became locked during the update process from 7712 to 7720 during one of the many hard resets i did whilst installing the cabs (the sd fix cab was the last cab i installed). My mistake was not bothering to change the language from its default (English USA to English UK) so it would appear the card is also not only locked to a particular device but its language also.
One could test this by inserting the card, hard resetting and choosing USA as its language, however, it took 4 hours to get the device working to 7720 so im not doing that just yet; so i tried something else.
I put the encrypted card into my hd2, entered magldr and cleared the partition using services. I then entered usb mass storage and connected the device to my PC (win 7 x64). Whilst the card was not recognised in "my computer", if you look in camera&scanners in control panel, you will see magldr is recognised as a mass storage device but the device drivers for this fail to install properly. This is probably due to the "unknown" partition taking up the full capacity of the micro sd card and why it is not recognised by the PC hence it cannot be used for storage.
Unfortunately this also means no partition software will recognise the card, nor is it recognised in any digi camera, even after allegedly clearing the partitions via magldr.
I then had a thought would a nokia emulator work in unlocking the card? to which i havent researched any further as yet.
**EDIT** Apparently someone has decrypted and formatted a card using Ubuntu, im off to download and try it
**EDIT 2** not having much luck with ubuntu either, card not recognised........
same here, ubuntu disk manager (11.04 32-bit) shows sd card but 2.2 TB and can't format the drive or volume (i tried the same to clear mbr using magldr), ubuntu is not working
WEll, they havent been much further use, all they say is that is perfectly possible to do with software, the APIs have been there for years, its just that no one has ever really paid much attention to it, with the exception of Sat-Navs, professional Music gear etc.
Ive not had a chance to play with Linux yet but i would imagin that you need to think lower level than partition / MBR levels
From what i can gather from their cryptic responses is that when a SD card is setup to use the Secure feature, the device creates a key in the secure section, only that device can then access that section, the storage space on the card is then encrypted using that key, there is no way short of cracking the key to get access to either the secure section or the storage section. However, when you use an OS or Utility that makes use of the Secure protected area its possible to clear it, this would clear all the data obviously off the card, even disk analysers wouldnt be able to see it as it would still be encrypted.
What is concerning is that the Manufacturers have grown used to this special area and use it, apparently this area is used for IO operations, (probably some kind of cache or superfetch) this speeds things up by predicting what you are going to access next
What concerning is, if you have a class 10 device that as we all ready know uses methods to speed up sequential speeds to get that class rating, IF we manage to clear that protected area will the card be effected in terms of speed, conversly, could it improve random access speeds (WP7 essential) if its not farting around trying to predict sequential IO ops!
dazza9075 said:
yeah, at the moment, you have two choices
use the V1 ROM and be able to upgrade your ROM, you can install android still, you can not upgrade to 7712 / 7720 AND have access to your SD card UNLESS you lock the SD card
Click to expand...
Click to collapse
Of course you can update!
I am using V1 and have the 7720 build
has anyone been able to (in windows or linux) copy the partition on the card without modifying or formatting or anything? Just copying the partition to another card?
orangekid said:
has anyone been able to (in windows or linux) copy the partition on the card without modifying or formatting or anything? Just copying the partition to another card?
Click to expand...
Click to collapse
Nope, the card is not recognised, im working on it.
timmymarsh said:
Nope, the card is not recognised, im working on it.
Click to expand...
Click to collapse
I'm going to try as well. If we can just get a recognition/copy to work, then we can do dual-boot again. There has to be some way to copy the entire partition.
Finalforce1111 said:
Of course you can update!
I am using V1 and have the 7720 build
Click to expand...
Click to collapse
read it again,
note the big "AND"
you can not dual boot Mango 7712/7720 and android on V1
you can not dual boot at all with V2
you cant copy encrypted partitions, it doesnt work that way, its not like making a encrypted folder, its on a much lower level than that, its either encrypted or its not, you either have Mango or you have Nodo AND android
I still cant get the Protected SD formatted, im wondering if its reliant on the card reader supporting those commands.....
Mm the secret I think is gaining access to the hidden part of the card that contains the encryption key. I'm still working on Ubuntu and have a lead to follow up on.
Your right about the droid dual boot, this isn't my intention so others shouldn't get their hopes up ;-)
Sent from my HD2 Mango 7720 using XDA Windows Phone 7 App

[A] How to unlock sd card

For the HTC HD2 only (someone said in this thread)
Format won't help since it won't unlock your sd card and won't delete the internal protection. You need to do the following.
1. start linux (install ubuntu besides windows or something)
2. put card in computer
3. unmount sd card with "umount"
4. format sd card with "mke2fs /location-of-sd-card/"
5. go to windows and format as fat32 or just put it in your phone.
6. thank me
Windows or your phone will say it's broken or something and will repair.
The mango security is no more and your sd card is revived.
If I did something wrong, let me know, it's my first post.
romusters said:
Format won't help since it won't unlock your sd card and won't delete the internal protection. You need to do the following.
1. start linux (install ubuntu besides windows or something)
2. put card in computer
3. unmount sd card with "umount"
4. format sd card with "mke2fs /location-of-sd-card/"
5. go to windows and format as fat32 or just put it in your phone.
6. thank me
Windows or your phone will say it's broken or something and will repair.
The mango security is no more and your sd card is revived.
If I did something wrong, let me know, it's my first post.
Click to expand...
Click to collapse
If I'm not mistaken, there's two different types of security being used; there's the kind being used on the HD2, and then there's the kind being used on native WP7 phones. Does this method work with the latter? As far as I know, no other method except the Symbian trick will work with a card that's fully locked.
Also, for the record, installing Ubuntu (or any other Linux) is a waste of time if you're just doing something small like this; there are many Linux distributions (including Ubuntu, incidentally) available as a "Live CD" or "Live DVD" that the computer boots off of directly. No installation required.
The location of the SD card will be under /dev/. If your Linu install actually tries to mount the SD card, you can type "mount" in the console to see all current mounted devices, which should make it easy to figure out which is the SD card.
jhoff80 said:
If I'm not mistaken, there's two different types of security being used; there's the kind being used on the HD2, and then there's the kind being used on native WP7 phones. Does this method work with the latter? As far as I know, no other method except the Symbian trick will work with a card that's fully locked.
Click to expand...
Click to collapse
Works with the latter. And I think it works with all security methods I guess since it overrides all bytes with a linux ext3 partition. Please correct me if I am wrong.
Installing Ubuntu from http://www.ubuntu.com/download/ubuntu/windows-installer besides Windows is faster than burning a live cd or something like that.
Also sd card mount location can also be /media/.
Please try my suggestion and fill me in where I have forgotten something, since I don't fully remember the steps I took.
romusters said:
Please try my suggestion and fill me in where I have forgotten something, since I don't fully remember the steps I took.
Click to expand...
Click to collapse
Your suggestions are useless for all handsets except HD2 because of security scheme used by MS. Try to search forum first before posting - it's a very well known issue with 100% proved resolution (Nokia's handsets).
Thank you for reply.
I did search, for hours. And you're right, I did it for the HD2.
So I will alter title for HD2 only.
romusters said:
For the HTC HD2 only (someone said in this thread)
Format won't help since it won't unlock your sd card and won't delete the internal protection. You need to do the following.
1. start linux (install ubuntu besides windows or something)
2. put card in computer
3. unmount sd card with "umount"
4. format sd card with "mke2fs /location-of-sd-card/"
5. go to windows and format as fat32 or just put it in your phone.
6. thank me
Windows or your phone will say it's broken or something and will repair.
The mango security is no more and your sd card is revived.
If I did something wrong, let me know, it's my first post.
Click to expand...
Click to collapse
you don't need linux for this, in windows you can use diskpart
- type diskpart in the runwindow (winkey + r)
- in diskpart type "list disk" without quotes
- type "select disk x", x represents the disknumber in the left collum, be carefull to select the right one, you don't want to erase your external hd or anything like that.
- type "clean", ALL partitions will now be removed from the card, as well as an mbr or bootsector wich might be there if you ever made it bootable. Your card is now not more than an expensive brick
- type "create partition primary", a new primary partition will be created as big as possible (16GB in your case)
- type active if you want to set the partition active
spikeymouse said:
you don't need linux for this, in windows you can use diskpart
- type diskpart in the runwindow (winkey + r)
- in diskpart type "list disk" without quotes
- type "select disk x", x represents the disknumber in the left collum, be carefull to select the right one, you don't want to erase your external hd or anything like that.
- type "clean", ALL partitions will now be removed from the card, as well as an mbr or bootsector wich might be there if you ever made it bootable. Your card is now not more than an expensive brick
- type "create partition primary", a new primary partition will be created as big as possible (16GB in your case)
- type active if you want to set the partition active
Click to expand...
Click to collapse
that doesn't work for me, it's not finding the disk (no media) .. going to try ubuntu now
@romusters: The mount point will be in /media. The *device* will be in /dev/ and must not be confused with the mount point. It's the equivalent of confusing C:\ (mount point, Linux equivalent is / (root), people generally know what it is) and \\.\PhysicalDrive0 or \\.\C: (device and volume respectively, equivalent to /dev/sda and /dev/sda1 or similar).
Since a mount point relies on the device being mountable in the first place (which means it has a filesystem the OS recognizes and has a driver for), I'd be mildly surprised if there even is a mount point when a WP7-locked SD card is inserted into a PC. Quite possibly if it comes from an HD2, very unlikely if it comes from anything that ships with WP7 (since WP7 locks SD cards so that even things like the Filesystem ID can't be read).
pencilcase said:
that doesn't work for me, it's not finding the disk (no media) .. going to try ubuntu now
Click to expand...
Click to collapse
Don't do it, it will not help you. Find Nokia smartphone and re-format sd card instead. Read my post about this problem : http://forum.xda-developers.com/showpost.php?p=12179672&postcount=79
ahah, another thread from another "i discovered a crucial tweak no one knows!!!" guy...who didn't search a minute in the forum before dropping his shthing...
can't imagine what's going in their minds, trying to teach something poor & useless...
just having a look to threads : there are enough (but never really enough) skilled people here to find some tricks that other "average" people can't...
i believe the main illness of our societies is that even really young people think himself as an important/irreplaceable person...
we need more thoughts & humility. then there will be less pollution in that forum.
NebZoNe said:
ahah, another thread from another "i discovered a crucial tweak no one knows!!!" guy...who didn't search a minute in the forum before dropping his shthing...
can't imagine what's going in their minds, trying to teach something poor & useless...
just having a look to threads : there are enough (but never really enough) skilled people here to find some tricks that other "average" people can't...
i believe the main illness of our societies is that even really young people think himself as an important/irreplaceable person...
we need more thoughts & humility. then there will be less pollution in that forum.
Click to expand...
Click to collapse
I am an artificial intelligence university student who put several hours into this. I searched the forum for hours and came with my own solution which didn't exist.
The solution took me hours and hours and it worked.
Moved To HD2 WP7 Q&A​
This is a device specific [A] answer, so it belongs in the HD2 WP7 Q&A section. Pleas refer to the mod sticky before posting in this section!​
Or you can download partition managing software like minitool partition wizard and delete every partition you see on your SD card after putting it inside a SD card reader (IMPORTANT!) Works perfectly for me. If not then please PM me
romusters said:
For the HTC HD2 only (someone said in this thread)
Format won't help since it won't unlock your sd card and won't delete the internal protection.
Click to expand...
Click to collapse
Will this work on a SD card that is not recognisable in windows i.e bricked - Windows does not even see it.
This is what i have found:
I have Back to the Future [XBmod-Yuki] Rom running and DEV_STORAGELOCK.cab installed.
I had a friend who wanted to go back to WM6.5 but forgot to unlock card before flashing WM6.5 so he found himself with an useless card (encripted).
This is what i did:
With my phone (HD2 WP7) in standby, removed my sd card and put his encripted card in my phone then run the storagelock app and it starts and it seems it does nothing and returns to initial screen. After that i put my phone in standby again remove the encripted card and put my card again.
Then put the encripted card in card adapter and my pc recognized the card, used SD FORMATER with format adjustment on and the card is good again.
hope this help someone.

[Q] Android on SD and partitions etc NO CARD FOUND

Hello,
I am looking for some advice with regard to a speciifc problem I have with my HD2 which is running Android from SD using haret.exe etc to start the system from within Windows Mobile 6.5. The android files are currently held on a 8GB sandisk card. I have prefered this method of using android basically because I find it useful to remove the SD card and create a backup of the files onto my PC, which gives me peace of mind before installing new tryout software, just incase something goes wrong, I know I have the option to go back to a working system very quickly by reloading the files back to the SD card from the PC backup.
Recently I have been thinking that it might be easier if I could backup the files using the phone directly, so I decided to buy a 16GB card in order to partition it into two virtual 8GB drives and load my existing android os files onto one partition, whilst using the second partition to save a backup of android. I thought I should be able to create a backup of android from within WM6.5 instead of having to remove the card and rely on a PC all the time to do this job.
So, using MiniTool Partition Wizard Home Edition, I formatted and partitioned the new 16GB SD card, I used FAT32 for each partition and proceeded to copy my android files to the first partition of the new card. I installed the card into my HD2 and started the phone up which booted into WM6.5
From within WM6.5, I used the file explorer and could see both partitions appearing as separate SD cards, the first containing all my android os files etc, and the second partition was empty of course. Just as a test I thought I would try a copy and paste of a couple of files from the android partition to the empty partition, and this worked just fine. I thought to myself I am onto a winner here : ) Read on....
With that I decided to boot into android by clicking on haret.exe.
The system started to boot as normal and everything appeared to be going very very well. Booting completed and the system was ready to use..... Then I thought I would have a look around and see if it was running ok. OH DEAR.... It was reporting that it couldn't find the SD card, even though it had booted from it ! All my files and folders inaccessible and any programs that had been moved to SD card wouldn't start up or were missing from the list of installed apps. I still cant understand why the system has booted from an SD card that it cannot find once the system has booted......
This whole excercise was basically motivated by the need to be able to backup and restore the system from one partition to the other without the constant need to remove the SD card and do the job from a PC. (Constant removal of the SD card is starting to bother me incase I end up wearing the card slot out)
So basically my question is can this be done using my existing android install? (I wouldn't want to start again and install from scratch because the system is highly customised, and has took me a long time to get where it is now) I want to be able to have two partitions on my SD card, one which boots, runs android and holds all my files associated with android, and a second parition which I can use to create and restore a backup from within WM6.5.
This is not a desperate requirement, but I feel it would be a lot better than needing to rely on having my PC to hand all the time. This idea has come from my longstanding history of creating backups using GHOST and similar applications in Windows XP. I would like to do the same with my phone. Obviously I would still periodically make a backup to the PC for safekeeping but it would be more convenient to do it with the phone itself.
Any advice on where I am going wrong would be very useful. Also if you can suggest any other ways of making a strong reliable backup that makes an image of 'EVERYTHING' as is from within android directly, please let me know. I have had a look at Titanium backup, but not sure if it would make a mirror image of 'EVERYTHING' the way I would like to do it (like Ghost does in windows). The way I am doing it at present works fine, except for having to constantly remove the card and rely on having a PC about.
Oh by the way the android version on my SD card is Froyo 2.2 incase this matters (I have never bothered upgrading because it works and does what I need it to do)
Many Thanks
Tony
Brookbond said:
Hello,
I am looking for some advice with regard to a speciifc problem I have with my HD2 which is running Android from SD using haret.exe etc to start the system from within Windows Mobile 6.5. The android files are currently held on a 8GB sandisk card. I have prefered this method of using android basically because I find it useful to remove the SD card and create a backup of the files onto my PC, which gives me peace of mind before installing new tryout software, just incase something goes wrong, I know I have the option to go back to a working system very quickly by reloading the files back to the SD card from the PC backup.
Recently I have been thinking that it might be easier if I could backup the files using the phone directly, so I decided to buy a 16GB card in order to partition it into two virtual 8GB drives and load my existing android os files onto one partition, whilst using the second partition to save a backup of android. I thought I should be able to create a backup of android from within WM6.5 instead of having to remove the card and rely on a PC all the time to do this job.
So, using MiniTool Partition Wizard Home Edition, I formatted and partitioned the new 16GB SD card, I used FAT32 for each partition and proceeded to copy my android files to the first partition of the new card. I installed the card into my HD2 and started the phone up which booted into WM6.5
From within WM6.5, I used the file explorer and could see both partitions appearing as separate SD cards, the first containing all my android os files etc, and the second partition was empty of course. Just as a test I thought I would try a copy and paste of a couple of files from the android partition to the empty partition, and this worked just fine. I thought to myself I am onto a winner here : ) Read on....
With that I decided to boot into android by clicking on haret.exe.
The system started to boot as normal and everything appeared to be going very very well. Booting completed and the system was ready to use..... Then I thought I would have a look around and see if it was running ok. OH DEAR.... It was reporting that it couldn't find the SD card, even though it had booted from it ! All my files and folders inaccessible and any programs that had been moved to SD card wouldn't start up or were missing from the list of installed apps. I still cant understand why the system has booted from an SD card that it cannot find once the system has booted......
This whole excercise was basically motivated by the need to be able to backup and restore the system from one partition to the other without the constant need to remove the SD card and do the job from a PC. (Constant removal of the SD card is starting to bother me incase I end up wearing the card slot out)
So basically my question is can this be done using my existing android install? (I wouldn't want to start again and install from scratch because the system is highly customised, and has took me a long time to get where it is now) I want to be able to have two partitions on my SD card, one which boots, runs android and holds all my files associated with android, and a second parition which I can use to create and restore a backup from within WM6.5.
This is not a desperate requirement, but I feel it would be a lot better than needing to rely on having my PC to hand all the time. This idea has come from my longstanding history of creating backups using GHOST and similar applications in Windows XP. I would like to do the same with my phone. Obviously I would still periodically make a backup to the PC for safekeeping but it would be more convenient to do it with the phone itself.
Any advice on where I am going wrong would be very useful. Also if you can suggest any other ways of making a strong reliable backup that makes an image of 'EVERYTHING' as is from within android directly, please let me know. I have had a look at Titanium backup, but not sure if it would make a mirror image of 'EVERYTHING' the way I would like to do it (like Ghost does in windows). The way I am doing it at present works fine, except for having to constantly remove the card and rely on having a PC about.
Oh by the way the android version on my SD card is Froyo 2.2 incase this matters (I have never bothered upgrading because it works and does what I need it to do)
Many Thanks
Tony
Click to expand...
Click to collapse
Android looks at storage (and cards and file systems) differently. Assuming you created the partitions okay, you would have to use the Linux mount command (sorry, more reading).
A simpler way to accomplish your goal would be to have everything in one partition on the card. Create a folder and call it "Backup_Folder" or some other name meaningful to you. You will be able to copy/paste in Windows or Android.
Having said that you might want to read more about NAND installations when you have time. It would likely run better and give you more choices. Although a learning curve, once mastered it is as simple and safe as what you are now doing.
---
Junk: something you have kept for years, and thrown away two weeks before you need it...

Retrieve data from unreadable adopted storage card

I am not the author of this, it is from https://android.stackexchange.com/q/174799/146132 but it has some great info I thought I would share... My thanks to the author.
About a month ago the Moto G (3rdGen) of my wife was not able to recognize the SD-card 32GB Trancend premium 400x (which was formatted as adoptable storage) anymore. On this card were very important pictures and movies for us (of our new born baby). As of a certain Android version the adoptable storage is also encrypted and reading it on a PC or other phone is not possible without the encryption key. Since the phone was also not rooted it was also not possible to get the encryption key from the /data/...something directory... (see https://nelenkov.blogspot.ch/2015/06/decrypting-android-m-adopted-storage.html) So I almost gave up hope...
I bought the exact same type SD-card, also 32GB, only about a year later. Hoping that I would be able to make an exact clone of the card and I would be able to start some experiments with it without the risk of destroying something on the original card and losing all the data. When I mounted the original card under Linux it shows two partitions 17MB and about 31GB. Cloning the card with some Linux command line tools didn't gave me the same result. Next thing I tried was cloning it using HDDrawCopy, first write the entire card to an image on my harddrive. When I copied the data to my new 32GB card I noticed that the new card did not have the same capacity of the image file (image was 32.22GB, new card shows capacity of 31.11GB) so hmmmm that trick doesn't work... Luckily I also happen to have a 64GB SDcard (same type) which should have enough space for this test. So using HDDrawCopy I wrote the image to this card. Checked under Linux if I see the same partition as with the original card and this happens to be (of course it also shows about 32GB of free space not partitioned).
So I thought lets see if the Moto shows the same error with my new card in the phone and that I made an image on which I can start to try to hack the encryption off(now or in the future). To my surprise the Moto shows immediately that the transcend 32GB volume is mounted! I went to the gallery of the phone and IT SHOWS OUR PICTURES AND MOVIES again!!!
So in short when this happens buy a larger volume SD-Card (to make sure that there are enough data-block available). Use HDDrawCopy to make a bit-wise clone/image of the original card. Write the image to your new card and check if it can be read by your phone.
Never do the following or your data will be lost:
Format the cardSet your phone back to factory default (destroys your encryption key)Make the phone to forget/unmount the storage location (also destroys encryption key)upgrade to a newer version of Android (or any other major system update).
(of course make sure to make backups or cloud syncs to prevent this situation at all)
I hope this can help someone out there who might ended up in the same situation.
Unfortunately I have clicked on forget the card. Can anything be done?
Unfortunately I have clicked on forget the card. Can anything be done?
ajparag said:
Unfortunately I have clicked on forget the card. Can anything be done?
Click to expand...
Click to collapse
Unfortunately, no... When you click "Forget" the unlock token is erased and not recoverable by normal means. The daya stored on an internal SD csrd is now lost forever.
Hi, I am in a similar situation. I have a marshmellow phone with an sd card set up as adopted storage, but the phone stopped working and I needed the memory card somewhere else so I took an image backup of the SD card Partition. This is the mistake I did, should have taken the entire disk image backup. So now when I restored the image and the phone is fixed, the phone doesn't recognizes the memory card even though it still has the encryption key.
Any ideas?
The partition table is correct, the first partition "android_meta" probably has the wrong info

Categories

Resources