How do I encrypt nvme SSD which is an external storage for my development board - General Questions and Answers

Hello,
I am working on a project(on android 7.1) where I want to protect my data stored in external nvme SSD. I came across encryption methods which android support (FDE and FBE) but I did not find anything related to external block device.
How do I encrypt my SSD just like android does for eMMC?

Related

Encryption: Encrypting SD Card in Android 4.4.2 using ADB?

Hello all,
I have a China-made ORDRO SW16 Android device. It runs Android 4.4.2 and has a Mediatek MT6572 CPU and supports Internal Storage Encryption, which I have enabled.
Since the device is small (1.5" screen), it runs a cut down Settings App, and it's missing a lot of pages even though the phone should support it. I want (need) to also encrypt my SD Card. I was wondering if there is an ADB command to encrypt the external SD Card.
I've tried searching on Google (it only has the command for the Internal Storage, which I already have encrypted) and the forums, nothing...
Alternatively, I could root the device and install the AOSP Settings app. Would that be advisable?
I thank you for the help in advance.

formatting a 4tb drive to read on Android

Hi All,
I'm trying to get my new 4tb drive to work with my android device. I know that out of the box it requires FAT32 to be read, and no I am not interested in rooting my device to install drivers to support other options. I already have another 4tb working :
https://www.amazon.com/gp/product/B00HXAV0X6/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
this drive formatted just fine using the guiformat tool to fat32.
however the recent drive does not accept a fat32 format:
https://www.amazon.com/gp/product/B0196J3UZ2/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
gives me a format error and restricts me to a 2tb volume.
I believe the problem for this is that the first drive is a raid0 format with 2 drives built in. The second drive is a single 4tb, slower but more "dependable" (and also $70 cheaper).
I'm sure my success with the first drive is that the fat32 partition is able to create > 2tb because the physical devices are split between 2 2tb drives, though this does not make a ton of sense to me.
Regardless, what are my options here for the second drive? Again, i'm not interested in rooting my device. 2 partitions are ok, but i've experimented w/that and found that the second partition is ignored in the android file system. Did some reading and found that part1 needs to be vfat, and part2 needs to be fat32, AND you need to possibly be on root and run a special script to even mount that setup. I'm not interested in all that, i just want to be able to turn my device on and have the drive mounted w/o root.
All that said, what is the simplest solution for me to set up this drive to be read on my Samsung and s2 tablet devices w/o root? Is FAT32 the only solution, and if so, can i some how FORCE this partition style on my 4tb drive? I read somewhere that a Linux boot can handle this, though i don't even know where to begin with that being a windows man.
Please help!
anyone have an idea? dont want to spend an extra 70 bucks just because i cant format a drive to fat32 ;/
p64impp said:
Hi All,
I'm trying to get my new 4tb drive to work with my android device. I know that out of the box it requires FAT32 to be read, and no I am not interested in rooting my device to install drivers to support other options. I already have another 4tb working :
https://www.amazon.com/gp/product/B00HXAV0X6/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
this drive formatted just fine using the guiformat tool to fat32.
however the recent drive does not accept a fat32 format:
https://www.amazon.com/gp/product/B0196J3UZ2/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
gives me a format error and restricts me to a 2tb volume.
I believe the problem for this is that the first drive is a raid0 format with 2 drives built in. The second drive is a single 4tb, slower but more "dependable" (and also $70 cheaper).
I'm sure my success with the first drive is that the fat32 partition is able to create > 2tb because the physical devices are split between 2 2tb drives, though this does not make a ton of sense to me.
Regardless, what are my options here for the second drive? Again, i'm not interested in rooting my device. 2 partitions are ok, but i've experimented w/that and found that the second partition is ignored in the android file system. Did some reading and found that part1 needs to be vfat, and part2 needs to be fat32, AND you need to possibly be on root and run a special script to even mount that setup. I'm not interested in all that, i just want to be able to turn my device on and have the drive mounted w/o root.
All that said, what is the simplest solution for me to set up this drive to be read on my Samsung and s2 tablet devices w/o root? Is FAT32 the only solution, and if so, can i some how FORCE this partition style on my 4tb drive? I read somewhere that a Linux boot can handle this, though i don't even know where to begin with that being a windows man.
Please help!
Click to expand...
Click to collapse
Android likes ext4 more than fat32. You should try with it, but it is a bit problematic as windows does not support ext4 at all. You need to get a live Ubuntu USB or something and you should be running linux in a matter of minutes (it won't uninstall Linux unless you explicitly tell it to)
From what I understand if your drive has mbr it is limited to 2 TB. Whereas gpt can exceed 2 TB. You will want to convert to gpt. If you search google there are articles that go step by step. I experienced a similar issue with my 4 TB Seagate external usb 3.0 drive. I deleted my partitions using a Windows computer and reinitialized the drive for gpt. Afterwards I formatted it in exfat.

[Win10] Copy HDD to another HDD with "pseudo" data -> Programm aviable?

Hello xda-community!
I'm looking for a way to copy a HDD to another HDD (as backup). The thing is, some partitions are VeraCrypt-encrypted which got a RAW filesystem.
Is it possible, to copy all partitions to another HDD with those "pseudo" data? If not, then I need to copy everything manually...
(Why am I doing this?: I'd like to keep my encrypted files encrypted, I'm kinda a paranoid person which appreciates any way to protect my privacy)
My real name is like a ghost on the internet. Nonexistent
This is how my HDDs are built up:
2x WD My Passport Ultra (4TB)
Source HDD: 3725.87 GB
Partitions:
- 653.86 GB -> unused (NTFS)
- 512.00 GB -> VC-encrypted (RAW)
- 1024.00 GB -> NTFS
- 256.00 GB -> NTFS
- 512.00 GB -> NTFS
- 512.00 GB -> VC-encrypted (RAW)
- 256.00 GB -> NTFS
Backup HDD: 3725.99 GB
Thank you very much for your answers!
Edit:
I found out about mirroring disks, but apparently windows doesn't allow me to convert my external HDD into a dynamic disk...
Edit 2:
Yup, it's not possible to change it. Learned more about RAID 1 and why it shouldn't be used as backup (although it's quite good for a last moment backup).
However it would be great, if there was a program, which could just do read the changes on a drive and copy them on another drive.
This is an android and windows PHONE forum for android and Windows Mobile device related discussions, not for PC related discussions.
Find a PC related forum for your question.

How to encrypt the internal storage (not only data)?

I have a nexus 5x device and as i understand it, encrypting encrypts /data/data, while /sdcard/ (which is a part of the internal storage) and where it links to stays unencrypted.
On the other hand i read android 6 and later can encrypt external sd-cards as adoptable storage, which can be encrypted.
The android 6 based ROM doesn't have the second option "encrypt sd-card" like some screenshots from other devices show it.
So how can i encrypt all of my nexus 5x device, not just the app data?
Your app data and internal storage are in the same partition (at /data and /data/media), so both are encrypted. /sdcard (if it exists) is just a link to /data/media/$USER (0 in case of main user), as are some other folders (like /storage).
Thank you. I was a bit confused on my new phone, but it seems that it was initially encrypted with device key (or something similiar) only and without a password. So i was just wondering how i could place my ROMs on /sdcard, when it should be encrypted.

Can I use my smartphone storage for both Android OS and Windows OS?

Can we ditch the HDD/SSD of PC and use smartphone storage instead?
Is it possible to create an NTFS partition in the smartphone storage that will be used as a bootable external HDD/SSD drive that can boot a PC?
Try this:
How to Recover Your PC Using an Android Device
PC won't boot? No other computer available to make a recovery USB? Here's how to create a bootable USB in Android without a PC.
www.makeuseof.com
I'm talking about using the phone's storage as the main storage also of a PC for daily use, not just for a one-time boot.
You would first have to find an old phone that has the ability to run mass storage. Then you can experiment.
You can install a Windows Emulator on your Phone.​Look inside here:
2 Best Windows Emulator for Android Phones (Working) 2023
Looking for Best Windows emulator for Android phones? Check out these 2 best Windows PC emulators for Android. (100% Working)
techonation.com
Why not on Windows PC install the Windows Subsystem for Android ( WSA ) and run Android OS natively directly on PC?
The point is to combine the phone storage and the PC storage to one storage, to be able to manage your data in one place.
Dividing the storage to (at least) 3 partitions:
1. Android OS
2. Data (Documents, Music, Video...)
3. Windows OS
You don't need to manage your Data twice.
All your Data and changes is available to you at home and on the road.
You don't need Cloud or Sync solutions.
Offline.
What you want to get achieved simply is impossible IMO: in any case a server as MITM-machine is needed.
Only to have mentioned it: both the Windows OS and the Android OS store files in incompatible filesystems.
Didn't know Windows can installed on portable drives... I feel this is mainly a Windows question. I remember there was such funny thing BartPE.
Stamimail said:
Can we ditch the HDD/SSD of PC and use smartphone storage instead?
Is it possible to create an NTFS partition in the smartphone storage that will be used as a bootable external HDD/SSD drive that can boot a PC?
Click to expand...
Click to collapse
If I understand your question, try the Drivedroid app, it can be used to make an Android device function as a bootable drive to boot PC from the Android device.
Also, there are some methods to dual boot on Android.
I'm talking about a situation where everything happens simultaneously:
1. First partition serves the phone to run Android OS. (The phone works normally. You can have a call on the phone)
2. The second partition serves both the phone and the computer, for User Data.
3. The third partition serves the computer to run Windows OS.
@Stamimail please answer yourself first
3. have you ever installed any Windows on external usb hard disk/ssd drive? Is that even possible? Idk
Yes, a long time ago.
Also a short internet search shows that it is possible.
I see there such thing Windows to go.
https://www.easyuefi.com/wintousb/index.html
probably easiest workaround is rooted android device with MicroSD card provided as UMS.
[APP][ROOT] USB MASS STORAGE Enabler v1.6
This app is to enable Mass Storage Mode for mounting your Memory Card as a USB Drive in Computer from your rooted device [Android 4.0+].. It does not mount internal storage, and it will not work if your device doesn't have External Memory Card...
forum.xda-developers.com
or try Drivedroid.
[APP][2.2+] DriveDroid - host ISO/IMG files to boot your PC from
DriveDroid allows you to boot your PC from ISO/IMG files stored on your phone. This is ideal for trying Linux distributions or always having a rescue-system on the go... without the need to burn different CDs or USB pendrives. The paid version of...
forum.xda-developers.com
In further reading, I get the impression that the big problem is that internal storage always has better performance than external storage.
I don't know why external storage can't be made to be as good as internal.
So the question now is:
If people decide it's a good idea, is it technically possible to implement this idea (that phone storage will replace computer storage)?
you can repartition userdata partition with gdisk and create another partition. this partition can be provided as UMS.
However, windows is known for dancing rumba on disk, you probably won't have much fun till emmc is weared-out.

Categories

Resources