Can't use ringtones that stored on /sdcard/ringtones - G1 Android Development

Suddenly I couldn't find any of my ringtones that stored on the /sdcard/ringtones directory from Ringtones Settings.
The /sdcard/ringtones is still avaliable on the sdcard and If I tried to play them throw the mp3 player they works fine.
I found out that the sdcard is mounted as Read-Only and not Read/Write as before. Even if I plug it in to the PC I can't change any of the data on the sdcard only read it.
The latest change that I made few days ago was to store all cache files on the sdcard. I am not sure that this is the reason but it could be.
Does anyone here have any idea why it happened?

install Rings Extended from the market. Open your soundsettings with the program. It will prompt to open with rings extended or standard.
Don't know about the read-only stuff, but you could take a look at the ownership and the rights you have as a user/admin... if all fails.. format?

thanks for the advice, I will try it...
does anyone have more ideas regarding the read only issue?

yes could this be your problem too http://forum.xda-developers.com/showthread.php?t=473256

unfortunately its not the same issue, I have root access to the phone and when I run the mount command this is the output I have for /sdcard
/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)
I can't use the camera and the ringtones because of that.
I do able to remount the /sdcard as rw but any time I reboot the phone it become ro.
can you please copy for me the output that you have from mount command on /sdcard/ and the permissions you have on that directory from ls -l command?

zrubi said:
unfortunately its not the same issue, I have root access to the phone and when I run the mount command this is the output I have for /sdcard
/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)
I can't use the camera and the ringtones because of that.
I do able to remount the /sdcard as rw but any time I reboot the phone it become ro.
can you please copy for me the output that you have from mount command on /sdcard/ and the permissions you have on that directory from ls -l command?
Click to expand...
Click to collapse
I suspect the fat partition on your sdcard got corrupted. Try a reformat

you were right thanks
I did chkdisk from windows and it did fix the fs.
now its working just fine...

Related

system as read/write

need a little help here please...
I want for my /system to be mounted as read/write automaticly upon startup of the phone using this command "mount -o,remount rw /dev/block/mtdblock3 /system"
How can i make this command to be executed as ROOT when my phone starts up.
THanks
vtecpower said:
need a little help here please...
I want for my /system to be mounted as read/write automaticly upon startup of the phone using this command "mount -o,remount rw /dev/block/mtdblock3 /system"
How can i make this command to be executed as ROOT when my phone starts up.
THanks
Click to expand...
Click to collapse
Why do you need this?? Just download droidsans andwhen you need read write just use that.
I need it bc im trying to move my apps to my sd card.....if i have the /system in read only mode then the phone crashed when i try to install a new app but it works fine when my /system is read and write
I doubt you need to mount /system rw. Do ls -l in /system and make sure sd has the same owner/permissions as the other dirs and it should work.
vtecpower said:
I need it bc im trying to move my apps to my sd card.....if i have the /system in read only mode then the phone crashed when i try to install a new app but it works fine when my /system is read and write
Click to expand...
Click to collapse
i have followed the instructions in the post titled apps on sdcard and it works fine without mounting the system RW. look at that post and follow those directions.
See: http://forum.xda-developers.com/showpost.php?p=3386761&postcount=2
Just add the line to The File insted of the Path Part.
The is called after system is mounted so it should work fine

Where can I save files on G1?

So my sd card just fried, more info on that in another thread. And I'm looking for somewhere to save .txt files in the G1's memory.
But it seems most of the folders are either A) read-only so I can't make a directory or B) I'm wondering if some directories might auto-wipe my files on a reboot or something (or worse, putting random files in some system directory breaks something).
Does anyone know a safe location on the G1's main memory to make a directory for a few .txt files?
I should mention that most (all?) of the directories on the internal memory are read-only etc *even with root* and superuser access. (Can't even mkdir from terminal.)
Anyone know some obscure folder to use, or a way to get around this?
Either download DroidSans from the market to mount the system as read/write or use this command.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
Then you can create a tmp folder and add your txt files.

(Q) Terminal Emulator code

So I have been using Terminal emulator to load new boot loaders on my phone and I use this code:
Code:
su
mount -o remount,rw /system
cp /file location/bootanimation.zip /system/media
My question for you guys is, what does the second line mean? I mean sure I can memorize the code and use it but I'm trying to figure out how to read it and it doesn't really make sense to me.
Code:
mount -o remount,rw /system
We use the mount command, with the option remount (meaning unmount and then mount again), and the desired access rights ( rw = read and write) on the folder /system.
This mean we have a folder /system which is probably mounted as READ ONLY.
To change access rights you have to unmount first and then mount with the new access rights.
We want to change the access rights of system and we don't want to change its mount point. So we use mount command with the option remount and our desired rights.
Does this clarify it for you?
Dark3n said:
Code:
mount -o remount,rw /system
We use the mount command, with the option remount (meaning unmount and then mount again), and the desired access rights ( rw = read and write) on the folder /system.
This mean we have a folder /system which is probably mounted as READ ONLY.
To change access rights you have to unmount first and then mount with the new access rights.
We want to change the access rights of system and we don't want to change its mount point. So we use mount command with the option remount and our desired rights.
Does this clarify it for you?
Click to expand...
Click to collapse
Yes this helped a lot! so the -o was the "option" part?
yes -(o)ption and then the option you want
Dark3n said:
yes -(o)ption and then the option you want
Click to expand...
Click to collapse
Thank you so much!
hmm, i logged in as su but did not perform the remout code, ive found a tool to calibrate my xperia x10 mini pro accelerometer but when i executed it and did the required operation, it said the configuration was complete and yet the accelerometer was left unchanged, could this mean that because i did not use the mount remount command before using the tool that is why the program did no changes at all?

Question Trying to backup phone with adb, where is sdcard?

Right now I am backing up my files with adb and I have tried the following commands
adb pull /sdcard D:\[backupfolder]
adb pull /sdcard
But they just copy the internal storage folders, while what I want is to copy the stuff in the sdcard. I have tried
/storage/sdcard0
/storage/sdcard
/storage/0
/disk (it is how the folder is called in my phone)
but none of them exist.
Can anyone who has backed up their sd card on a Poco X3 tell me the actual storage path to use in adb? Thanks!
You can't.
Cuz SD card is always some strange digit number.
Try to enter ADB shell and then use the ls command to list all folders.
It should be in Mount or mnt
/sdcard is usually a chain of links that is not followed by ADB.
You need to:
Code:
$ stat /sdcard
And it will tell you where it points to. Then you stat that and keep on going until you stat something that is a real directory.

Mimic fstab entry by using a mount command that runs in an init.d script

Hey guys. I have an android tablet (running Android 8.1) that I flashed with a rooted system partition. The tablet has two main storage partitions: user and sdcard. sdcard is 20gb of storage that is immediately accessible via USB if plugged into the computer.
The problem I'm having is, after flashing with the new system partition, the 20gb storage is no longer mounted. I'm able to mount it using the following command:
Code:
$ mkdir /mnt/media_rw/sdcard
$ chmod 777 /mnt/media_rw/sdcard
$ mount -o rw /dev/block/blck27 /mnt/media_rw/sdcard
The problem is, after mounting it, I can't open media files, and I can't access it via USB either. I looked in the /vendor/fstab file to see how this partition is being mounted, which looks like this:
Code:
/dev/block/mmcblk0/mmcblk0p27 auto vfat defaults voldmanaged=sdcard1:auto,noemulatedsd
I'm not sure how to create a mount command that mimics the functionality of this. Any help would be greatly appreciated.

Categories

Resources