Formatting SD Card as Internal via ADB - Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti

I'm following this reddit post that details the process (along with similar XDA links for other devices), and I'm running into some obstacles.
1) After connecting to the shell, and listing disks, the format of the SD card is listed as "179,64" while the guide suggests that it should be "179:64". Attempting to format the card as internal with the suggested structure returns a disk not found error
2) Attempting to format using the displayed "179,64" structure appeared to work initially, but seemed to hang (I waited about 5 minutes with no response - I ejected the device and adb produced this error immediately "Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_E gave up waiting for partitionPrivate after 180000ms"
3) Adb no longer finds the SD card as a listed disk, nor does the tablet seem to see it. The thread I linked mentions that the storage tab in settings on the tablet might see the totals as messed up, but that it should work, but I'm suspicious (as it shows under 1GB of 16 available) Have I corrupted it? Should I have waited longer?

Related

Preparing internal phone storage (Checking for errors)

While I was trying to move a .avi file to my phone and then iut just restarted.
After it came back it I get the message Preparing internal phone storage (Checking for errors).
Now the internal memory is no longer recognizable to the phone.
Under SD card & phone Storage settings all the options are grayed out.
Total space: Unavailable
Available space: Unavailable
Mount and Format internal phone storage are grayed out. (darker then the first two options)
I'm also unable to get into the phone using ADB Shell command and ADB Devices shows nothing.
I've tried doing a software reset and a hardware reset as seen here but this has not fixed the problem.
Is there a way I can reformat the internal phone storage?
I did root my phone using aRoot.bin before all this happen.
Does anyone have any ideas?
EDIT: Sorry, I thought it was the external SD card. I just re-read and realized it's the internal SD.
...
I started seeing this on my Atrix yesterday. I was using the same card on the Samsung Captivate without issues. I put only music and videos on that.
When it happened, my PC couldn't read the card with the adapter. I used the Captivate to format the microSD, and that got the Atrix to recognize it. I re-copied my stuff again and all is well. 1 hour later, while playing music, my phone rebooted itself.
That's when I got the error again. Took card out, put it in, it's fine so I reformatted it on the Atrix.
Today, phone rebooted several times until it got stuck in a reboot loop. I took the card out and it's fine since...
I don't know, I just chalk that up as a corrupted one.
It's a Wintec 16 GB class 10...got it for 28 bux at Fry's last Black Friday...though it was fine on the Captivate...played music and video during lunch time without issues for months.
At least I found the source of my Atrix's random reboot.
Sorry, couldn't offer anything positive from my end.
I just fixed a ATT Atrix 4G which had same issue.
1) Flash 1.2.6 SBF
2) Read GladRoot "gladroot.bat" batch file and get the root permit at ADB Shell
3) Format /dev/block/179:18 at ADB shell. Below is the command line:
mkfs -T FAT /dev/block/179:18
4) Exit ADB Shell, unplug your phone and reboot. A mount error message will appear on notifications bar, ignore this message.
5) Go to "Settings -> SD card & phone storage", to format the "Internal phone storage (media area)", then mount it.
6) None.
Wish I would have seen this before I sent my phone back months ago. I'll keep this in mind if I find anyone else who has this same problem.
Thanks.

Unable to write to SD cards

I've done a lot of searching and can't seem to find any solutions to this problem. Few months ago i installed CM9 on my Galaxy Tab 7+. Everything worked fine to begin with, but after a while i was unable to delete stuff off my microsd card. I wound up buying a new card, copied the music and tv off the old card and installed it. Same problem. Now i have 2 microsd cards that I'm unable to write to at all. I can't write anything to them, can't delete anything off them and can't format them. I've tried using them both in my phone and on 3different Windows PCs with the same results. I have tried the SD card write fix referenced in the Galaxy Tab Plus development section and that didn't fix anything. The problem seems to be with the cards themselves, not the tablet (and phone and multiple pcs).
Mods, I know the problem originated with the tablet, but it doesn't seem to be a tablet issue which is why I posted here. There's also very little traffic in there, I'm hoping for greater exposure here. Thanks!
Minor update. I've played with it a bit more and it seems the problem is that I can't mount the card r/w. In root explorer it tells me /sdcard/extstorages/sdcard is mounted r/o. The Mount R/W button is there, but it doesn't seem to do anything. Also, in recovery adb I'm unable to mount the card r/w. Can only seem to mount it r/o. Also, when I put the card into a USB card reader and plug it into the laptop I can see the files just fine, but can't format the card. When I use the format command from the command prompt (running as administrator of course) it tell me "Cannot open volume for direct access."
Hope this more specific info helps.

