[Q] Mounting SD Card at boot with init.d - Android Q&A, Help & Troubleshooting

I have a init.d script that involves sdcard activity, but the card is obviously not mounted whilst the script is being executed. So is it possible to write a init.d script that would mount an sdcard at boot time?

Im looking for this solution too.. I believe mount sdcard on init will be a great idea.. because i have apps on sdcard so, it will need to be scan only after it boot to the OS.

Same here... could u get the solution ?
I want my script to copy some file from /sdcard to /data at boot time.

Related

[Q] No app2sd partition found???

Can someone please explain to me how to correct is problem? I'm new to installing roms and rooting. I'm using clockwork.
No app2sd partition found. Skipping format of /sd-ext.
Get rom manager app from market and flash clockwork recovery, then partition your sd card to get an ext.
Or do this with amon ra recovery.
Sent from my HTC
Thanks for the advice. I been trying to install cyanogenmod 6 on my evo. Are there any specific setting of an 8g sdcard and do i still need to install a ENGbootloader if i partition my card?
No app2sd partition found. Skipping format of /sd-ext.
--Installing: SDCARD: /clockworkmod/download/mirror.kanged.net/cm/stable/supersonic/update-cm-6.0.0-supersonic-signed.zip
Finding update package...
Opening update package...
Installing update...
Welcome to Cyanogenmod-6.0.0-Supersonic!
assert failed: getprop("ro.bootloader") =="0.76.2000"
getprop("ro.bootloader")=="0.79.0000"
E: Error in /sdcard/clockworkmod/download/mirror.kanged.net/cm/stable/supersonic/update-cm-6.0.0-Supersonic-signed.zip
(status 7)
Installation aborted.
/tmp/recovery.log was copied to /sdcard/clockworkmod/recovery.log. Please open ROM Manager to report the issue
im having the same time of problem! help
Solution for No app2sd partition found. Skipping format of /sd-ext
Hi,
Background:
I have a beloved ZTE BLADE.
Had a new 8 GB Class6 microSD card.
I don't have external SD card reader!
Goal: To partition SD card with FAT32 and ext2 partition to use app2sd feature.
Problem: ClockWork 3.0.1.4 (CW) can't do partitioning. (Exactly it say it is done, but after it can't find ext partition.)
Message is: No app2sd partition found. Skipping format of /sd-ext
Solution:
1. adb shell - (There are some guide for beginner how to do this.)
2. umount /dev/block/mmcblk0p1 (or else parted will crash. Also fdisk can't write partition table because of used partition on same device!)
3. fdisk /dev/block/mmcblk0 partition to fat+ext2 Don't forget to write it at end!
4 Manually make ext2 fs:
#mkfs.ext2 /dev/block/mmcblk0p1
5. Manual mount of ext2 partition. ( Or else you will faced with error message later. CW will not se the EXT2 partition !!! )
Error message if you skip this step:
No app2sd partition found. Skipping format of /sd-ext.
# mount /dev/block/mmcblk0p2 /sd-ext
6. Umount ext.
# umount /dev/block/mmcblk0p2
Tadamm! Voala...
CW will be able to format EXT partition and mount it.
The trick was manual umount FAT partition + manual mount ext2.
Regards,
Robert Szabo
No known solution (so far) for Nook Color
This weird problem is showing up when I am using Clockwork to prepare my Nook Color for installing an Android installation. It is appearing pretty consistently right now.
I have looked at various solutions:
1. Creating an ext partition on the SD card
This involves going to the Advanced selection on Clockwork and partitioning the SD card. This is a bad idea, because it (obviously) wipes the SD card completely, removing Clockwork and making the SD card un- bootable. As a result, you cannot do anything else with Clockwork (including, of course, any flashing!).
2. Attempting to create an app2sd partition on the Clockwork SD
I noticed that the Clockwork image, when placed on an 8 GB SD card, leaves about 380 Mb of unallocated space. Using EASUS I attempted to allocate some space for a partition called "app2sd". I do not know if this would have solved the problem, because ASUS is unable to create the partition. When you do the Apply in EASUS, it acts like it is creating the new partition, but then it reverts everything back to unallocated.
3. Searching for solutions on the Net
This is a waste of time, because most of the solutions people have given are either not for SD cards with Clockwork on them, or they presume that you already have a flashed and running installation and suggest using an installed Clockwork in order to create the partition. Since I am trying to get it to work properly on a Clockwork SD, these solutions do not help.
What is needed is either a Clockwork installation procedure that places an app3sd partition on the SD card when the image is put on, or a way to place an app2sd partition on the card after the Clocwork image is put on it.
This of course assumes that the app2sd partition is even needed on the Clockwork SD. If it isn't, then could somene please tell me so that I ccan forget about this problem?
Otherwise, does anyone know of a way to get this partition on a Clockwork SD card?
Thanks in advance for any information...
before putting the ROM preferred to do this: put the original CWM / + volume buttons and power / do 2 wipe / replace the modified CWM / do the other 2 in advanced wipe / format system / install the ROM favorite / and you're ok .
* doing so I have solved this problem.

[Q] Application/Data partition resize?

Hi.
I've rooted my A70s with chulri's kernel and it seems to work ok.
My next goal is to get more app room ... so I guess I need to resize the app/data partition.
I've thought that having my internal storage formatted on ext4, it would be possible to ln the /data folder to /storage/data without problems, but then I should create a boot script for that. The question is... can I do this with my current root status? What would be the way to do it? I'm don't know enough of linux os to make it on my own.
If the system can't be fooled with a ln, then is there any way to resize the data partition, even if I have to backup/restore my current data?
I don't want to use Urukdroid, since all the versions I tried were very unstable on my machine.
Cheers!!
search the forum: http://forum.xda-developers.com/showthread.php?p=14710945#post14710945
Follow chulri's method, or repartition your internal storage in Linux, mount it on the archos, and copy the data there. Then edit init.rc and change the data mount line. If it gets mounted in the kernel, you'll have to umount it first to remount it to the other partition.

[Q] Bootable script

Can anyone tell me where to put script (something.sh) which will be executed during boot as early as possible. I simply want to mount additional partition on my SD card.
put it in /system/etc/init.d
For stock roms too?

Int2ext help

Hello guyz, i'm trying to install int2ext script on my phone, but without success. I've got a Samsung S4 Clone with J.B 3.1, stock rom and stock recovery. I managed to create an ext2 partition through windows and enable init.d scripts with an googlestore app. Using a script named 05mountsd, the system manages to mount the ext2 partition and i'm able to browse it with root explorer. But when i copy any of the int2ext/int2ext+ scripts in the init.d folder (remember, i dont have cwm recovery to install from zip) the phone boots normaly and 5secs after i see my background, the phone goes back in loading android screen.
I have to delete the 40int2ext script from init.d through adb shell, for the phone to boot up normally again. Then inside the ext2 partition i am able to see that the script has managed to create some files and folders! But i cant install apps in there. Also link2sd app gives a message that the partition cannot be mounted and that i should try fat.
Any ideas how to get int2ext or any other storage script to work?
Bump!!!
I managed to install a cwm recovery that supports my phone's UBIFS format.
Still can't get any script that links apps to sd to work.
When i try to install CronMod_int2ext.zip through recovery i get an error. Also i cant mount or format the sd-ext partition in the recovery, though i tried partitioning the sd inside the recovery as well as from windows. Both attempts fail to mount in recovery.
With Mounts2sd app, i get bootloop problem.
Anyone!?
bump
931 6923243
bump!

[Q] Incompatibility with Increased Internal Memory and Swap File

Hi all,
I have increased the internal memory of my GT-S5830B with this guide (http://forum.xda-developers.com/showthread.php?t=2082465) and all works fine.
Later I create a swap file in the SD Card with this guide (http://forum.xda-developers.com/showthread.php?t=2376735) and it works too.
But, when the Swap File is active the app's instaled by Google Play can't be loaded, and I can't install others or do anything with SD Card, is the similar reason when the phone is plugged to a PC as a Mass Storage.
Anyone know if this situation have a solution? Maybe I need to use a Swap partion and not a Swap file?
Thanks
assuming you are using Samsung Galaxy s5830 i/B/M/C/5839 i < rooted> best solution to remove all apk + lib+dex+data <in pro version> is installing link2sd, which does not require all of hardship you went through in order to increase your internal memory mate.
Link2SD moves apk + dex + lib files of the application to the second partition and creates symbolic links in the original locations on internal storage.
application by itself does not create necessary partitions though, you need some third party apps to accomplish it or CWM recovery can perform it ,, check this post for some comprehensive guideline ,, also you may need to check the Developer's topic http://forum.xda-developers.com/showthread.php?t=919326 for further reassurances
But I think my problem is not with the method utilized to increase the internal memory, it working very good and I can use all apps installed on sd-ext partition including when the phone is connected to PC as Mass Storage.
Any comment about the Swap file configuration?
I found the problem, its occurs when I activate the Swap file during boot, if I start it after the boot all the apps works.
I think it can be related with the script used to activate the Swap file, see below.
Code:
#!/system/bin/sh
su
BUSYBOX=/sbin/busybox
$BUSYBOX mount -t vfat /dev/block/mmcblk0p1 /sdcard
chmod 777 /sdcard/swapfile
$BUSYBOX swapon /sdcard/swapfile
Maybe I need to use a Swap partition if I want to mount the Swap during boot process?
That attached images show all the thinks running, increased internal memory and swap file.

Categories

Resources