Running RAM from the SDCard... is it possible? - G1 Android Development

I did a search but I only have a phone to do this from so hopefully I didn't miss it.
Is it possible to make ram run off of the SDCard in a new partition (or even a current partition) simalar to Readyboost for vista? With all these home screen apps taking up so much RAM is would be helpful.
I am what you would call an advanced noob at this so don't flame me if I'm totally off.

I don't believe android supports something like this, this is sort of like Virtual Memory in Windows. However, the effectiveness of this isn't very good, moreover, the speed of the SD card or even support for this feature is... unknown. So, for now, I'm going to have to say I don't think so.

http://forum.xda-developers.com/showthread.php?t=483110&highlight=swap

Yeah, it's in the market now too. I haven't tried it out though, I don't want to make my microSD card last even less now... =P

axion68 said:
http://forum.xda-developers.com/showthread.php?t=483110&highlight=swap
Click to expand...
Click to collapse
Thank you for that.

amgupt01 said:
Yeah, it's in the market now too. I haven't tried it out though, I don't want to make my microSD card last even less now... =P
Click to expand...
Click to collapse
Any idea how much less?

mmafighter077 said:
Any idea how much less?
Click to expand...
Click to collapse
Linux swap partitions aren't designed for flash memory like Readyboost is. Microsoft says Readyboost is designed to make your memory last at least 10 years with moderate use, but Linux swap might stress it more. MicroSDs are really cheap though.

nm page didn't load right, i thought i was the first post with useful info.

mmafighter077 said:
Any idea how much less?
Click to expand...
Click to collapse
It should still last you years.
Each sector on flash media can be written to something like 10,000 times. After that's worn out, I believe it just ignores that sector. Meaning when your mem stick starts dying, you'll just have less space available to you.
I currently run my notebook with a Compact Flash card in the notebooks built in CF slot, and run my swap file on that. It's been a while, and it still hasn't died.

It's quite a long time - a sector isn't written 10,000 times sequentially, the hardware in the chip moves the writes around to avoid wearing out any single element (wear levelling), and if any single element does go it'll just ignore it, as you mentioned.
Any modern SD is likely to outlive the phone, basically. I've got entire computers running off SD and I've never had a failure (hard drives fail way more often, due to their mechanical nature).

my android is running off a SD card.

Related

just a thought (bring us light)

me and my friend where talking about useing the sd card as a additional RAM or a source of temp memeory like a pagefile/swap file. is it possable at all? JF i know your man and possibly thought of this. if this can be done apps would be bigger and better!
I am nearly positive it couldn't be used as a ram extension at all, and it really is pointless to use it as a temp memory, since the internal phone memory transfers at nearly the same speed as the sd card, unless it's class 6 or class 8.
Sorry to bring your hopes down.
just create a linux swap partition on the SDcard, and use mount to mount it. boom, instant virtual memory, really do not see why it wouldnt work.
However, it IS a bad idea, as it will be DOG slow going out to the SDCARD, i mean, HD swap is already terrible (you feel it when you start swapping out), so I would say not a great idea.
I think the next big thing smartphones will support is hardrive and ram upgrades. That would be so piff... imagine iff u can keep updating you smartphone internaly to keep up with the times? I.e= " yes sir 3g is not supported on your phone, but if u want to buy the 3g mini-pci (lol) adapter u can 3g away 2day " lmao, I wud have a stain in my pants if I herd that sentence

Home Slowness & App Organization

