[Q] How to make a Init.d script with mount parameters - Galaxy S II Q&A, Help & Troubleshooting

Hello!
I am using the WanamLite v13 rom (LSJ Android 4.1.2), with Philz's kernel and I have trying to mount the /mnt/sdcard/external_sd to /mnt/extSdCard. Via ADB's shell with this command I was successful:
Code:
mount -o bind /mnt/extSdCard /mnt/sdcard/external_sd
But, when I reboot the phone the mount disappears. So, my question is, how can I make an Init.d script to mount those directories at every boot?
Thank you!

Related

[Q] (Q) Mount sdcard-ext as NTFS

Well, i have a problem to mount my external sdcard, i download the ntfsmodule from kholk's archives and then execute this command on terminal emulator to load the module
insmod /mnt/sdcard/ntfs.ko
but then how can i mount my sdcard
i tried this
mount -o rw -t ntfs-3g (or ntfs) /dev/block/yourdrive /mnt/whereveryouwant
but which dev/block is the sdcard-ext????? or this is only for usb drives?
Thanks in advanced....

[Q] init.d doesn't get executed

i made a file called "99mount" with a the content
mount -o bind /emmc /mnt/sdcard/external_sd
however, it isn't being executed an start tried also
busybox mount -o bind /emmc /mnt/sdcard/external_sd
and no luck, do i need to add 99mount to some xx.rc file?
im using siyah kernel and hydrogenics btw
toinktoink said:
i made a file called "99mount" with a the content
mount -o bind /emmc /mnt/sdcard/external_sd
however, it isn't being executed an start tried also
busybox mount -o bind /emmc /mnt/sdcard/external_sd
and no luck, do i need to add 99mount to some xx.rc file?
im using siyah kernel and hydrogenics btw
Click to expand...
Click to collapse
Using Siyah kernel, placing the script file in system/etc/init.d should do it.
Are there other files in init.d folder?
Try to remove all other file from init.d folder, re-flash the kernel and reboot the phone.
Good luck !
Maybe the script should be executable ?
chmod +x filename ?
I was trying exactly the same thing today
I can get it to work like this
Code:
#!/system/bin/sh
mount -o bind /mnt/emmc /mnt/sdcard/external_sd
Putting the file in the init.d folder is not enough, you need Script Manager app and set it to run as root + run at boot
You can also run it straight away, but it will not stick on reboot.
I need a solution without using any extra app....
EDIT:
I also tried this (hoping that it would work without Script Manager)
Code:
#!/system/xbin/sh
mount -o bind /mnt/emmc /mnt/sdcard/external_sd
but it does not do the trick
I noticed that there a sh file in the bin folder, but not in the xbin folder...could this be the reason? It shouldn't as lines beginning with # aren't normally parsed...
Is there an incompatibility with Busybox or what exactly is wrong here?
P.S. I'm using Slim ICS (with Siya most of the time)
It_ler said:
Using Siyah kernel, placing the script file in system/etc/init.d should do it.
Are there other files in init.d folder?
Try to remove all other file from init.d folder, re-flash the kernel and reboot the phone.
Good luck !
Click to expand...
Click to collapse
i am using siyah with hydrogen ics, and that is what i did and it isn't working
i messed up my phone, now menu and back button doesn't work T_T
anybody? please help!

[Q] Error in init.d script

Hi,
My today goal is to swap internal memory with SD card on HTC Desire 310, and I almost accomplished that, because at this moment I need to send command trough adb to get this working:
So ADB and
Code:
su
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
so now I need to create init.d script to swap internal memory with SD card at boot, I've tried something like that:
Code:
#!/system/bin/sh
mount -t vfat -o umask=0000 /dev/block/vold/179:97
script location /system/etc/init.d/04swapsd, and this script does nothing even I tried to add 'busybox' before 'mount' - zero changes.
SManager app gives me 'Device or resource busy' error
Can anyone help me with my problem?
Thanks!
meciu99 said:
Hi,
My today goal is to swap internal memory with SD card on HTC Desire 310, and I almost accomplished that, because at this moment I need to send command trough adb to get this working:
So ADB and
Code:
su
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
so now I need to create init.d script to swap internal memory with SD card at boot, I've tried something like that:
Code:
#!/system/bin/sh
mount -t vfat -o umask=0000 /dev/block/vold/179:97
script location /system/etc/init.d/04swapsd, and this script does nothing even I tried to add 'busybox' before 'mount' - zero changes.
SManager app gives me 'Device or resource busy' error
Can anyone help me with my problem?
Thanks!
Click to expand...
Click to collapse
Try this: https://www.youtube.com/watch?v=nWN0tOSPFv4
It should work fine!
in this tutorial I can expand RAM memory, but this is I dont want to do.
I have about 800MB left in internal storage - and I cant install big games like Asphalt 8, and because of that I want to create script to automatically swap internal with external memory.
I've tried already apps like Internal 2 External SD, Link2SD, DirectoryBind, FolderMount.

[Q] Mounting point of internal SD card in 4.3 JB as Secondary ROM

Hello
I am managing to mount internal sd card in my secondary JB 4.3 (SNAPDRAGON Stock) ROM using the mount command
using root explorer, the content of sd card is present at /data/media/ but the ROM does'nt mount it properly
Using this ROM as primary, the issue is absent
My Kernel is GoogyMax 2.3.2 and primary ROM is archidroid
I used these commands on terminal emulator after "su", but no success
Code:
mount -o bind /data/media/0 /mnt/shell/emulated/0
mount -o bind /data/media/0 /storage/legacy/emulated/0
mount -o bind /data/media/0 /storage/sdcard
mount -o bind /data/media/0 /storage/sdcard0
Any idea how to make the sdcard show and work properly ?
No developer to help ?
Please

[Q] Galaxy Relay 4G T699: Swapping Internal Mem / Ext SD (CM11)

Hi all, greetings, this is the first time for me posting a thread in this session.
And sorry for my bad English, I am not native English speaker.
Here is the situation and would wish to seek help:-
Phone: Samsung Galaxy S Relay 4G (aka T699)
Rom: CM11 Official ApexTmo.
Scenario: Wishing to swap Internal Memory & Ext SD Card.
Problem: I used to solve this in ICS, by editing vold.fstab on my late SGH-I927.
This no longer worked on Jellybean (Stock Rom) on this phone,
I therefore managed to use Init.d script as follow:
Code:
sleep 2
mount -o remount,rw /
mkdir -p /data/internal_sd
mount -o bind /mnt/sdcard /data/internal_sd
mount -t vfat -o umask=0000 /dev/block/vold/179:33 /mnt/sdcard
mount -o bind /data/internal_sd /mnt/extSdCard
However when I upgraded to CM11, this script no longer works.
a. There has been work outs for other phones using a script called SwapCM11 in XDA,
however the mount point is different and I face difficulties in sorting out all mount points,
esp in CM11, besides ordinary /storage/sdcard, there is also a mount point for internal called /storage/emulated/0 or /storage/emulated/legacy
b. besides Init.d, I also tried an "Root External 2 Internal" but too not working on CM11.
Kindly please help., and best wishes

Categories

Resources