Adoptive storage help???!!!! - Samsung Galaxy S7 Edge Questions and Answers

So i have tried using the ADB and TERMINAL method for enabling it. Im on SD820 i dont think that matters but i keep getting the message in terminal
ERROR: JAVA.LANG.IllegalArgumentException: Unsupported partition type 179,0 Of course thats my disk name 179,0

sm partition disk:179,0 private
You forgot the colon, I did the same thing, it was driving me nuts, try that and it'll work

Related

sdcard encryption

I'd like to keep my data private (in case anyone finds the phone). has anyone got truecrypt to compile for the G1 ?
There's a lot more to making a program work in a given environment than just compiling it for the target processor...
If what you wanted to do was akin to running TC's system volume encryption, significant hacking and writing of new code would have to occur, not to mention hacking of the Android boot process.
It would probably be easier to just write a new program from scratch.
are there any other options for having an encrypted volume ?
ido said:
are there any other options for having an encrypted volume ?
Click to expand...
Click to collapse
Are you talking about having the whole partition encrypted, or just having an encrypted volume on the SD card with some data in it?
After setting up a debian partition on my card (a la this), the native "cryptsetup" mechanism in conjunction with a loop-mounted image works fine. Here's what I did from the debian bash shell:
Install cryptsetup from the debian repo:
Code:
apt-get install cryptsetup
Create an empty image (this is for 1 GB):
Code:
dd if=/dev/zero of=/sdcard/file.img bs=1 seek=1G count=1
Mount the image on a loop device:
Code:
losetup -f
(returns the next available loop device - probably /dev/loop2)
losetup /dev/loop2 /sdcard/file.img
Create an encrypted abstraction over the block device, using AES and a passphrase ('encvol' is just a name that can be anything):
Code:
cryptsetup -y create encvol /dev/loop2
(enter passphrase to use for this volume when prompted. the '-y' option prompts twice for verification)
Create an ext2 filesystem on the encrypted device:
Code:
mkfs.ext2 /dev/mapper/encvol
Mount the encrypted volume:
Code:
mount /dev/mapper/encvol /sdcard/mnt (or wherever)
I might have had to install losetup separately from the repo as well, I don't remember.
To mount it again later and use, after rebooting or manually unmounting, you need to do the losetup, cryptsetup (don't need the '-y' option anymore), and then mount the /dev/mapper/encvol device.
- Chris
I don't want to encrypt the whole drive, a bit afraid to do so, since I think there are things the G1 does on the sd card that wouldn't handle it well (like mounting/unmounting when sharing the usb drive, etc)
have you tested this ?
As I said, the steps I listed above are what I did, and yes, they work for me. Obviously, you'd want to take precautions before doing anything funky involving data that is valuable to you, as always, but I can say that the general scenario of reading and writing to a loop device, backed by an image file on my FAT32 SD card partition, through a cryptsetup indirection using AES (defaults), worked for me in a Debian shell on the G1 no differently than as if running on Ubuntu, for example.

not enough memory error

I am trying to get tun.ko installed per (url removed cause I'm new) = code.Google.com/p/get-a-robot-vpnc. I have root and mounted system rw but when I try to copy it whether by adb or terminal I get "cannot create /system/lib/modules/tun.ko: not enough memory. Anyone have some clues for me please? Thanks.
Never mind. Was finally able in recovery mode.

[Q] How do I install parted command?

I'm trying to wipe and format a microSD card that I have plugged in via OTG and already have it wiped with this;
Code:
dd if=/dev/zero of=/dev/block/sda
Now I'm looking into how to recreate a MBR and partition table and it says to use the parted command, which I'm glad about as I'm familiar with the command from using Ubuntu but it's not installed and I can not find any instructions on how to get it. Can anyone explain how to install it? I know I could just plug the SD card into a computer and do it but I'm having fun doing all this on a tablet. Lol
Bump
Anyone?
I have got the same question, any other solutions?
This is the most complete information I have found yet, but it doesn't work. Either from me messing something up or it not being correct for the Nexus 7 being that it was made two years ago. http://www.droidforums.net/forum/htc-droid-eris/78650-internal-storage-partitions-screwed-up.html
I pushed all six files to /sbin/ with no errors and changed their permissions with no issues but I restart the tablet and none of the six files are in /sbin/
Just for the heck of it I extracted the six files to the SD card in the tablet, CD'd to it and used chmod 0755 on all six files then tried to run it and this is what I get.
Code:
[email protected]:/storage/emulated/legacy/folder # parted
sh: parted: not found
127|[email protected]:/storage/emulated/legacy/folder # ls
e2fsck
mke2fs
parted
resize2fs
sdparted
tune2fs
... how can you NOT find that?
herqulees said:
... how can you NOT find that?
Click to expand...
Click to collapse
Depending on how your PATH env var is set, the current directory might or might not be being searched for program load(s). So indicating the current directory explicitly with a leading "./" such as
$ ./parted
will certainly work (if a read & execute bit set on file, and the filesystem is not mounted -noexec ) .
But...
...if those files are dynamically linked rather than statically linked, and the appropriate link-libraries they reference come up missing during run-time linking it is possible to still see a "not found" message. Sort of a red-herring error message, but there you go.
I just looked in TWRP's /sbin (ramdisk) just now. Don't see parted in there.
[Edit] I do see the string "fdisk" inside the busybox executable though! - maybe boot into recovery and see what
busybox fdisk /dev/block/sda
gets you? (I suppose result depends on whether or not TWRP kernel plumbs the device into place.)
Perhaps the quickest solution is to simply use a PC and media reader to do the partitioning from a PC instead of the N7. You might even want to boot a "Live CD" version of Linux to get at the tools you need. (BTW, I think that Ubuntu's Live CD mounts a fuse FS over the top of the RO DVD/CD, so you can even download and install packages as needed).
I managed to get everything to work by doing this:
1. Using this app https://play.google.com/store/apps/details?id=com.beansoft.mount_system&hl=en I remounted /system as RW
2. Using the CyanogenMod File Manager I copied the parted file to /system/bin (from the root of the SD card)
3. Then using the File Manager still, go to the Properties of the parted file and go to Permissions and under R, W, and X put a check mark in the three boxes bellow each. (I don't know which ones it needs permissions for so I just give it permissions to everything, kinda frowned upon to do but I trust this program so...)
By doing this you can completely stay out of command line, but at the same time you're installing a command line program so you shouldn't be afraid of the command line in the first place. Lol.
Note: After this you can go to a terminal window and type su to get root access then type
Code:
parted /dev/block/sda
you will of opened your external memory card, now use parted as you would normally.

[Q] how to gain su access while in recovery

using terminal in ubuntu with adb. can access root with phone booted fine. Need to access su with phone in recovery as im attempting to mount internal storage to perform emergency data recovery. Im using the guide from MohammedAG's blog. (which seems to have been taken down as of yesterday....)
Is this possible? phone is rooted with safestrap 3.72 installed.
Im able to get the drive to mount temporarily (with phone booted), with this command:
echo /dev/block/platform/msm_sdcc.1/by-name/userdata > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun0/file
it shows the files and directories for between 2-10 minutes then the phone will reboot. Want to create a drive image using GNU ddrescue.
Any help/thoughts/insight would be greatly appreciated.
Success!!!!
Ok so i figured out another way. I was unable to access root from recovery...I would get error "CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "/sbin/sh"; caused by library "libc.so" not found"
But I DID have access with phone booted. I was working in unbuntu terminal as MohammedAG suggested as Windows cannot read ext3 partitions. This would work temporarily as I mentioned above but would then crash and reboot the phone. Due to the system being double mounted?? i think...
So i tried it in windows, the command worked I saw the drive! It asked me to format so i could use the drive...Cancel. The drive was now still visible(but not usable by windows) as a logical drive.
So using iRecover (diydatarecovery.nl) which supports ext3/4 drives I was able to perform recovery on the device and create an image file just to be safe.
Recovered a ton of files! Awesome!

SOLVED : Install custom ROM in a no OS and without SD card....

unfortunately i wiped my whole data (ofc i didnt need them). anyway now i dont have os on my phone and i dont have access to any sd card right now
so therefore i tried adb
adb devices :
device unauthorized
adb sideload myrom.zip :
Total xfer: 0.00x
adb push myrom.zip /anywhere/ :
adb: error: failed to get feature set: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that sunfortunatelyeems wrong.
Otherwise check for a confirmation dialog on your device.
help.
SOLVED :
i found my sd card

Categories

Resources