So I've rooted and SD apped my G1, and have been loving every bit of it. I do have one question though about speed.
This is not really related to rooting or SD apping my phone it's more along the lines of the speed of "Home"
I often find that the more apps i move to my home screen (or your fav home app 'open home' 'ahome' etc), that going to the home app takes a long time to load.
When I only have a few icons then it's faster generally speaking. But I have about 7 folders with maybe 7-10 apps in them on avg, to keep my screen organized, but it seems that I will never get around how slow it is due to the amount of icons i have in the folders on the screen.
Does anyone have any suggestions on how to make the home screen any faster while keeping my apps organized?
I was thinking along the lines of maybe a Labeling App that lets you categorize your apps...sort of like how the Market lets you search for them. Maybe this way...a reference to a label could at runtime go and pull up the apps you've labeled as such...as opposed to having physical app links in a physical folder...thus forcing the home screen to load all of your organized apps (that you're not even using at the moment)...slowing it down.
Tips & tricks welcome!
swapit !!
http://www.cyrket.com/package/lv.n3o.swapper
dixxa said:
swapit !!
http://www.cyrket.com/package/lv.n3o.swapper
Click to expand...
Click to collapse
Could you provide some kind of testimony about this app?
Is there any side effect of that mod what are the concret and noticable benefits?
I have the default 2GB scandisk card in my phone, is it fast enough to do SWAP? I have no clue how crappy or neat is that card in terms of speed.
Thanks
friggin sweet! worx awesome!
man this app wont destroy your card
it'll create a file named swap on you /system/sd/
and boost you little phone it's free feel free to test
if you don"t like it disable it and restart your phone .
that's all !
nice site thanks
It WILL shorten your SD Card's lifetime significantly!
There is a limited number of reads/writes before the SD card begins to corrupt.
well well well
http://communities.sandisk.com/sandisk/board/message?board.id=memorycards&thread.id=614
directly from sandisk's forum ... so please stop talking nonsense ...
dixxa said:
well well well
http://communities.sandisk.com/sandisk/board/message?board.id=memorycards&thread.id=614
directly from sandisk's forum ... so please stop talking nonsense ...
Click to expand...
Click to collapse
That might be for normal usage.
Using the disk as a swap drive IS NOT NORMAL USAGE!
And it still doesn't change the fact that there's a limit to how many times you can read and write to a flash memory chip.
I read an article about a TV company who were trying out SSDs (based on flash memory, the same tech) as a fast way of providing on-demand TV over the internet.
The drives lasted about 3 days... and that's professional drives..
I'm not saying you will burn out your card in 3 days... but you will decrease it's lifespan from maybe 2 years to 1 year or maybe 6 months.
Does it really matter micro sd cards are so cheap I got an 8GB class 6 card off newegg for $15 w/ free shipping. Just make sure you back your crap up every so often. Which you should do anyways.
speoples20 said:
Does it really matter micro sd cards are so cheap I got an 8GB class 6 card off newegg for $15 w/ free shipping. Just make sure you back your crap up every so often. Which you should do anyways.
Click to expand...
Click to collapse
Not really, except that - as you say - you should be aware of it, so that you're not suddenly left with data loss and a semi-bricked phone ;-)
Don't worry sandisk microSDHC have something like 10years life span and believe me you would change card before the swap "kill it".
After using Swapper for a few days i uninstalled it. So it's not really resolved my issue. it seems to lockup the whole phone when not in use for a few hours or so. nothing responds, and I have to pull the battery to get it to turn off. nice concept...and when it was working, it worked well. just not sure why it freezes the phone after phone inactivity.

Read-Only MicroSD cards suck!

Ok, been fighting with my G1 phone for over a month.
First it was the phone shutting down because the battery life was a whopping 5mins of any use. That was killing the OS, so kept having to reinstall.
Now that I got a replacement battery, it seems that something is causing my 8GB MicroSD card to stay 'read only' when I plug it into my usb-flash reader on my Ubuntu system.
I severely need to reformat my whole phone and start fresh but seem to be kinda screwed at the moment because of this damn card issue.
I have scoured the web and it seems this is some sort of stupidly common problem and I am just stunned at the sheer lack of solutions that work.
So, I am hoping that someone here can help and direct me to have a decent phone once again and not feel totally worthless and ashamed when I tell people I am a tech but can't fix my own damn phone.....
30 year-old trick does that job!
http://www.camerahacker.com/Forums/DisplayComments.php?file=Storage/memory_card_locked.html
This is just a guess, but I remember back when I was using linux (Gentoo or Ubuntu I think) FAT32 partitions were mounted read only, it was a limitation of the OS. I remember the documentation saying it was possible to mount it read/write but strongly discouraged.
This was a long time ago though, and to be honest I'm not sure if it was a FAT32 or NTFS partition that I had that problem with.
That's NTFS. Hasn't been any problem writing to FAT32 in a looooooooooong time. Also it has been safe to write to NTFS for some years now.
Are you using a MicroSD to SD adapter? There's a little switch on all SD cards making them read-only. Flip it and you should be good to go.
EDIT: Just saw you just noticed it
Actually wasn't a switch. A poorly designed adapter that broke at some point where the 'switch' is supposed to be. Cheap plastic.

So, what's the SD card situation in ICS?