[Q] 1.4.3 root help

ive done every root method and still nothing can someone help
Quote:
Originally Posted by Indirect
...
1. Setup SDCard
Using a new SDCard (not one you have info stored on) make a new MSDOS partition table and add a 50 MB FAT32 partition as the first primary partition. Then make sure you enable to boot and lda flags.
Any SDCARD larger than 50 MB should work but I used an extra 2GB laying around. You can add other partitions to the card if you want, but it is not necessary to allocate the entire card. Any added partitions would need to be manually mounted on your Nook anyway.
I used GParted on my Ubuntu machine to do this but any formating tool should work.
2. Copy Files onto SDCard
You can grab the files I used here:
http://www.mediafire.com/?dr6bqau194389te
Just UnZip the files directly to the root of the boot partition you created above (make sure flashing_boot.img, u-boot.bin, and boot.img are on the root not the folder SDCARD)
3. Insert SDCARD into NT
Now, with your NT powered off, eject the SDCARD you just created from your computer and insert it into the tablet. Then just turn it on and VOLA! You should now be in CWM!
Symptoms:
With the SDcard (from above) inserted and the NT powered on, the NT shows a black screen for about 3 minutes, and then boots the internal memory.
Removing MLO from the SDcard causes normal NT internal memory booting, so clearly the NT boot process is looking at the correct place on the SDcard (note that the MLO for 1.4.0 and 1.4.1 are identical).
So, unless I am doing something really stupid, there's something different between the two NTs I've owned. Note that "bauwks" had a problem booting from the SDcard, unless he had the USB cable connected, but others have not seen that symptom.
I rooted my NT 16GB by following this post and it worked well:
http://forum.xda-developers.com/showthread.php?t=1798439
Penguin101 said:
I rooted my NT 16GB by following this post and it worked well:
http://forum.xda-developers.com/showthread.php?t=1798439
Click to expand...
Click to collapse
thamks for the rely but ive tried that already
So you wrote all the files you unzipped from the download to the sdcsrd, inserted the SD into your Nook and rebooted...do you get the box when you reboot?
Just checking, you're holding down both the power button and "n" button when powering on the tablet?
NikkieL
Sent from my Barnes & Noble Nook Tablet using xda premium
This is too complicated, really.
Just got a used NT16. Previous owner factory restored. Downloaded img file from:
[SD Root] Make 16 or 8GB Nook Tablet Root SD Cards by Albert Wertz [SDNT16or8gbV4.7]
No instructions on how to mount image to SD card for Mac (it says just google it...)
Google did not turn up a clear result.
So I finally Googled the right query: how to burn an ISO on a USB drive on Mac OS X
And in turn gave me this - how to mount the image:
"Directly from the Ubuntu download page (my formatting):
Download the desired file
Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight)
Convert the .iso file to .img using the convert option of hdiutil (e.g., hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)
Note: OS X tends to put the .dmg ending on the output file automatically. Remove the .dmg extension as necessary, mv ~/path/to/target.img{.dmg,}
Run diskutil list to get the current list of devices
Insert your flash media
Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)
Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img or ./ubuntu.dmg).
Using /dev/rdisk instead of /dev/disk may be faster.
If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M.
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the drive.
Run diskutil eject /dev/diskN and remove your flash media when the command completes
Restart your Mac and press Alt while the Mac is restarting to choose the USB stick"
So.........
I followed the instructions to a tee. I am using a 128 MB SanDisk micro SD card.
I inserted the card in my Nook and powered it off. Put the USB cable in and after many minutes the Nook turned on. All it did was power on like normal. Once, I removed the SD card while nothing was happening (waiting for boot). Intermittently (as a result?), I was unable to turn Nook on at all, thinking it was bricked. So, I tried the SD card again, and again after several minutes it turned on. Have removed the card now and Nook works like normal again.
So, I have a 16GB Nook Tablet with 1.4.3 and would like to root it AND flash Android which may require who knows how many sd cards and various recovery modules. I would like to say I love learning how to do all of this, except these instructions are always written by developers FOR developers. Perfect example is the Bishop of Technology. One page leads to another and then another. There is no definitive answer to be found on his site. My favorite part is where he says "now take out the boot card and insert ("vague") custom ROM. And then says, now you might want to backup (using CWM). This is all on the page for installing Jellybean on 1.4.3. The whole page is a mish-mash of vagueness and redirection. That is why I tried installing directly from XDA instead.
But, like I said, I was unsuccessful. And I'm not willing to risk trial and error or spend another four hours digging around trying to find the meaning of every instruction. How hard is it to go into a bit more detail and include links every time appropriate. (insert custom ROM - this is vague and no link is shown for downloading the custom ROM.)
Should I get a 2GB sd card so I can install 142 (500MB) first?
Maybe rdisk was to fast and corrupted the image?
Maybe try this. http://forum.xda-developers.com/showthread.php?t=1494367
Sent from my Barnes & Noble Nook Tablet using Tapatalk

