Big problem:( read only file system error... - Samsung Galaxy Player 4.0, 5.0

My rooted yp-g1 US running cm7 wouldn't let me download anything from the internet. Didn't think anything of it but when I tried to delete something from /sdcard or anywhere else it said it couldn't be deleted. So apparently I have a read only filesystem or something. Fix???
Sent from my YP-G1 using XDA

You could try this on the affected filesystems (as root, of course) :
mount -o remount,rw /sdcard
Sent from my YP-G70

Says it can't find /sdcard in /proc/mounts
Sent from my YP-G1 using XDA

Then you'll have to use /mnt/sdcard
Sent from my YP-G70

Related

[Q] NTFS-3G on Razr

Has anybody tried to run ntfs on Razr? Will it be possible?
Sent from my XT910 using XDA App
Do you mean external storage with NTFS? On my tablet I use an app for that.
I can release a kernel module for mounting NTFS partition on RAZR... I'll watch at it when I'll be back home (3hrs).
is this about getting a thumb drive to b mounted to the razr? If so can u make it foe he Verizon droid razr too....
Sent from my DROID RAZR using xda premium
Compiled.
http://www.eternityproject.eu/downloads/mtspyder/ntfsmodule.tar.gz
Uncompress and insmod
Wouldn't we need to modify vold to be able to mount NTFS?
(ofc. you could mount it manually but...)
@pajn
Obviously. This was intended for manual mount.
kholk said:
Compiled.
http://www.eternityproject.eu/downloads/mtspyder/ntfsmodule.tar.gz
Uncompress and insmod
Click to expand...
Click to collapse
I was just trying to mount an external ntfs drive tonight and ran across your post. Could you please explain how to do the insmod? Thanks for the help
su
insmod /path/to/kernelmodule
@kholk
Okey. Hopefully someone does that soon so we can mount any filesystem that the kernel supports with vold
Thx.........
Hi
What am I doing wrong
[email protected]_spyder:/# insmod /mnt/sdcard/ntfsmodule
insmod: error inserting '/mnt/sdcard/ntfsmodule': -1 Invalid module format
Thanks
Sent from my XT910 using XDA App
When you extract it, you should get "ntfs.ko".
I fill quite stupid. inmod command works for me, but I don't know how to mount external drive. I try something like mount -t ntfs /dev/block/sda /mnt/usbdisk_1.1 , it finished without exception, but usbdisk_1.1 was empty.
Any suggestions for noob?
scorbut said:
I fill quite stupid. inmod command works for me, but I don't know how to mount external drive. I try something like mount -t ntfs /dev/block/sda /mnt/usbdisk_1.1 , it finished without exception, but usbdisk_1.1 was empty.
Any suggestions for noob?
Click to expand...
Click to collapse
Nobody?
Sent from my XT910 using XDA App
Thanks kholk, now it's works. I can read from my external HDD.
It is possible also to write to ntfs partition? Cause it doesn't work for me.
Sent from my XT910 using XDA App
Will this work for the vetizon version too?
Sent from my DROID RAZR using xda premium
I found that for Samsung galaxy s2 that copy ntfs-3g to system/bin. I suppose that we cannot do that while we have locked bootloader.
We have on our Razr /bin/ntfs-3g. It is possible to use this to have possibility to write to ntfs partition? If I try to run it, I get errors with missing fuse. If we have fuse for our kernel we could maybe use ntfs-3g.
Can anyone help?
Sent from my XT910 using XDA App
mount -o rw -t ntfs-3g (or ntfs) /dev/block/yourdrive /mnt/whereveryouwant
kholk said:
mount -o rw -t ntfs-3g (or ntfs) /dev/block/yourdrive /mnt/whereveryouwant
Click to expand...
Click to collapse
I must use umask=000 to see something. I cannot use -t ntfs-3g it throws me Device not found. I try to use
mount -o rw,umask=000 -t ntfs /dev/block/sda1 /mnt/usbdisk_1.1, but still no writable access.
When I try
[email protected]_spyder:/# /bin/ntfs-3g
It returns
Mount is denied because setuid and setgid root ntfs-3g is insecure with the
external FUSE library. Either remove the setuid/setgid bit from the binary
or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
Please see more information at http://ntfs-3g.org/support.html#unprivileged
From what I read, ntfs-3g don't need to be compiled to specific kernel version so we can use from sgs2 or maybe build one. But fuse is kernel specific.
Any idea?
Sent from my XT910 using XDA App
scorbut said:
I must use umask=000 to see something. I cannot use -t ntfs-3g it throws me Device not found. I try to use
mount -o rw,umask=000 -t ntfs /dev/block/sda1 /mnt/usbdisk_1.1, but still no writable access.
When I try
[email protected]_spyder:/# /bin/ntfs-3g
It returns
Mount is denied because setuid and setgid root ntfs-3g is insecure with the
external FUSE library. Either remove the setuid/setgid bit from the binary
or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
Please see more information at http://ntfs-3g.org/support.html#unprivileged
From what I read, ntfs-3g don't need to be compiled to specific kernel version so we can use from sgs2 or maybe build one. But fuse is kernel specific.
...
Click to expand...
Click to collapse
Nobody that could help?
Sent from my XT910 using XDA App

Mount sd_ext from adb or terminal emulator

Ok long story but I'm trying to figure out how to mount the external sdcard from a shell script or terminal emulator. Nothing I've tried or can find works. One example that's not working (or any variations of this) :
mount -o remount,rw /dev/block/mmcblk1p2 /mnt/sdcard/ext_sd
Sent from my ADR6425LVW using Tapatalk 2
When you plug in just hit "use as external storage" or somehing like that when the window comes up in the phone.
Yeah I know how to mount ext_sd via USB I'm working on a script and need to know the command to use from a script, I'm not trying to mount the card on my computer.
Sorry I wasn't more specific.
Sent from my ADR6425LVW using Tapatalk 2
rsage said:
Yeah I know how to mount ext_sd via USB I'm working on a script and need to know the command to use from a script, I'm not trying to mount the card on my computer.
Sorry I wasn't more specific.
Sent from my ADR6425LVW using Tapatalk 2
Click to expand...
Click to collapse
That's what you wrote.
So, you want to be able to push or retrieve a file from external SD through ADB?
No not really, though I guess that would be similar. I'm working on a script and in the script I need to mount the external sdcard if it's not already mounted.
Sent from my ADR6425LVW using Tapatalk 2

CM10 - external_sd mount location

I jumped from stock to CM10 and have found an issue I need resolved, but am not sure how to go about it.
On stock, I didn't have
/sdcard/ is the path for the internal memory
/sdcard/external_sd/ is the path for the actual add-in slot you buy yourself.
This is great because the file explorer apps don't need special access to get to, and things are at least somewhat logical on how they're laid out.
On CM10:
/storage/sdcard0/ is internal memory
/storage/sdcard1/ is external memory
There are symbolic links of /sdcard and /external_sd but to access the latter, I need to tell apps like ES file explorer to change their base path rather than just having a nested mount structure.
I've tried using terminal emulator to go in and create a symbolic link, but I get 'operation not permitted' messages. I've also tried editing /etc/vold.fstab to have it change the mount from /storage/sdcard1 to /storage/sdcard0/external_sd, but the filesystem is read-only and 'mount -o remount,rw /' doesn't have an effect even though it doesn't complain.
How can I change the mount structure back to how I want it and how it's easier to access/navigate it in my apps?
Run into some situation, hopefully someone can shed some light
Did you mount this files as r/w?
Sent from my SAMSUNG-SGH-I717 using xda premium
johnrippa said:
Did you mount this files as r/w?
Sent from my SAMSUNG-SGH-I717 using xda premium
Click to expand...
Click to collapse
In my original post I mention trying to get it remounted as r/w, the command doesn't complain but the filesystem stays read-only.
Try busybox mount -o remount,rw /system
If that fails, use an app to do it.
ChronoReverse said:
Try busybox mount -o remount,rw /system
If that fails, use an app to do it.
Click to expand...
Click to collapse
Any particular apps to recommend? I had tried issuing the remount command on / and not /system. I will give that another try.
ChronoReverse said:
Try busybox mount -o remount,rw /system
If that fails, use an app to do it.
Click to expand...
Click to collapse
I was able to modify the mount point to be /storage/sdcard0/external_sd/ for the external SD slot, but when I rebooted CM it got stuck and would buzz every 10 seconds or so and stayed that way indefinitely. Not sure why this breaks CM so bad but there you have it. Oh well.
Might be a better idea to just add links so you get your old /sdcard/external_sd
I'm not currently on a CM10 ROM or else I'd test.
ChronoReverse said:
Might be a better idea to just add links so you get your old /sdcard/external_sd
I'm not currently on a CM10 ROM or else I'd test.
Click to expand...
Click to collapse
Symbolic links don't work on a FAT based filesystem (which the SD card mounts are), unfortunately.

Few points to make the mount script better for your device!

1. Partition the SD with CWM (easiest method) and you can be sure that the second partition disk type is of ext4 (latest CWM).
2. Rename other scripts in init.d, so that it gets executed only after the mount script has run (prioritize mount script).
3. Ext4 has many advantages over its earlier versions. So update the mount script's disk mount type to be ext4 (mount -t ext4).
4. If you are using low performance SD please update the script to mount the disk without mount options such as noatime.
5. Never add ext4 tweak if you are using mount scripts, it causes data corruption.
6. If you don't want the script to move certain folders in data partition then add the folder name to the moving data to SD ext.
Using a mount script is very easy, these points make it better.
BTW, I suggest you to try INT2EXT for EXT4 (with the above updations) the next time you reset your device.
Sent from my GT-I5500 using xda premium
Ok finally i observed that u disabled noatime, norealtime and zipalign code from the original int2ext4+ script..but i still dont understand what does that code do
Code:
-o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=writeback,noauto_da_alloc
BTW thanks nanba for all the help dude..
swat4samp said:
Ok finally i observed that u disabled noatime, norealtime and zipalign code from the original int2ext4+ script..but i still dont understand what does that code do
Code:
-o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=writeback,noauto_da_alloc
BTW thanks nanba for all the help dude..
Click to expand...
Click to collapse
Those are the options available while mounting a disk. You can Google for each one, read the Linux pages.
Sent from my GT-I5500 using xda premium
SuganAnbalagan said:
Those are the options available while mounting a disk. You can Google for each one, read the Linux pages.
Sent from my GT-I5500 using xda premium
Click to expand...
Click to collapse
I prefer reverse mount than symlinks and for speed I leave dalvik cache on data partition. You can try that too.
Sent from my GT-I5500 using xda premium
That's a lot of linux related technical stuff..well its too hard to understand..anyways "Ignorance is Bliss"

Operation not permitted symlink hardlink

Hello
I would like to chroot arch linux in my phone, but when I extract (tar xzvf ./*.tar.gz) the .tar.gz file (it is the multi-platform image) I get in every attempt to create symlink and hardlink I get an error that says "Operation not permitted". Any ideas how to fix this?
Thanks a lot in advance
Sent from my GT-S7580 using XDA Free mobile app
vfat partitions don't support symlinks or hardlinks, format your sdcard to ext4
nagalun said:
vfat partitions don't support symlinks or hardlinks, format your sdcard to ext4
Click to expand...
Click to collapse
Im trying it atm! Thanks SO MUCH
Sent from my GT-S7580L using XDA Free mobile app
nagalun said:
vfat partitions don't support symlinks or hardlinks, format your sdcard to ext4
Click to expand...
Click to collapse
It worked but now how can i mount a .img file i want? I do losetup /dev/loop256 "$img" and i get "value too large for defined data type". Any idea? Thanks a lot btw
Sent from my GT-S7580L using XDA Free mobile app
SlimShady08 said:
It worked but now how can i mount a .img file i want? I do losetup /dev/loop256 "$img" and i get "value too large for defined data type". Any idea? Thanks a lot btw
Sent from my GT-S7580L using XDA Free mobile app
Click to expand...
Click to collapse
I always mounted images with (busybox mount $img /path) , but make sure your kernel supports loop devices and the img is formatted to ext4 (mke2fs -T ext4 $img)
nagalun said:
I always mounted images with (busybox mount $img /path) , but make sure your kernel supports loop devices and the img is formatted to ext4 (mke2fs -T ext4 $img)
Click to expand...
Click to collapse
ext4? Shouldnt it be ext2? Anyway I will try what you said. Thanks a lot!!!
Sent from my GT-S7580L using XDA Free mobile app

Categories

Resources