So, if you haven't heard, the news we have so far says ICS removes USB mass storage, likely due to Google's efforts to pressure everyone to use the cloud instead. so now I'm curious have they nerfed sd card support as well? for example, in honeycomb, there was already no support for writing to sd, which meant you couldn't even install apps to an sd card, like earlier android versions. I'm wondering if they're planning to carry the limitation over to ICS.
It wouldn't surprise me if they never gave the function to tablets; after all, since it was a limitation for Honeycomb tabs to begin with, all the manufacturers started out releasing honeycomb tabs with larger memory than they did to phones, since users wouldn't be able to get much use out of a tab with only 300 MB to write to. but since ICS is for phones AND tabs, and so many existing phones don't have a large amount of onboard storage, no write support would mean google is effectively banning a LARGE amount of otherwise good phones from ICS by blocking adoption of Market apps, which gives users less incentive to stay in the Android ecosystem when they get their next upgrade.
anyway, what's the situation? anyone know, maybe some devs who've looked at the ICS source?
No Sd
If this is the case it'll suck!! lol
Even if this is the case and they do not offer SD storage on ICS it will not effect cooked roms at all (devs will get apps2sd going). With that said ICS does come in the phone flavor so I really do not see Google going backwards and removing features such as SD storage but like you said everyone is pushing for cloud storage.
Sent from my PC36100 using Tapatalk
ICS supports SD cards, it just does not support usb mass storage. That means when you hook your phone up with usb, you cannot read/write to the SD card. This is actually more of an issue with phones that DON'T have an SD card, as I can just take my SD card out and put it into my computer and do everything I need to. This doesn't mean you can't add or remove files, you just use MTP to do it. Yea, it is a little bit of a pain in the ass, but we will get use to it. And really, what is the alternative? An Iphone? Then you will have to go about it the same way..just with Itunes.
Alot of people prefer MTP because it doesn't unmount the SD card to achieve mass storage capabilities.
lowandbehold said:
ICS supports SD cards, it just does not support usb mass storage. That means when you hook your phone up with usb, you cannot read/write to the SD card. This is actually more of an issue with phones that DON'T have an SD card, as I can just take my SD card out and put it into my computer and do everything I need to. This doesn't mean you can't add or remove files, you just use MTP to do it. Yea, it is a little bit of a pain in the ass, but we will get use to it. And really, what is the alternative? An Iphone? Then you will have to go about it the same way..just with Itunes.
Alot of people prefer MTP because it doesn't unmount the SD card to achieve mass storage capabilities.
Click to expand...
Click to collapse
MTP may have its advantages, but it can't fully replace USB mass storage's functions. without drag and drop to ANY computer, file transfer and management becomes limited. this is one of THE major reasons I chose Android as a smartphone OS to begin with, after hassling with an iPod touch for 2 years. Fact is, I have actually NEEDED the function many times; the lack of it would have caused some serious problems for me. I'm not going to go into each situation I've had here, but here's my bottom line: *most interesting man in the world impression* I don't always need USB mass storage, but when I need, it, I NEED it.
anyway, from a non-ranting perspective, I'm intrigued as to what this OS change is going to do to the market for smartphones. Assuming Google doesn't give the option back, I'm predicting three consequences, each not too big on its own, but altogether, problematic:
1. OEMs may be even more reluctant to update existing phones to ICS, for fear their users will be upset at the loss of the function - as if the updates situation wasn't constricted enough already.
2. for the same reason as above, some OEMs may be more likely to release their upcoming phones with 2.3 instead of 4.0+. keep in mind, some OEMs are still releasing "new" phones on froyo, despite it having been replaced by Gingerbread for a while now. they do this now almost entirely as a cost cutting measure. when you add in the fact of at least one functional downgrade? they'll get worried that at least some new customers will get spooked by it and... (see problem 3). something also worth considering here, which many people have already pointed out, is that many of the new features of ICS, especially its new interface changes, are very similar to mods that Samsung and HTC have already put into already released versions of Sense and Touchwiz. So many regular users, when browsing for a new phone in store, wouldn't even see all the "new" features of ICS as any different than many of the other in store models. most people don't spend hour after hour online researching every little feature and quirk of every phone; they just go in, play with demo models a little bit, ask maybe a couple questions about the phone itself, which the worker probably can't answer, then picked based on a few minor differences.
3. as you pointed out, the alternative is to buy an iPhone - which many people will do. Android's only real advantage over the iPhone isn't that it works better, because it doesn't: its major market advantage is that it does MORE than the iPhone, even if it could use improvement in its implementation. If Android's ability to do more keeps getting slowly downgraded, AND the iPhone slowly but surely copies more of what Android does (see EVERYTHING in iOS 5 for example) then there's going to be a significant amount of people choosing iOS over Android. maybe not people on this board, but believe me, that's how a significant amount of regular people are going to look at it.
Oook...all I did was answer your question...so buy a phone with an SD card...no issues then. Just pop it into a converter and pop it into your computer...drag and drop until your hearts content.
lowandbehold said:
Oook...all I did was answer your question...so buy a phone with an SD card...no issues then. Just pop it into a converter and pop it into your computer...drag and drop until your hearts content.
Click to expand...
Click to collapse
sry if I came across as defensive or something, I'm actually just really into analyzing the issues with the development of tech markets.
removing the sd card can solve the problem sometimes.... but not all the time. many computers don't have sd card ports, especially ones at businesses, but also personal computers that are just slightly low end, or only slightly older. (macbooks didnt have SD card ports until 2009, and they tend to last pretty long, so those models will be around for a while.) even if a computer does have an sd port, it's usually a regular size one, not micro, so you need an adapter on hand. yet those adapters are less likely to be around than a micro usb cable is.
Falkner09 said:
sry if I came across as defensive or something, I'm actually just really into analyzing the issues with the development of tech markets.
removing the sd card can solve the problem sometimes.... but not all the time. many computers don't have sd card ports, especially ones at businesses, but also personal computers that are just slightly low end, or only slightly older. (macbooks didnt have SD card ports until 2009, and they tend to last pretty long, so those models will be around for a while.) even if a computer does have an sd port, it's usually a regular size one, not micro, so you need an adapter on hand. yet those adapters are less likely to be around than a micro usb cable is.
Click to expand...
Click to collapse
They sell the adapters at wal mart for like $5, and you can get an SD card reader with USB to attach to a computer for a couple dollars as well..I completely agree that the loss of USB mass storage capability sucks...but we are still better off than apple users. And im pretty sure the devs will figure out how to get it working on custom ROM's.
Lack of mass storage will be major step back in my opinion, Looks like everyone is heading towards Apple way of thinking. Forcing the user to use the "ecosystem."
What are these?
What are these files? Will they work on my 3G only Xoom? Or is it just wishfull thinking?
http://goo-inside.me/roms/teameos/stingray_cdma
Eos-stingray_cdma-9.zip
Eos-stingray_cdma-9a.zip
full_stingray3g-ota-eng.solarnz.zip
---------- Post added at 04:36 AM ---------- Previous post was at 04:10 AM ----------
I just realised that I posted in the wrong place. Sorry people.

