Related
I formatted SDCard in ext2. But the phone gives the message "No SDCard or not formatted."
In Android Terminal Emulator I run commands:
su
umount /mnt/sdcard
mount -t ext2 /dev/block/mmcblk1p1 /mnt/sdcard
but nothing happens.
When I created in /mnt folder a new folder sdcard1 and run mount -t ext2 /dev/block/mmcblk1p1 /mnt/sdcard1, my card is successfully mounted to /mnt/sdcard1
1) Why it is not mounted to /mnt/sdcard? How to do it? How I can mount ext2 instead of FAT32?
2) How to make mount SDCard to /mnt/sdcard at boot?
Hi,
I decided to my hole external card as ext4 format, without journal.
I see that the phone mounts it through fuse, and not directly like internal ext4 partitions.
Does anybody know why? And eventually how to mount it more cleanly...
Tks.
I think it depends on your kernel and modules available...
Sent from my GT-I9300 using Tapatalk 4
/proc/filesystems shows that ext4 is supported. As in fstab sdcard mount mode is set to auto, it should choose fuse only if necessary.
And by definition ext4 is present in all jelly bean kernels as it's default internal file system format.
Self answer...
http://source.android.com/devices/tech/storage/
It seems that android uses fuse for external (= secondary) storage regardless the filesystem. If I understood correctly.
I tried to change auto to ext4 in fstab but no effect, during boot it was restored to auto.
Edit: manually unmount /storage/sdcard1 and /mnt/fuse/sdcard1 then mounting vold block with ext4 argument works flawlessly.
Should write a little script in init.d to do that...
Better, to avoid manipulation as I flash nearly every day, script manager with:
#!/system/bin/sh
su
umount /storage/sdcard1
umount /mnt/fuse/sdcard1
mount -rw -t ext4 -o noatime,nosuid,nodev /dev/block/vold/179:17 /storage/sdcard1
I do all my remounts via script manager so it survives rom upgrades but sometimes also, init.d happens to soon and mounting doesn't work well. I remount my sd card with a 90 second delay using script manager
Before you ask, im not mounting it to change file system. Im changing permissions
One thing I'll point out though. Although will survive upgrade of rom usually, but if you change to different rom, vold may change from 179:17... 179 always same. Not :17 though
Sent from my GT-I9300 using Tapatalk 4
---------- Post added at 07:04 PM ---------- Previous post was at 06:58 PM ----------
Re the vold changing issue, I get around it like this....
#!/system/bin/sh
VOLD="$(mount | grep -E -o -m 1 ".{0,0}179:.{0,2}")"
su
umount /storage/sdcard1
umount /mnt/fuse/sdcard1
mount -rw -t ext4 -o noatime,nosuid,nodev /dev/block/vold/$VOLD /storage/sdcard1
Sent from my GT-I9300 using Tapatalk 4
Guys, how do you get around the problem that although ext4 external sdcard mounts fine and is usable through file managers, some programs just won't see it at all because it is no longer recognised as an external filesystem?
Have a try with programs like DiskUsage, Sygic GPS, Beyondpod Podcast manager and many more - they become unusable if the cars is not fat32 due to this reason, and it is true for either if it is mounter through fuse, or directly as ext4.
Hallo, I want to know how I can switch the SD cards from external to internal in CM11?
I didn't find vold.fstab.
Thanks
SWTR said:
Hallo, I want to know how I can switch the SD cards from external to internal in CM11?
I didn't find vold.fstab.
Thanks
Click to expand...
Click to collapse
Since 10.2 I've done it by uncommenting the #persist in the Vold section toward the end of the build.prop but it isn't working for me in cm11. At least on my Moto Bionic that works. I still can't find a way but if you find out how I'd love to know.
Sent from my Bionic
bump also looking for solution
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
It ain't working
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Installed the Script manager,wrote the scripts but while executing it says no unmount command found....
vivin007 said:
Installed the Script manager,wrote the scripts but while executing it says no unmount command found....
Click to expand...
Click to collapse
What phone?
Samsung Galaxy Tab P1000
adx3660 said:
What phone?
Click to expand...
Click to collapse
P1000 Installed with Cm11 terecheng 25-12-2013.....
External to Internal sdcard app also is a no go.....its only a partial success
vivin007 said:
P1000 Installed with Cm11 terecheng 25-12-2013.....
External to Internal sdcard app also is a no go.....its only a partial success
Click to expand...
Click to collapse
I am sorry @vivin007 I don't have that device.. but I suggest you to double check the code that u typed in and try to ask in your device section the code and how to mount and unmount sd.. I am really2 sorry..
Up!
Sorry, but also looking for a better solution than linking!
I am currently trying this http://forum.xda-developers.com/showpost.php?p=48876834&postcount=472
so far so good but havent tested it much, i think games run slower..
No Problem dude
adx3660 said:
I am sorry @vivin007 I don't have that device.. but I suggest you to double check the code that u typed in and try to ask in your device section the code and how to mount and unmount sd.. I am really2 sorry..
Click to expand...
Click to collapse
Ha ha ha ....No Problem dude...You did a great Job helping me!
BTW Wish you a Happy New Year....
Will find a Solution....
vivin007 said:
Ha ha ha ....No Problem dude...You did a great Job helping me!
BTW Wish you a Happy New Year....
Will find a Solution....
Click to expand...
Click to collapse
Happy New Year too.. don't forget to share if u find a solution,,
Found it for P1/L/N Tab
adx3660 said:
Happy New Year too.. don't forget to share if u find a solution,,
Click to expand...
Click to collapse
Got Sd switched @adx3660 dude for P1/L/N Tab after Requesting such a feature with the Terenceng dev in his CM11 Roms, he was kind enough to build it for me.
He has asked me to test it, I am going to do it Now.
Folder mount
Gesendet von meinem Xperia SP
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Thanks, this worked on my galaxy ace plus! But having unmount before mount threw some error like device is busy or something, works if I just have the mount command.
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Cant execute those commands with terminal?
TecknoFreak said:
Cant execute those commands with terminal?
Click to expand...
Click to collapse
Why not give it a test.. :good:
p/s: I am not responsible for anything happen while / when you using this script..
Guys Im a newbie here but Ive been looking for a way to swap my Galaxy Tab 2 7'0's (running CM11 ) external sd with the internal memory. ive tried several scripts and guides but I just cant seem to find a solution. Is there a memory swap mod made for it or can anyone help me with that.
Hi can u help me? how to swap memory with 2.5 build.. i have some trouble with that.. (newbie here )
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.
This is the CODE script to make Internal memory changed to SD Card.
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.
This another solution for swap memory.
Please Check this page
http://goo.gl/EwKH1x
Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton :good:
Credit:
@nunu_Nugraha
Should it work on another device?
Sent from my LG-P990
I hope so...
ivaneris said:
Should it work on another device?
Sent from my LG-P990
Click to expand...
Click to collapse
I think, it should be work to with another device.
but I'm not sure. Backup before you start.
Do with your own risk.
Thnx..it works with some modification ....use it now..:thumbup:
Sent from my LG-P990
ivaneris said:
Thnx..it works with some modification ....use it now..:thumbup:
Sent from my LG-P990
Click to expand...
Click to collapse
Did you change with another permission?
anyway, glad to hear it worked on your device to.
Elixia said:
Did you change with another permission?
anyway, glad to hear it worked on your device to.
Click to expand...
Click to collapse
No just edit the mount point...
Sent from my LG-P990
Request
ivaneris said:
No just edit the mount point...
Sent from my LG-P990
Click to expand...
Click to collapse
If you don't mine.
can you please, show me and other friends.
The code work on your device?
Elixia said:
If you don't mine.
can you please, show me and other friends.
The code work on your device?
Click to expand...
Click to collapse
Sure..here it is
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/secure/asec 1>>$LOG 2>>$LOG
Well..if there any other way to swap please tell me my friend..as this work said not as 4.4 standard actually
We just got cm11 almost fully working recently on lg p990...
Sent from my LG-P990
ivaneris said:
Sure..here it is
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/secure/asec 1>>$LOG 2>>$LOG
Well..if there any other way to swap please tell me my friend..as this work said not as 4.4 standard actually
We just got cm11 almost fully working recently on lg p990...
Sent from my LG-P990
Click to expand...
Click to collapse
Of course mate. I will let you know if i find another way to swap metode.
since my little brother have similar device like you have.
so it's easy to test new swap metode if any.
and thanks for share your swap code. Hope it help anybody in xda.
Tips
Dritza said:
i tried but no effect on Xperia Sola
Click to expand...
Click to collapse
Sorry mate, did you follow it with correct permission?
If it yes and keeped not work on your device. I sugest you to try this.
Change the red and purple text code with "memory read on your own device".
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/secure/asec 1>>$LOG 2>>$LOG
How to get your own code number?
Just, run terminals app
tap this text
mount | grep sdcard0
mount | grep sdcard1
Description:
179:97 = Number code for sdcard0 ,and
179:14 = Number code for sdcard1
Hope that work.
Can this work with Xperia P or just with the phones who have SD card?
dinoCRO said:
Can this work with Xperia P or just with the phones who have SD card?
Click to expand...
Click to collapse
It's complicated to apply this metode to device have no sd card.
But I didn't say it's Imposible.
If I find about it, I will share it with you.
for now, you have to be patient. Advantage of the existing first.
Sori typo
need your assist
Elixia said:
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.
This is the CODE script to make Internal memory changed to SD Card.
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.
Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton :good:
Credit:
@nunu_Nugraha
Click to expand...
Click to collapse
hi fren, your script compitable for samsung or not because i have try but its not working. i really2 need your help
qaliff said:
hi fren, your script compitable for samsung or not because i have try but its not working. i really2 need your help
Click to expand...
Click to collapse
Sorry mate, this swap script only for xperia go and similar.
if you running on samsung. than you may try this http://forum.xda-developers.com/showthread.php?t=2584862
hope it help and solve your problem.
Elixia said:
Sorry mate, did you follow it with correct permission?
If it yes and keeped not work on your device. I sugest you to try this.
Change the red and purple text code with "memory read on your own device".
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/secure/asec 1>>$LOG 2>>$LOG
How to get your own code number?
Just, run terminals app
tap this text
mount | grep sdcard0
mount | grep sdcard1
Description:
179:97 = Number code for sdcard0 ,and
179:14 = Number code for sdcard1
Hope that work.
Click to expand...
Click to collapse
Didn't work
Elixia said:
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.
This is the CODE script to make Internal memory changed to SD Card.
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.
Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton :good:
Credit:
@nunu_Nugraha
Click to expand...
Click to collapse
on xperia sola not work
Doesn't work..
Hi dude,
Followed everything to the dot, but it doesn't work.. I'm using the CM11 rom by RodgerRules on my Xperia Go.. Please help
Doesn't work on my xperia go running CM11..
Change with this
Hukanawa said:
Hi dude,
Followed everything to the dot, but it doesn't work.. I'm using the CM11 rom by RodgerRules on my Xperia Go.. Please help
Click to expand...
Click to collapse
Einstein69 said:
Doesn't work on my xperia go running CM11..
Click to expand...
Click to collapse
Sorry bro for almost forget it
On attach file below. Put it in to folder system/etc/init.d dan give it permissions rwxr-xr-x
I already test both of them on my xperia go running CM11.
Link : https://docs.google.com/file/d/0B-yslefpNn1hSVNPUmdfQ1RRQkU/edit?pli=1
I converted my card to ext4 and need to change the default mount options. Right now they are:
Code:
/dev/block/vold/179:33 /mnt/media_rw/sdcard1 ext4 rw,dirsync,context=u:object_r:sdcard_external:s0,nosuid,nodev,noexec,noatime 0 0
/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
But I need to replace it with
Code:
/dev/block/vold/179:33 /storage/sdcard1 ext4 rw,noatime,nosuid,nodev wait
So far, everything I tried failed:
- Editing fstab.qcom is useless because it is being recreated at each boot.
- adding a umount/mount init script
Code:
#!/system/bin/sh
VOLD="$(mount | grep -E -o -m 1 ".{0,0}179:.{0,2}")"
sleep 8
su
umount /storage/sdcard1
umount /mnt/media_rw/sdcard1
mount -rw -t ext4 -o noatime,nosuid,nodev /dev/block/vold/$VOLD /storage/sdcard1
is also useless, because although it works, it only kicks in AFTER the system is already on the desktop, which is too late.
This is all on Android 4.3.1 (but it's the same story with 4.4)
Why I want to do it?
Because although ext4 sdcard is mounted fine with read and write, the system does not see it as external anymore. As a result, many, many apps just won't work claiming there is no sdcard in the system. Even DiskUsage app does not see it.
I suppose this is because it is mounted either with FUSE or remounted directly as ext4 too late (after the system completed boot).
Any ideas?