[Q] How can I stop the mysterious SD card removal affecting my phone?

My Note II, running the latest CM 10.2 nightly, has had a ghost--or Electro--remove the SD card making SD card dependent programs stop working.
I have a 64gb SanDisk card that has been working like a champ since I bought the phone.
Earlier this week, I kept getting errors that my SD card was not available. These errors would come out of the blue, sometimes even when the phone was in its dock. This made Spotify and Camera apps useless.
However, the phone still recognizes that the card is still plugged in.
At no point in time had I touched the actual card physically.
The only way to fix it, is to either pop the batter door, pop out the SD card out and back in, and then force close the apps that depend on it.
Or, reboot the phone.
How do I go about fixing this?
Your card might have become mounted "read only" ....you can fix it in a computer. Do a google search for "sd card mounted read only". It has happened to me before. It happens sometimes when one or more files on the card become corrupted....the fix will not erase your card.
Sent from my SCH-I605 / Galaxy Note 2 using Tapatalk v 2.4.13
manbat said:
Your card might have become mounted "read only" ....you can fix it in a computer. Do a google search for "sd card mounted read only". It has happened to me before. It happens sometimes when one or more files on the card become corrupted....the fix will not erase your card.
Sent from my SCH-I605 / Galaxy Note 2 using Tapatalk v 2.4.13
Click to expand...
Click to collapse
I had feeling that it would be something related to the writability of the card.
Seems that this is a common problem, but none of the solution threads showed up in my searches.
From here, we have the following:
Fix the FAT
- connect device to your PC (USB connection) and make sure it’s set so that you can copy files to/from your computer (on my device in the notification panel there’s an option to do this under “USB connected”)
- on your pc, open windows explorer (or click on start->computer), then right click on the mapped drive to your sd card – you may have to wait a minute or two for the mapping to take effect
- select Properties
- select Tools
- select Check now… (for error checking) to automatically fix file system errors (no need to deal with bad sectors at this time)
- when completed (takes a minute or so), the FAT will be in working order once again. No files are deleted during the process, so no need to worry about that.
- safely disconnect the device from your pc, at which point the sd card will now be mounted read-write and you’re good to go
Click to expand...
Click to collapse
Once I get home I'll try this out.
I just put it in a SD Adapter and plug it into the computer. Use the same process listed. Worked for me.
Sent from my SCH-I605 / Galaxy Note 2 using Tapatalk v 2.4.13
I executed a check disk on my sd card and put it back in my phone. The same problem persists. This is rather annoying.
Mine was close to capacity a while ago and exhibited all signs of being toast.
I removed about 20 gigs of music from it, and it came back to life.
Good luck.
Hmm, I'll give it a try. The SD card is pretty full with all the TWRP and Titanium backups ...
I tried everything under google's radar, and I cannot get this to work. The car simply does not like to be written on, cannot be formatted, an check disk does nothing.
HTML:
[email protected]:~$ dmesg | tail
[439975.916884] sd 18:0:0:0: [sdb] Write Protect is off
[439975.916896] sd 18:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[439975.918251] sd 18:0:0:0: [sdb] No Caching mode page present
[439975.918259] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[439975.923608] sd 18:0:0:0: [sdb] No Caching mode page present
[439975.923616] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[439975.924857] sdb: sdb1
[439975.929020] sd 18:0:0:0: [sdb] No Caching mode page present
[439975.929033] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[439975.929044] sd 18:0:0:0: [sdb] Attached SCSI removable disk
[email protected]:~$ fdisk -l
[email protected]:~$ sudo umount /dev/sdb1
[sudo] password for z:
[email protected]:~$ sudo mkfs.vfat -n 'SDCARD' -I /dev/sdb1
mkfs.vfat 3.0.14 (23 Jan 2023)
mkfs.vfat: failed whilst writing FAT
[email protected]:~$
I looked up my order on Amazon, and then at the product reviews for the card. I stumbled upon this thread: http://www.amazon.com/review/RUM36X...IN=B009QZH6JS&nodeID=172282&store=electronics
Seems like it is time to call Sandisk and get this card RMAed
I have fixed this by transferring my card to pc, running a full format via cardreader. and putting my files back. I believe a full format will mark bad sectors. It will take a while though.
If you are having trouble formatting in windows try using a software called gui format.
johnwaynegacy said:
I have fixed this by transferring my card to pc, running a full format via cardreader. and putting my files back. I believe a full format will mark bad sectors. It will take a while though.
If you are having trouble formatting in windows try using a software called gui format.
Click to expand...
Click to collapse
I tried formatting from both Ubuntu and Windows. There seems to. Something totally off with the card; I simply cannot write to it.
Sent from my Nexus 7 using Tapatalk 4
Here is what happens in windows:
Through CMD
Code:
C:\>format /fs:FAT32 Q:
Insert new disk for drive Q:
and press ENTER when ready...
Code:
C:\Users\Z>format /fs:exfat /x /q Q:
Insert new disk for drive Q:
and press ENTER when ready...
The type of the file system is FAT32.
The new file system is EXFAT.
QuickFormatting 60890M
Volume label (15 characters, ENTER for none)?
Invalid media or Track 0 bad - disk unusable.
Through Disk Manager
Code:
---------------------------Virtual Disk Manager---------------------------
The format did not complete successfully.
---------------------------OK ---------------------------
There is something definitely wrong with the card