Discussion of SDcards used on any device

Moving the intent of a few posts on LineageOS thread to here.
rb1979 said:
Hi everyone,
Some of you reported that SD Card stopped working. This happened to me too today after about 20 hours after the latest update. The case with me is it doesn't fix itself even after a restart. I'm kind of stuck, whatever I want to do with the SD Card it wants me format it. I always had it as internal storage with apps and other things there. I have the the backup from the before the update. Will that fix if I restore it? Just want to mention that I update every week and never missed one. I had very minor issues up until now. Week in and week out everything has been fine and I started using the rom with the first release, all clean, full format and then weekly over the air updates every single week.
If anybody know any solution please let me know, if nothing works or I don't hear anything I'll probably try the backup restoration. BTW, to be specific about SD card no working I always get two notifications, one is "Unsupported SanDisk SD card" and the other is "SanDisk SD card missing"
Thank you
Click to expand...
Click to collapse
KrisM22 said:
Use a card brand other than sandisk and size 32GB or less.
Click to expand...
Click to collapse
rb1979 said:
Thank you for you help, I really appreciate it. The problem I see, right or wrong, is that I had this card for a year with no issues, first under stock rom, then under CM, and now under LineageOS up until the latest update with no issues at all. So it's just hard for me to take the card as the problem. Especially after seeing other people reporting it too lately. Do you have more information than just that? Meaning LineageOS and won't ever get along with sandisk or size larger than 32GB because of some external hardware limitation or something like that. Or this is just general knowledge what works best with LineageOS? In the first case I can think about case I can go and invest into a new card but in the second case I can just wait it out until codebase improves. It would good to know more so I can make better decisions.
Thanks for your help again.
Click to expand...
Click to collapse
KrisM22 said:
In my experience, most folks presenting SDcard problems have sandisk. I personally have had problems with sandisk that has led me to avoid them. I prefer samsung. There are many others. edit currently using a pny U3 32GB, but it's an old one and only does 56/29MBs R/W.
Click to expand...
Click to collapse
adityak1303 said:
+1 @KrisM22. I agree that almost all the users that state that there's a problem with their SD card were using a SanDisk SD card including myself. @rb1979, if you really think that your card isn't faulty, then try using it in some other phone. If you face the same errors then your card is faulty. If it works fine on the other phone, only then can it be considered as a problem with the ROM.
Click to expand...
Click to collapse
rb1979 said:
Thanks both of you, I'll do some testing around and get back to you with my findings.
Click to expand...
Click to collapse
KrisM22 said:
I just ordered one of these because I want to test the 64GB thing as it keeps coming up.
Samsung 64GB 100MB/s (U3) MicroSDXC EVO Select Memory Card with Adapter (MB-ME64GA/AM) - $23 + some silly $3 thing to get free shipping over $25. There are faster ones out there but I'm a cheapskate and don't use it enough to justify it.
Click to expand...
Click to collapse
That's most of it - then it goes verbose and wobbly.
I welcome any and all comments about SDcards!
There is no OT here but remember the XDA rules and try to be nice to folks. You can learn without trying to control others' behaviour.
No need to pretend you are TD. (allusion to Alice in Wonderland - Top Doormouse)
Thanks for creating this thread. There are surprisingly few other recent threads that discuss this topic on XDA apart from the one I've previously linked to (https://forum.xda-developers.com/android/help/micro-sd-write-access-format-exfat-t3358275). Also, I'm bringing over the well informed SD related comments that you left behind.
---------------------------
I've got to push back on the apriori assumption that these are specifically Sandisk brand card issues without knowing the specific details of the issues and seeing actual logs, and also without knowing the history of the individual cards in question (details of every device it was connected to and how it was connected, what OS and what file management methods were used, and how full the card typically is, and how frequently it might be disconnected in the middle of a file operations, among other things).
We must be mindful of the fact that the majority of SD cards in circulation are Sandisk cards which means that the majority of reported problems will be on Sandisk cards but this does not mean that the Sandisk cards are experiencing proportionately more issues than other brands. I don't doubt individual experiences, but it they may not speak to a larger picture. For example: Having supported large systems (>300 devices) running Linux directly from SD cards I did not see more problems with Sandisk cards than others. We've not seen enough evidence here to declare that this this is a Sandisk problem.
rb1979 said:
...I had this card for a year with no issues, first under stock rom, then under CM, and now under LineageOS up until the latest update with no issues at all.So it's just hard for me to take the card as the problem
Click to expand...
Click to collapse
The fact that a card has been used for a long time under different circumstances does not support a logical argument that the problem is in the ROM, in fact that supports the logical argument that the problem is with the card.
adityak1303 said:
....if you really think that your card isn't faulty, then try using it in some other phone. If you face the same errors then your card is faulty. If it works fine on the other phone, only then can it be considered as a problem with the ROM.
Click to expand...
Click to collapse
Good advise since, if the cards is having problems it should bring the problems to the other devices. Testing a different card in the first device on which the problem was noticed is also a good test.
--------------------------
Here is some supplemental information specific to Sandisk SD cards' built in data protection on cards experiencing failure. https://forum.xda-developers.com/android/help/micro-sd-write-access-format-exfat-t3358275. To summarize what is there: An SD card may begin to fail unknown to us, and then when the built in data protection is invoked it "breaks" the card with a dirty bit at beginning of drive so it cannot be written to or formatted but still allows us to copy data. The symoptoms when that data protection is invoked are similar to those bing reported by people who can no longer mount the card in Android devices (Android devices require read and write access to mount the card, unlike when the card is access via card reader on computer).
Just an update. I tried to format the card as portable storage (after this failure as internal and being burned I have hard time trusting it now) but it fails. I didn't do any testing with other phones just went straight for format. I might just buy another card. I think the phone specs say it's 32 GB max, is it still the case with different OS or not (meaning it was due to software not hardware) if I could get something higher than 32 (the current broken one is 32) I would go for it.
Thanks
rb1979 said:
Just an update. I tried to format the card as portable storage (after this failure as internal and being burned I have hard time trusting it now) but it fails. I didn't do any testing with other phones just went straight for format. I might just buy another card. I think the phone specs say it's 32 GB max, is it still the case with different OS or not (meaning it was due to software not hardware) if I could get something higher than 32 (the current broken one is 32) I would go for it.
Thanks
Click to expand...
Click to collapse
I believe after you use it as internal, and then try to use it as external, you first have to write an MBR on it and a partition formatted FAT32. i use a bootable stand-alone GPARTED to do that.
http://gparted.org/
Moto says it's limit is 32GB. Folks have, I believe, used much bigger cards on it. Don't know what is the limiting factor - be it software (ROM) , hardware, or licensing (exfat for Microsoft). I have ordered a 64GB Sammy which I should get in 1/2 week so I can test. Course I wouldn't be doing exactly what you would be doing so the test would only show that the G3 could read/write to it. I will only use it as external storage. I don't really "need" 64GB but it will allow me to be a bit more sloppy vis a vis nandroid backups.
It could be that after you format yours, that it will suddenly work just fine. Then again I just had a thumb drive go belly-up from I/O errors - once in a great while, it happens.
KrisM22 said:
... Moto says it's limit is 32GB. Folks have, I believe, used much bigger cards on it. Don't know what is the limiting factor .
Click to expand...
Click to collapse
I've got a 128gb in my Moto G (3rd - XT1540 2GB), and I have used the card for a long time. It works just fine for me, and the space is obviously fantastic to have. Every now and then (every few months or so, I'd say - maybe 3 times in the 18 months I've had it), it does become corrupted, though, and I get those same error messages. A backup, wipe/re-format, and restore, and I put it right back in my phone and it works just fine again. Seems like that's happened in other devices, though, too.
The card is a SanDisk Ultra SL128 (Class 10/UHS-1, man'd Jan 2016). I've only ever used it for external storage, never adopted, and I've only ever formatted the card as FAT32, using my PC. I'm running stock Android 6.0 24.24.1 at the moment, with TWRP.
beachfl said:
I've got a 128gb in my Moto G (3rd - XT1540 2GB), and I have used the card for a long time. It works just fine for me, and the space is obviously fantastic to have. Every now and then (every few months or so, I'd say - maybe 3 times in the 18 months I've had it), it does become corrupted, though, and I get those same error messages. A backup, wipe/re-format, and restore, and I put it right back in my phone and it works just fine again. Seems like that's happened in other devices, though, too.
The card is a SanDisk Ultra SL128 (Class 10/UHS-1, man'd Jan 2016). I've only ever used it for external storage, never adopted, and I've only ever formatted the card as FAT32, using my PC. I'm running stock Android 6.0 24.24.1 at the moment, with TWRP.
Click to expand...
Click to collapse
Thanks - Becoming corrupted every 6 months seems excessive, but with heavy use...? So what do you use it for? Also it sounds like you are using something other than the phone to format it...?
At least you are ready for it and just re-format it!
beachfl said:
I've got a 128gb in my Moto G (3rd - XT1540 2GB), and I have used the card for a long time. It works just fine for me, and the space is obviously fantastic to have. Every now and then (every few months or so, I'd say - maybe 3 times in the 18 months I've had it), it does become corrupted, though, and I get those same error messages. A backup, wipe/re-format, and restore, and I put it right back in my phone and it works just fine again. Seems like that's happened in other devices, though, too.
The card is a SanDisk Ultra SL128 (Class 10/UHS-1, man'd Jan 2016). I've only ever used it for external storage, never adopted, and I've only ever formatted the card as FAT32, using my PC. I'm running stock Android 6.0 24.24.1 at the moment, with TWRP.
Click to expand...
Click to collapse
That may not be drive corruption but rather a corrupted file or files. If it is localize drive corruption it may still be there without having any impact until some data is written to that part of the drive. Unlike platter based hard drives, when these drives actually start to fail they may invoke a built in data protection (dirty bit) which resembles being locked in read only mode preventing the drive from being formatted which is obviously not your case. Have you ever done a sector scan of the drive, eg chkdsk <driveletter> /f /r or done a full format (as opposed to quick format)? Either of those things may flush out localized damage and the scan might fix it but they would take a long time.
KrisM22 said:
Thanks - Becoming corrupted every 6 months seems excessive, but with heavy use...? So what do you use it for? Also it sounds like you are using something other than the phone to format it...?
At least you are ready for it and just re-format it!
Click to expand...
Click to collapse
Yeah I guess it is kinda a small PITA lol. Could just be from me starting and cancelling or moving too many things at once, I don't know.
I've never actually come close to needing all that space to TBH. I could probably do just fine with a 64, but it's nice to know I could record or store hours of HD video, for example, if I need it. I got nearly 30 gigs of music on it. I keep tv and movies on there, too, in case I get caught bored somewhere. Full Nandroid and Titanium backups are on there, as well.
I use a microSD adapter and a small (76 kb) utility for Windows called FAT32Format (Ridgecorp).
---------- Post added at 22:00 ---------- Previous post was at 21:45 ----------
IronTechmonkey said:
That may not be drive corruption but rather a corrupted file or files. If it is localize drive corruption it may still be there without having any impact until some data is written to that part of the drive. Unlike platter based hard drives, when these drives actually start to fail they may invoke a built in data protection (dirty bit) which resembles being locked in read only mode preventing the drive from being formatted which is obviously not your case. Have you ever done a sector scan of the drive, eg chkdsk <driveletter> /f /r or done a full format (as opposed to quick format)? Either of those things may flush out localized damage and the scan might fix it but they would take a long time.
Click to expand...
Click to collapse
I've had that problem before, too, but not on the 128 I have in my phone now. That is very frustrating. One of my 32 gb cards suddenly went into "read-only" mode as you describe, and nothing I can do will get it useable again. All the files are still readable from it (except the part of one huge video file that is on the bad sector that seems to have caused the problem).
So right, my 128 card doesn't have that problem, and seems to be corrupted files, as you say, not the drive itself. I do actually do what you talk about - when I do find I have to re-do the 128 sd card in my phone, I run a Windows chkdsk /r before I re-format it, and a chkdsk /f afterward, as a check. The chkdsk /r does take quite a while, yeah .. a few hours.
Cheers
beachfl said:
Yeah I guess it is kinda a small PITA lol. Could just be from me starting and cancelling or moving too many things at once, I don't know.
I've never actually come close to needing all that space to TBH. I could probably do just fine with a 64, but it's nice to know I could record or store hours of HD video, for example, if I need it. I got nearly 30 gigs of music on it. I keep tv and movies on there, too, in case I get caught bored somewhere. Full Nandroid and Titanium backups are on there, as well.
I use a microSD adapter and a small (76 kb) utility for Windows called FAT32Format (Ridgecorp).
---------- Post added at 22:00 ---------- Previous post was at 21:45 ----------
I've had that problem before, too, but not on the 128 I have in my phone now. That is very frustrating. One of my 32 gb cards suddenly went into "read-only" mode as you describe, and nothing I can do will get it useable again. All the files are still readable from it (except the part of one huge video file that is on the bad sector that seems to have caused the problem).
So right, my 128 card doesn't have that problem, and seems to be corrupted files, as you say, not the drive itself. I do actually do what you talk about - when I do find I have to re-do the 128 sd card in my phone, I run a Windows chkdsk /r before I re-format it, and a chkdsk /f afterward, as a check. The chkdsk /r does take quite a while, yeah .. a few hours.
Cheers
Click to expand...
Click to collapse
Great that you're running chkdsk on it. May be caused if you cancel or something happens in the middle of a move. Only other thing I could suggest is to do your format on the phone itself, after you've done everything else on the PC. Don't know if that would make a difference. Shouldn't but I've run across vy experienced folks saying to do that. But... Yeah you've got me hankering to put a 128GB on it...
edit: for read only cards before you trash them I would run them by gparted just to see if re-creating the MBR and partition would change its mind. I have successfully done that with thumb drives but not with cards/adapter/reader.
KrisM22 said:
Great that you're running chkdsk on it..
edit: for read only cards before you trash them I would run them by gparted just to see if re-creating the MBR and partition would change its mind. I have successfully done that with thumb drives but not with cards/adapter/reader.
Click to expand...
Click to collapse
Yeah, thanks for reminding me about fixing the errors, IronTechmonkey. It's kinda an important step I forgot to mention.
I not sure I have the bad card still. I didn't think about GParted, should have. I tried Paragon, among other things, but to no avail.
What speeds are folks getting from a U3 SDE card? I bought what I thought was a 100/60MB/s card and it does about what my old PNY card did - R=40-50, W=34-40MB/s. Is the phone the limiting factor or did I get a bum card?
KrisM22 said:
What speeds are folks getting from a U3 SDE card? I bought what I thought was a 100/60MB/s card and it does about what my old PNY card did - R=40-50, W=34-40MB/s. Is the phone the limiting factor or did I get a bum card?
Click to expand...
Click to collapse
AFAIK the the phone hardware/OS is unlikely to meet the advertised speeds of the cards. Likewise and perhaps more so for USB 2.0 ports and anything using MTP.
I dont know how this compares but for what it is worth: With a Sandisk Utra SDHC (Class 10 - Video, Ultra High Speed Class 1 - whatever that jargon means) touting 80 MB/s read speeds and 40 MB/s* write speeds; the read speeds did consistently approach the rating (getting hot enough to scorch the logo) and the wite speed occasional did. Another factor is the size of files being copied, larger quantities of smaller files taking more time per MB, unless using some dedicated test utility I've never actually done a test of SD r/w speeds on the device. What are you using to measure those?
* In re write speed ratings: Digging into the small print of the specifications may reveal that the manufacturer uses different size cards each for the reed and write speed ratings, effectively padding the write speeds by citing test results from smaller capacity cards.
IronTechmonkey said:
AFAIK the the phone hardware/OS is unlikely to meet the advertised speeds of the cards. Likewise and perhaps more so for USB 2.0 ports and anything using MTP.
I dont know how this compares but for what it is worth: With a Sandisk Utra SDHC (Class 10 - Video, Ultra High Speed Class 1 - whatever that jargon means) touting 80 MB/s read speeds and 40 MB/s* write speeds; the read speeds did consistently approach the rating (getting hot enough to scorch the logo) and the wite speed occasional did. Another factor is the size of files being copied, larger quantities of smaller files taking more time per MB, unless using some dedicated test utility I've never actually done a test of SD r/w speeds on the device. What are you using to measure those?
* In re write speed ratings: Digging into the small print of the specifications may reveal that the manufacture uses different size cards each for the reed and write speed ratings, effectively padding the write speeds by citing test results from smaller capacity cards.
Click to expand...
Click to collapse
Thanks.
Interesting - so you were testing it on windows (?) I did test them on linux and got W=74 on the PNY and 77MBs on the Samsung. That's through a USB3 cardreader.
On the phone I used A1 SD Bench, SD card test, and disk speed test.
Off to try windows...
I was just going to boot up a WinPE and test it there. What prog did you use to test it?
Yes, both of these cards test at about R=81 , W=66.
KrisM22 said:
Thanks.
Interesting - so you were testing it on windows (?) I did test them on linux and got W=74 on the PNY and 77MBs on the Samsung. That's through a USB3 cardreader.
On the phone I used A1 SD Bench, SD card test, and disk speed test.
Off to try windows...
I was just going to boot up a WinPE and test it there. What prog did you use to test it?
Click to expand...
Click to collapse
Yes, Windows 7, which reports file data transfer speeds in the copy process window so I did not use a utility. I've done this enough times in geneal, and a few times specifically with large files and a stopwatch, so I know the speed in the file copy window is relatively accurate (for single large files). The speeds you get on linux seem reasonable. I'll test A1 SD Bench on Osprey when I have a chance. Thanks.
---------- Post added at 11:09 PM ---------- Previous post was at 11:08 PM ----------
KrisM22 said:
Yes, both of these cards test at about R=81 , W=66.
Click to expand...
Click to collapse
Also seemingly reasonable.
My card seem to be working just fine on my Lineage OS. I rebooted by device and now it says it's corrupted. Is there any way out? Will I be able to get my data back?
jay.bhadra1995 said:
My card seem to be working just fine on my Lineage OS. I rebooted by device and now it says it's corrupted. Is there any way out? Will I be able to get my data back?
Click to expand...
Click to collapse
My suggestion would be to copy whatever you can off it and re-format it asap. If you can't read it via phone, try PC.
EDIT: I am assuming you are using it as external. If you are using it as internal, I believe you have lost everything. I know of nothing that can read it. GPARTED can only re-add an MBR and a partition and make it usable again, but all data is lost.
KrisM22 said:
My suggestion would be to copy whatever you can off it and re-format it asap. If you can't read it via phone, try PC.
EDIT: I am assuming you are using it as external. If you are using it as internal, I believe you have lost everything. I know of nothing that can read it. GPARTED can only re-add an MBR and a partition and make it usable again, but all data is lost.
Click to expand...
Click to collapse
Yeah. I copied everything and made a backup. Luckily I use it only as a storage device and not an internal drive for apps. But how do I re-format it? I tried using the format option that my phone gives me but to no avail.
jay.bhadra1995 said:
Yeah. I copied everything and made a backup. Luckily I use it only as a storage device and not an internal drive for apps. But how do I re-format it? I tried using the format option that my phone gives me but to no avail.
Click to expand...
Click to collapse
Do you have a little card reader so you can plug it into your PC?
KrisM22 said:
Do you have a little card reader so you can plug it into your PC?
Click to expand...
Click to collapse
No. Sadly I don't. Is there no other way round to format it?

Categories

Resources