new memory card works but cannot mount for rw - G1 Q&A, Help & Troubleshooting

so i just got a new TOPRAM 16gb sd card and yes i know cheap cheap. but whatever...anyways it works on my g1 and the g1 can read the files on it and i can mount it so my comp can see it but when i run the command
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
it just says something like invalid something and fails to mount. im not sure what the problem is considering the memory card works on my phone as well as computer and can be mounted threw android ui instead of code so wtf?
plus its giving me trouble with certain adb commands

That command not working has nothing to do with your new sdcard.
Are you rooted? If so your gonna need to give people more info (like the error message). If not then that's your problem.

im pretty sure it does because ive used it manytimes before when i needed to considering ive been playing with different roms for awhile now and yes, i am rooted and all that. usually that command always works for me, whether it be thru terminal, recovery, or adb. and that only changed once i put this new card in. its no big deal, cuz it works and everything. but I just dont understand why i cant mount it for rw

Related

SD card stuck in read only HELP!!!

Computer sees the card, Astro sees the card. Phone acts like it's not there.
Please help. I cannot figure out how to fix this.
Thanks James
I am having a similar problem but when I plug the microsdcard in my computer through the sdcard adapter or in my tmo dash it works just fine. I did a nandroid backup and after that my card was read only. trying changing the attributes in terminal and adb but neither worked and I will admit that im very new to linux stuff so im trying to read as much as i can to figure it out but its not easy.
Hey since no one else replied I decided to try a few things out. I formatted my sdcard in my vista computer and now the phone recognizes it. Not sure what caused that. I was about to reflash jf 1.41 to see if that fixed it but not necessary now. I'm gonna try backing up my phone again with nandroid to see if it duplicates. Seems to e ok even after backup. so now I have no idea what caused it. only other thing i was doing was pushing a new theme to my card through adb but it only pushed the filename. 0 bytes of data. I've looked up a ton of stuff to try to find out what I did wrong. from now on I think I will just use my spare card to update anything on the phone.
btw, card i was having problem with was a sandisk 8gb micro sdhc class 2. For the time being im only going to use this card for backup purposes as I also have a class 6 8gb card. hope this info helps.
Using a Class 6 8GB card here as well and same thing. I may wipe the card as well, but I was hoping iI could find some info as to what caused this... My card is stuck in read only mode too.. sucks.
in Terminal type
mount<enter>
you will get a list of what is mounted, and any attributes ( rw , ro etc etc )
to save typing it all out here, do Menu --> email To...
you now have an email draft, which is nice and pasteable
Here it is:
Code:
$ mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (rw)
/dev/block/loop0 on /system/modules type cramfs (ro)
/dev/block/loop1 on /system/xbin type cramfs (ro)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p1 on /sdcard type vfat (ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)
ok , its defiantly read only,
why? I have no idea
in terminal do
cat /etc/fstab
have a look at the sdcard line, suspect it reads :
Code:
/dev/block/mmcblk0p1 /sdcard vfat ro
if it does you can fix it with
Code:
su
mount -o rw,remount /system
vi /etc/fstab
ok, vi isn't all that friendly, so here is a quick guide
use the trackball to scroll down to the sdcard line
now press Shift + a
now delete, and type w ( we are telling it to mount read write instead of read only )
press Trackball+1 ( emulates Esc on Desktop )
now shift+z, shift+z ( yeap twice) this saves the changes
your fstab line should now read
Code:
/dev/block/mmcblk0p1 /sdcard vfat rw
this should resolve the ro issue next time sdcard is mount
unmount sdcard in settings, remove card, and reinsert
Code:
mount
fingers crossed, sdcard is rw
nearly forgot, you will probably want to put system back as read only, replace rw.remount with ro,remount
Code:
$ su
# cat /etc/fstab
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mtdblock4 /cache yaffs2 rw
/dev/block/mtdblock5 /data yaffs2 rw
/dev/block/mmcblk0p1 /sdcard vfat rw
/system/modules/modules.cramfs /system/modules cramfs ro,loop
/system/xbin/xbin.cramfs/system/xbin cramfs ro,loop
#
fstab has it as rw.
When I first boot up and do a mount, it's rw. If I immediately go into ASTRO and try to remove any files or directories it crashes. Then, if I go and round mount again it gives me the same result as before. ro.
well, you have me stumped
have you tried reinstalling astro?
do you have the same issue with linda?
in the meantime I'll sleep on it, 03:39 here
Firerat said:
well, you have me stumped
have you tried reinstalling astro?
do you have the same issue with linda?
in the meantime I'll sleep on it, 03:39 here
Click to expand...
Click to collapse
I haven't tried linda. I have just noticed that I get a "this software is BETA" message in Astro now.
The root of all this is that I removed a bunch of pictures through ASTRO last week and I've had broken thumbnails ever since in all applications that browse for pictures... photoslide, wallpaper, Pictures, etc... I've been trying to remove the .thumbnail directory since friday, but I keep getting this damn "Read-only filesystem" error and it's starting to really tick me off. Times like this when I get kind of annoyed at some of the half-assedness of some of the android apps.
I was going to just re-format the sdcard but went ahead an ran a chkdsk from Windows beforehand... came up with a ton of errors. I did chkdsk /f and it fixed them all and now everything is working fin. I really think ASTRO screwed something up when it deleted all the files.. anyone else have this happen or was it just a freak occurance?
tbh I doubt Astro would have managed to screw it,
anyway glad everything is good now
But that was when everything started. I deleted about 40 images in astro then the next day I went to look through my photos and I had a ton of broken thumbnails so I tried to use astro to remove the .thumbnails and albumthumbs directors and it would either say the system was read only or it would would just force close. All of the file errors were on the images that I deleted. (there were all 0k files)
I went ahead and tested this myself because I have had the same issue and the idea clicked when you mentioned ASTRO. So All weekend I was using my phone just fine accessing the SDCARD with no problem. Read this post went ahead ran ASTRO deleted some thumbnails .... and guess what? Now the SDCARD is in RO mode and anything that tried to access it crashes.
So it can't be a coincidence that my sdcard decided to stop working.
KNK said:
I went ahead and tested this myself because I have had the same issue and the idea clicked when you mentioned ASTRO. So All weekend I was using my phone just fine accessing the SDCARD with no problem. Read this post went ahead ran ASTRO deleted some thumbnails .... and guess what? Now the SDCARD is in RO mode and anything that tried to access it crashes.
So it can't be a coincidence that my sdcard decided to stop working.
Click to expand...
Click to collapse
its something with astro, i was backin up my apps yesterday and the exact same thing started happening to me so i just moved everything off my sd card to a folder on my computer and formated my sd card. it worked and i deleted astro its about to expire anyway
I just updated my ASTRO last night to the latest beta so it wasn't going to expire till 5/15 but I have removed it as it has completely corrupted the partition map of the SDCARD ... kinda funny I don't have it even partitioned it's just all FAT32.
Thanks ASTRO!
KNK said:
I went ahead and tested this myself because I have had the same issue and the idea clicked when you mentioned ASTRO. So All weekend I was using my phone just fine accessing the SDCARD with no problem. Read this post went ahead ran ASTRO deleted some thumbnails .... and guess what? Now the SDCARD is in RO mode and anything that tried to access it crashes.
So it can't be a coincidence that my sdcard decided to stop working.
Click to expand...
Click to collapse
OK, you have Astro theory to me
tell me was it thumnails or original images that you deleted?
i'm wondering if thumnails get indexed in a db somewhere
Firerat said:
OK, you have Astro theory to me
tell me was it thumnails or original images that you deleted?
i'm wondering if thumnails get indexed in a db somewhere
Click to expand...
Click to collapse
I'm not sure what happened or even if it was related to Astro but yesturday for an unknown reason I phone was acting very strange.
Example:
The first occurance was when I opened Telenav to get me the directions back home (from hanging out with my gf) and the app said that I still needed to reactivate GPS. (Oh yeah... that's right... I deactivated it to save battery life. DUH!) After doing so the app crashed. I tried starting it up again and it would pop up for a second and the go back to my home screen (Open Home). So I did a reboot.
After my phone started back up all hell broke loose. About 12 of my apps popped up with Force Close!
Realizing the inevitable, I decided to use MyBackup to backup my settings (sms, caller log) and it gave me an unable to access DB or something like that.
I don't think that it was Astro but I can't figure out what could have caused this.
I spent about 3 hours last night reinstalling all of my apps from Market because even though they are all saved to the ext2 on the SD (Thank God!) it still says FREE in market the apps that I have installed. (BTW... anyone know a fix?)
So it wasn't my SD card, I didn't do anything new at all. No installed apps, no themes, no updates, nothing. I guess it was a ghost in the machine.
Any clues?
Firerat said:
OK, you have Astro theory to me
tell me was it thumnails or original images that you deleted?
i'm wondering if thumnails get indexed in a db somewhere
Click to expand...
Click to collapse
I did two things ... just to test it out. Cleared thumbnails ends up the same result corrupted partition(RO) then deleted a file from the SDCARD and once again it did the same thing.
I tried this with Linda File Manager and it is working fine no change to the SDCARD & I was able to do everything with it that I was able to do with ASTRO just about.
ASTRO is either locking the SDCARD to do it's deletes and not unlocking it after it's done or something is just not being done right that is ends up corrupting the card.
I had the same problem with the Discover app. I'd move images and music over wifi from my computer and then they wouldn't show up in the music/pictures app. Other apps would see them.. I was able to just delete them normally and then copy them over via USB and it worked fine. Seems some apps, when they write, bork up the permissions.

help!

Ok I am using my iPod to type this as I don't have a PC readily available to gain access to my as card in my g1. Problem is I ran the original adp (to restore) update and now my phone is stick in a bootup loop. I rebooted and am at the console. My problem is I don't know the commands to get to my sdcard and go to the folder called updates which is where I keep the updates. I need to re run the theme I had installed to hopefully get my phone to boot up again. Could someone tell me commands from the console to get to the as card to redo the theme? Much appreciated if someone could help.
ok, got home, got it fixed by putting theme back onto phone (used mem card reader to put update.zip back on card). All is working good. I would still like to know commands, obviously not all possible commands, but just enough to do the above task if needed again. i looked online foe a list of commands, which i found but what would the sd card be called if i was trying to switch over to it to get to my files etc.... I know how to use DOS and this seems to be very similar?
Thanks
Code:
mount -a
will try to mount everything in the /etc/fstab
but if you just wanted to mount your sdcard it would be
Code:
mount /sdcard
which is a bit dull, so lets assume your fstab is screwed
Code:
mount /dev/mmcblk0p1 /sdcard
you would then do some thing like
Code:
cp /sdcard/updates/ThatThemeILike.zip /sdcard/update.zip
to be safe you should then unmount
Code:
umount /sdcard
then you can then go back to the recovery screen with
Code:
recovery
if your interested
http://www.busybox.net/downloads/BusyBox.html
will help you out with some basic commands
Awesome! thank you so much, I really appreciate it.

How Do I move a certain app back to internal memory?

I have partitioned sd card and I have the hello im apk on the sd and I want it on my phone because it wont let me change my buddy pic it says please make sure your sd card is in the phone so Im going to try to put it back on internal storage to see if it works. So how do I move it? I parted with apps2sd but the app wont work with cyan 4.0.1 so how Do I move it?
Apps2sd is really an all or nothing proposition. You can't have one app on internal memory and the rest on the SD card.
If you want to get rid of apps2sd altogether I can tell you how to move everything back.
OTOH, if an app is complaining about the sd card it's probably talking about the fat32 partition that it wants to store images on. Is your fat32 close to being full or something?
on a side note im on cyan 4.0.1 I was at 3.6.8.1 when I used the apps2d app and now when I try to open it it says Oops! Looks like you need to go through the tutorial to set up apps to sd. Please go to blah blah blah why is it doing this
what do I have to do to get this app running gain I already haves apps going to sd.
The top part of Cyanogen's stable thread says not to use any other method of apps to sd because his has a script built in.
So. Stop fiddling with whatever apps2sd app you have.
go to terminal and type:
Code:
su
ls /dev/block/mm*
Tell me what you see. (And please take a moment to make your posts a little more readable, I'm having a hard time deciphering what you're asking/saying. )
what Am I suppost to do? I dont want to do it without knowing
open the application 'terminal emulator' -- this is like the dos 'command prompt' in windows or a term window in Linux
type 'su' and press enter -- this Switches User to root, or the administrator of the machine (your phone)
type 'ls /dev/block/mm*' -- 'ls' is 'list' directories. /dev is where all the devices are, block is hard-drive like devices (your internal memory and the sd card) and mm* is every block device that starts with 'mm....' which should be mmcblk0 (the sdcard), mmcblk0p1 (the fat32 partition) and mmcblk0p2 (the ext partition)
If the last exists, the cyanogen automatic apps2sd will have already moved all your applications there. If only one exists, it means you either formatted the whole SD card to ext2 for apps2sd (and left nothing fat32) or formatted none of it and your apps are already on your phone.
if your 'ls /dev/block/mm*' says that you have a mmcblk0p2, than run "ls /system/sd/app/*" and you should see a bunch of files ending in .apk. If so, then you have to undo apps2sd to get the Hello IM app back to internal memory.
Report back on the outputs of the above and further instructions will be provided.
Ok Iv done all that so how do I undo them and if so how will I get them back?
Tell me what all that said back when you typed it in. THEN I can tell you what to do.
I see all my apk files now what? I want to move that 1 app onto the phone memory and every other apk on the sd. Im ready for the next step.
I see a bunch of files ending in .apk now what?
Hmm. I just looked up 'Hello IM!' and see that it's a paid app.
So, we can move just paid apps to the internal memory and leave the free ones on the sd card.
if yes run the following in terminal emulator:
su
rm /data/app-private
mkdir /data/app-private
cp /system/sd/app-private/* /data/app-private
Copying the apps may not work and you may have to uninstall/reinstall, but when you install them they'll be on the internal memory.
Oh, but cyanogenmod will put them back on the sd card when you reboot, so if having the app on the internal memory does fix the problem, you'll have to edit the a2sd script.
The problem isn't that your apps are on the sdcard. The app itself doesn't know. Your partions may be out of whack or the app itself may just need to be reinstalled.
When your apps are on the sdcard they are on a different partition then what every app uses your sdcard for. Not sure if I wrote that where you can comprehend it or not...
wat do u mean out of wack
PsychoI3oy said:
If you want to get rid of apps2sd altogether I can tell you how to move everything back.
Click to expand...
Click to collapse
I've done some searching, and haven't found any way to do this that has worked for me. Could you please pass some of this info along?
Thanks.
HowTo - un-apps2sd (on CyanogenMod)
Ok, this is based on the assumption that you are running a Cyanogen rom. I'm sure it could be adopted for use on another one, but Cyanogen 4.0.x is what I'm running. You'll probably have to re-install any paid apps (app-private) but normal apps should run fine after this.
Instructions for use with adb:
Code:
adb remount
adb push a2sd.txt /system/bin/a2sd
adb shell
# rm /data/app
# mkdir /data/app
# cp /system/sd/app/* /data/app/
# rm /data/app-private
# mkdir /data/app-private
# cp -r /system/sd/app-private/* /data/app-private
# reboot
for terminal emulator, assuming the new a2sd.txt is on your sdcard:
Code:
mount -o rw,remount /system
mount -o rw,remount /data
cp /sdcard/a2sd.txt /system/bin/a2sd
and then continue the adb instructions from after 'adb shell'
after reboot you can confirm that it worked by running:
ls -l /system
from terminal emulator (no need to remount/su) and you should see 'app' and 'app-private' as directories (and not app -> /system/sd/app).
If you're running some other a2sd method, you'll have to edit/remove the script that's doing the linking, then delete the symlinks and copy back (should be similar to above).
The modified a2sd.txt attached just takes away the apps-to-sd part. Dalvik-cache is still run from /system/sd/ as are whatever other magical juicy bits he's got in there.
If you upgrade to another Cyanogen rom, the new version of a2sd will get pushed and everything will be moved back. The only way to get rid of it permanently would be to delete the ext2/3/4 partition on your sd card.
If you decide you want apps2sd again and don't want to upgrade, just put the a2sd.orig.txt back as /system/bin/a2sd and reboot, it'll automagically move everything back to the /system/sd/app on your ext partition.
I just did the un-apps2sd then put the original back and everything's fine (and was fine with un-apps2sd).
That should cover most things....
Thank you so much for the step by step instructions.
One minor correction, maybe, shouldn't there be a '/' at the end of the second to last line?
Also, for me I didn't copy over the modified a2sd.txt file. After I copied everything to internal I shutdown the phone and deleted the ext partition. All seems to be working well!
Thanks again.
daveerickson said:
Thank you so much for the step by step instructions.
One minor correction, maybe, shouldn't there be a '/' at the end of the second to last line?
Also, for me I didn't copy over the modified a2sd.txt file. After I copied everything to internal I shutdown the phone and deleted the ext partition. All seems to be working well!
Thanks again.
Click to expand...
Click to collapse
Trailing slashes are optional in most shells, including this one.
Glad it worked for you.
these doesn't seem to be working for 4.2.1, no a2sd file exists in /system/bin, maybe he moved it somewhere else, i'm trying to find it but i'm not being lucky.
any help?
No, he broke up the bits that were in a2sd and spread them across several files in /system/etc/init.d/
http://wiki.cyanogenmod.com/index.php/Removing_Apps2SD has the instructions now.

Apps2sd - read-only file sytem

Hey guys,
I'm new to rooting my G1 but definitally not new to modding my electronics. I'm trying to set up my apps2sd but i'm having a little trouble. Trust me, I searched, I'm not a forum noob. My sdcard is already formatted in FAT32. I check my sdcard in settings on my phone and it shows almost 8gigs of available space and another area that says "sd card secondary" - unavailable.
I've looked at some tutorials and the first steps usually include typing this into Terminal Emulator.
su
mkdir /system/sd/app
I do this and this is what I get.
mkdir failed for /system/sd/app, read-only file system.
What seems to be the issue? Can I just mount the SDcard on my laptop and get on it and make a folder "system", then inside that folder "sd", and in that one "app"? Is this the manual way of doing it? Any help is greatly appreciated. I know you guys probably deal with stupid questions all the time. Thanks in advance.
the only way ur partition can be mounted to any coputer is in linux. other than that osx or windows r to dumb to see it. repartition your whole card or just look for the mount remount commands in the q&a forum
from what i understand he doesn't have any partitions. you need to partition your sdcard to fat32, ext2/3/4, linux-swap(optional). there are many guides on this site for doing that

[Q] Help can't get ntfs to mount!

Hi there ok so I have my Samsung S5 active I rooted it with towelroot.
So now I am trying to get my ntfs formatted 64Gb sd-card to mount on my phone.
So I write 0 to the full sd-card to allow me to format my sd-card to ntfs on windows without error.
I install 'Paragon NTFS & HFS+ / Tools' on my phone to mount the sd-card it did not work.
So I let and am trying to mount my sd-card using the Terminal, so I use adb shell to access my phone Terminal.
so from what I have found out is that /dev/block/mmcblk1p1 should be my sd-card device, like /dev/sdb1 in linux,
and I am trying to mount it to /storage/extSdCard so I am running the command,
Code:
su
ntfs-3g /dev/block/mmcblk1p1 /storage/extSdCard
and I am getting this error
ntfs-3g-mount: mount failed: Permission denied
I let as far as remounting everything in /proc/mounts to read/write mode and I still got the error and even doing
Code:
chmod 777 /dev/block/mmcblk1p1
chmod 777 /storage
chmod 777 /storage/extSdCard
and I still am get the error
ntfs-3g-mount: mount failed: Permission denied
anyone know what I am doing wrong I ran all the above command as root, and no luck anyone help please.
ps. I really don't what to use exfat every time I mount it in linux it end up getting corrupted and I use linux a lot, and I don't what to use fat32 just in case I ever end up make a file that larger 4G on my phone
Thank You!
I have no issues with the format tool from the phone under storage settings, I too use linux on my main PC and I can browse the card fine just by plugging my phone in with the ad card in it. You really shouldn't be trying to use ntfs with linux anyway, and in case you didnt know android is linux based, so that may be part of your problem. If your phone can read the card correctly then it sounds like an issue with your computer so i would look there possibly.
Rakuu said:
I have no issues with the format tool from the phone under storage settings, I too use linux on my main PC and I can browse the card fine just by plugging my phone in with the ad card in it. You really shouldn't be trying to use ntfs with linux anyway, and in case you didnt know android is linux based, so that may be part of your problem. If your phone can read the card correctly then it sounds like an issue with your computer so i would look there possibly.
Click to expand...
Click to collapse
yea I know I should not use ntfs with linux, and I know android is linux based.
I think it the fact that I am using 64bit linux which is causing the problem with me being able to use exfat with linux
so I thought about trying to get ntfs to work on my phone because I have a ntfs storage partition on my main computer so I reboot into my windows partition and I never have a problem with that.
but anyway I just gave up with trying to use ntfs on my sd-card and format it to ext2 and got it working first try on my phone, now I just hope that next time I'm in windows and I need to move files to my sd-card it will not give me to many problem I know there are way to make it work.
But thank for the help anyway.

Categories

Resources