OxygenOS 3.1.1 community build problem. HELP

Please someone help me. I flashed the OOS 3.1.1 community build through twrp. Now I formatted my samsung 32 gb sd card as internal memory in adoptive storage, but when I try to migrate data it says "not enough storage space".
tomriddle25 said:
Please someone help me. I flashed the OOS 3.1.1 community build through twrp. Now I formatted my samsung 32 gb sd card as internal memory in adoptive storage, but when I try to migrate data it says "not enough storage space".
Click to expand...
Click to collapse
Try moving individual apps
Is this the same ota that oneplus is sending to our devices?
Wait, so you defined the SD card as internal memory, and you're trying to migrate the data from internal to sd?
I have the exact same problem. I installed OxygenOS 3 and have the latest OTA update.
I enabled the adoptable storage (can't post links yet) but I can't see my sd card on my pc, when the phone is connected. It shows up in my phone without any problems.
I tried to reformat my SD into portable storage than into internal again but I always receive the "not enough storage message" whenever I try to migrate data.
Quoting from this thread on the Oneplus Forums: https://forums.oneplus.net/threads/use-sd-card-as-internal-storage-cant-also-with-6-0.460967/
this appears to be the answer.
1. activate USB Debugging on Developer Options
2. download adb tools here and put it in one folder.
3. plug your phone to pc via USB
4. now open windows explorer and "shift + right click" at adb folder, then sellect "open command window here"
5. type "adb shell sm set-force-adoptable true" (without quote) and then press enter
6. unplug your phone and go to setting>storage&usb>SD Card
7. click 3 dot on top right corner>setting>format as internal
All credit for this response goes to: https://forums.oneplus.net/members/alfred-albert.860990/
Yeap, those were my exact steps. Actually my SD working is working pretty good in the phone, with all the new apps being correctly installed into it.
Deep down, what is really upsetting me, is that I can't see the SD card on my Windows Explorer when I connect the phone to my PC (and yes, I tried it on different computers as well). I really like to use it as a portable storage device
Before OxygenOS 3 I was using CyanogenMod and this was working as expected.
Do you have a clue what could be going on?

Categories

Resources