[Tool] Swap Internal SDcard With External SDcard no init.d need UPDATE - RAZR i Android Development

Swap Internal SDcard With External SDcard
!!!!!!!!!! PLEASE REMEMBER TO BACKUP YOUR STOCK ROM !!!!!!!!!!
You will need a unlocked bootloader
Quoted from CyanogenMod team
Code:
Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device,
I will laugh at you. Hard. A lot.
*/
* When using this mod make sure you dont remove the microsd whilst phone is powered up
information :​Iv tested this for a few days iv got a 16gb card in the motorola razr I and it is all working great
i made this mod because as you no /data/media is linked to /sdcard so when you fill up your sdcard it also fill up your data
Code:
[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 484M 76K 484M 4096
/system 1G 734M 469M 4096
/cache 629M 10M 619M 4096
/data 5G 640M 4G 4096
/pds 7M 4M 3M 4096
/mnt/asec 484M 0K 484M 4096
/mnt/obb 484M 0K 484M 4096
/mnt/sdcard 14G 8G 6G 32768
Things working are :
(1) Media Transfer Protocol
(2) External SDcard being mounted to /sdcard
(3) /data/media is no longer used as /sdcard
(4) Working after reboot
How Too use :
(1) Extract to desktop
(2) Ensure USB debugging is enabled and phone is connected to pc
(3) run run.bat
Download for unlocked bootloaders here
Download for locked bootloaders here

So this gonna swap all the internal sdcard, not the sistem, to the external sdcard partitioned or whithout partition???
Enviado desde mi GT-S5660 usando Tapatalk 2

this will give you 5gb for data and and only data and if you got a 16gb micro sdcard it will be mounted at /sdacrd
so
5gb /data
16 /sdcard
it will not touch any other partition
it is only a init.d script and a mod in framework-res

Ho, i understand now, ty, this is a great work ,
What about the perfomance? Its the same or change? Just a stupid question
Enviado desde mi GT-S5660 usando Tapatalk 2

Was waiting such a modd from the beginning.
I'll test it ASAP
Thanks for your contribution.
Envoyé depuis mon Nexus 7 avec Tapatalk

It's depend your sd class card..
Make a benchmark with AnTuTu to compare which is faster between your internal and external card.
Envoyé depuis mon XT890

it's ready remember to
1 backup rom
2 root
3 enable initd

Just a question, maybe stupid, but somebody know if I use a sd card faster than the internal it'll increase the reactivity and the speed ? Like on a laptop when we change the SSD.
Envoyé depuis mon XT890

Thanks, will give it a try.

PELLET Nolwenn said:
Just a question, maybe stupid, but somebody know if I use a sd card faster than the internal it'll increase the reactivity and the speed ? Like on a laptop when we change the SSD.
Envoyé depuis mon XT890
Click to expand...
Click to collapse
If it is faster, yes it will.
You improve read and writing speed, so apps will be a bit faster to launch. Sometimes almost not noticeable, sometimes really faster

Hai fabulous69,Thk for this swap,trying now.Can u include more feature in init.d such as clear ram frequently,clean all cach/dalvik,optimize,speedreadcard,tweak,supercharge,netspeed....(sorry off topic).

For Nettweaks, you can try this.
http://forum.xda-developers.com/showthread.php?p=33403550
Till now I only flashed it on the OG RazR. I'll try it with the I, when I'm back @ home.

Doesn't work for we
Init.d initialisation seems ok
Rebot
Apply run.bat for sdcard
Reboot..
but still external1 and Sdcard after reboot
I don't know what's going wrong ...

do you have system/etc/init.d/03sdadb ?

I've checked and it seems that init.d doesn't work. The 99test doesn't create the test log file on reboot
I'm root, busybox installed, evething should be ok .. but no
CONFIRM ALL THE ABOVE THEN
Appuyez sur une touche pour continuer...
--- STARTING ----
--- WAITING FOR DEVICE
--- remounting system
remount failed: Operation not permitted
--- checking
--- pushing files
push: files\system/bin/sysinit -> /data/local/tmp/./bin/sysinit
push: files\system/bin/multiconfig_boot_script.sh -> /data/local/tmp/./bin/multi
config_boot_script.sh
push: files\system/etc/init.d/99test -> /data/local/tmp/./etc/init.d/99test
3 files pushed. 0 files skipped.
53 KB/s (2075 bytes in 0.038s)
--- copying to system
--- correcting permissions
--- checking
-rwxr-xr-x root shell 1825 2012-12-01 16:16 multiconfig_boot_script.sh
-rwxr-xr-x root shell 140 2012-12-01 16:16 sysinit
-rwxrwxrwx root root 110 2012-12-01 16:16 99test
drwxrwxrwx root root 2012-12-01 16:11
ALL DONE!!!
Click to expand...
Click to collapse

install this http://forum.xda-developers.com/showthread.php?t=1687590 and tick first an second box then plug in to pc run the init.d script then ny tool

Init.d still doesn't work
I don't know if it's related but I use the last homemade fastboot 81.5.40002.Retail.en.EU - 4.0.4:
http://forum.xda-developers.com/showthread.php?t=1936512

Le_Poilu said:
Init.d still doesn't work
I don't know if it's related but I use the last homemade fastboot 81.5.40002.Retail.en.EU - 4.0.4:
http://forum.xda-developers.com/showthread.php?t=1936512
Click to expand...
Click to collapse
I never got that init.d thing to work either.

Same here :thumbdown:
Sent from my XT890

try this one http://icxperia.com/doomlord/xperia_s/DooMLoRD-generic-init.d-support-v01.zip
also try to install busy box from market
if it don't work I'll upload my enable init.d script

Related

How to SWAP for tattoo

Warning : It can (and will) shorten SD or NAND lifespan.
A little tutorial for those who want to try swap on their tattoo without decreasing the life of their sd card.
Download the file attached here, or here.
And then do this :
Code:
adb shell "mkdir /data/swap"
adb push swapfile.swp /data/swap
adb shell
mkswap /data/swap/swapfile.swp
losetup /dev/block/loop0 /data/swap/swapfile.swp
swapon /dev/block/loop0
free ( to check if its running)
If you want to use it on the SD :
Code:
adb push swapfile.swp /sdcard/
adb shell
mkswap /sdcard/swapfile.swp
losetup /dev/block/loop0 /sdcard/swapfile.swp
swapon /dev/block/loop0
free ( to check if its running)
Keep in mind you must do losetup and swapon after each reboot.
Have been testing it for a while. No problems till now and delivers a very noticeable speed increase.
Thank you very much igstoian.
I'm gonna use it in my ROM if you don't mind.
Great that I can help.
Also post your experience with it. How is the speed gain?
Maybe this is a dumb question, but is it possible to enable swap even if my phone does not have custom boot.img??
I've rooted it, but not permanently (after a reboot I have to run the exploit again and I don't want to take the risk to brick it).
/Edit: WTF?! It's blazing fast Thank you!
Then you have to run the exploit and enable swap on every reboot if you want it...
You are actually using the data partitions for swap? And you think that increases SD card life? Sure it does, but what about the NAND flash that our data partition is, and has poorer life anyway than the damn 10 buck SDcard!?
eyegor said:
You are actually using the data partitions for swap? And you think that increases SD card life? Sure it does, but what about the NAND flash that our data partition is, and has poorer life anyway than the damn 10 buck SDcard!?
Click to expand...
Click to collapse
right
guess it's still too hard to change internal storages
It would be better to use a swap partition? A file is not the same as a partition.
Testing, swap file in system memory:
-a full day of use, the swap is 3 mb.
-30 programs loading into memory, the swap is less than 4 mb of use.
The use made is at least equal to a partition could increase. Or helping the compcache (I haven´t compcache)
It doesnt matter if its a file or a partition. you write files to a partition or you write info to a file. its still writing and its the read-write cycles that damages memory, not the amount of files being written.
lgstoian said:
Warning : It can (and will) shorten SD or NAND lifespan.
A little tutorial for those who want to try swap on their tattoo without decreasing the life of their sd card.
Download the file attached here, or here.
And then do this :
Code:
adb shell "mkdir /data/swap"
adb push swapfile.swp /data/swap
adb shell
mkswap /data/swap/swapfile.swp
losetup /dev/block/loop0 /data/swap/swapfile.swp
swapon /dev/block/loop0
free ( to check if its running)
If you want to use it on the SD :
Code:
adb push swapfile.swp /sdcard/
adb shell
mkswap /sdcard/swapfile.swp
losetup /dev/block/loop0 /sdcard/swapfile.swp
swapon /dev/block/loop0
free ( to check if its running)
Keep in mind you must do losetup and swapon after each reboot.
Have been testing it for a while. No problems till now and delivers a very noticeable speed increase.
Click to expand...
Click to collapse
Thankyo lgstoian for this how-to
Only a question:
Can I push swapfile.swp in /cache directory instead /data?
/chache has more space free
I guess you can. I haven't tryed it yet. But as it has been said in the thread it's preferable to use the sd and not any internal memory.
Wow, thank you, really speed improvement!
How to make it permanent? We have to modify init.rc in boot image?
Do you have to modify init.rc to make it permanent ? :/
Why not just use swapper?
http://code.google.com/p/a-swapper/
P
Thank you Paul : )
help
hello what we type and where type and what by type
paulobrien said:
Why not just use swapper?
...
P
Click to expand...
Click to collapse
Because not everyone flashed his tattoo and has a custom ROM, so for the folks who have to use the m7 exploit everytime after a reboot, the method lgstoian presented is the only choice
Greets
I have formatted a swap partition on my sdcard. How to use it??
Interesting. However, using swap on SD makes your SD Card unable to unmount. Internal Flash is better, 16MB on my end and I see no damage yet. And the swap is full too (16MB used, 0MB free!)
Yet. Exactly, no damage YET.
The nand flash uses a bad-block management system so i have no idea how one would notice it, i guess files getting corrupt and space being reduced.
Anyway, the only phones running android that need swap are the G1 and 32B magic.
Those phones simply have too little RAM, using straight compcache is a lot better for the 32A Magic (it resides in RAM, thus no damage) and hence the tattoo has the same amount of RAM it is better for it as well

Weird memory readings..need explaining

Hi i noticed that i only have 28MB of ROM left. Installed apps ~90. I mean ok i have 16 games but it's small ones no 3D.
AppManager says 28M free of 196?! what's up with that. I though we have 512MB. To be sure i opened up shell and did a top and df -h. Here are the outputs. What the hell is going on there?
Filesystem______________Size______Used___Available__Use% Mounted on
tmpfs__________________192.9M____0_____192.9M___0% /dev
tmpfs__________________4.0M______0______4.0M____0% /sqlite_stmt_journals
/dev/block/mtdblock3_____145.0M___121.3M___23.7M___84% /system
/dev/block/mtdblock5_____196.3M___167.3M___28.9M___85% /data
/dev/block/mtdblock4_____95.0M_____78.2M___16.8M___82% /cache
tmpfs__________________8.0M______7.0M____1.0M____87% /app-cache
/dev/block//vold/179:1
RAM is also not shoing up as 512...although the device is rooted
and TOP:
Mem: 377904K used, 17136K free, 0K shrd, 8K buff, 42416K cached
CPU: 7.1% usr 21.4% sys 0.0% nic 71.4% idle 0.0% io 0.0% irq 0.0% sirq
after reading a different thread i found that different system compoents eat the rest of the ROM so we are left with ~200MB.
but what is mpfs__________________192.9M____0_____192.9M___0% /dev
Why is this not used at all?
There is no fix for the 196MB /data partition limitation yet. Your only option is to use apps2sd (after rooting). I have it set to 768MB on my SD card
thanks for the reply.. but still if i use apps2sd i won't be able to chose where to install an app.. right?
actually there is an option in the newest CM that allows you to turn on and off Install to SD so yes you can choose.
qiuness said:
thanks for the reply.. but still if i use apps2sd i won't be able to chose where to install an app.. right?
Click to expand...
Click to collapse
Its either /data or /sd-ext/data. CM adds this to the settings activity.
If you do decide to move to the other option, use titanium backup to backup to SD, then restore. It will automatically go to either /data or /sd-ext/data
Private data for apps is still stored in /data, but apps2sd does help in slowing down the filling of /data
thanks.. It's clear now.. sadly i`m not usin CM ROM since it has no smart dialing and some other stuff i cannot live without so i`m using the desire rom..
With the DESIRE being released momentarily i`m hope we get a cleaner/bugfree ROM.
Also i`m not sure what google is waiting for releasing a new ROM for the N1

[Q] 8 interruptions doesn't work - install failed___UPDATE I am back to 1.1.0

My nook color is back to 1.1.0 now. I want to say thank you to all of you guys for helping me out. It was such a great experience here and I really appreciate it.
What happened is that Joja15 helped me to create the missing partitions, and then something miraculously happened during charging: it just booted all up to 1.1.0, which I had on emmc before it got stuck. I could never have done this on my own without the help. Thank you so much Joja !
Liz
This is how it was done after you have adb working:see the original thread here:
http://forum.xda-developers.com/showpost.php?p=13003431&postcount=166
(1) Connect Nook to PC
(2) Boot Nook into CWM off of uSD card.
(3) Verify ADB is connecting to nook by issuing the command:
adb devices
(4) If you see a serial number you are connected. Next go into adb shell by typing:
adb shell
(5) Before going any further we will want to back up your partitions 1-3 as they contain important unique information for your nook like the serial number. Make sure you 450mb of free space on your SD card.
(6) Issue the following command to backup your mmcblk0p1 boot partition to your SD card.
dd if=/dev/block/mmcblk0p1 of=/sdcard/mmcblk0p1-boot.img
(7) Issue the following command to backup your mmcblk0p2 rom partition to your SD card.
dd if=/dev/block/mmcblk0p2 of=/sdcard/mmcblk0p2-rom.img
(8) Issue the following command to backup your mmcblk0p3 factory partition to your SD card.
dd if=/dev/block/mmcblk0p3 of=/sdcard/mmcblk0p3-factory.img
(9) Once your first three partitions are backed up in adb shell go into fdisk by typing:
fdisk /dev/block/mmcblk0
(10) Upon issuing the fdisk command you should see the following:
Command (m for help):
(11) Type m to get the help menu:
m
(12) You should see the following:
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
(13) We will use the above commands to recreate our partition table. First lets see what our current one looks like. Issue the print command by typing:
p
(14) You should see the following but probably will not because your partition table is screwed up what is listed below is what you will want to see once you have recreated your partitions:
Disk /dev/block/mmcblk0: 7944 MB, 7944011776 bytes
255 heads, 63 sectors/track, 965 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 9 72261 c Win95 FAT32
A)
/dev/block/mmcblk0p2 10 18 72292+ c Win95 FAT32
A)
/dev/block/mmcblk0p3 19 56 305235 83 Linux
/dev/block/mmcblk0p4 57 935 7060567+ 5 Extended
/dev/block/mmcblk0p5 57 114 465853+ 83 Linux
/dev/block/mmcblk0p6 115 236 979933+ 83 Linux
/dev/block/mmcblk0p7 237 281 361431 83 Linux
/dev/block/mmcblk0p8 282 935 5253223+ c Win95 FAT32
A)
(15) We will need to first delete the partition #4 using the d command. Enter d and it should ask you which partition to delete. You will want to select or enter the mmcblk0p4 one or the #4 partition. I entered "4".
(16) Now that it is deleted we will want to create the #4 partition fresh. Issue the following command to create a partition:
n
When you enter the n command it will ask you questions like the start, the end, and the type of partition. Use the information in the print out above to enter the correct information. After you create a partition use the print command "p" to look at the partition layout and make sure that it matches the above for the new partition you created. If it does not delete the partition and create it again with different settings until it does. I tried this step several times before it was done in the correct way
(17) Use the n command to create partitions 5,6,7, and 8. Same as partition 4, it took me several times to get this done.
After that step I got a very similar layout as in step 14, but not exactly the same.
So I took the SD card out and planned to charge the NC. And that is when my nook color booted all up to rooted 1.1.0.
Hi, I am new here. Please talented people hear me out.
What happened to my NC is that I have it rooted by auto no, and CM7-ed, and it's been amazing. (Thanks to all of you guys!)
But one day, 2 days after RC4 I messed up somehow. Now my nook color won't boot right, it stuck at the n screen forever, if I don't hold the power button to power it off. I tried a lot of things here on this forum. Most of the time I get this error msg: can't mount /cache, can't format /system, install aborted......
So I removed CWR, then try to use the 8 interruptions plus the N+POWER key. It always give me the install failed msg after it started to install. I've tried to power it up after this and nothing changed. I have tried this for more than 10 times, crying now, any advice will be appreciated!
Launch cwr from SD, and use adb:
fdisk /dev/block/mmcblk0 -l
And print the output here.
Sent from my Desire HD using XDA App
ktan said:
So I removed CWR, then try to use the 8 interruptions plus the N+POWER key. It always give me the install failed msg after it started to install. I've tried to power it up after this and nothing changed. I have tried this for more than 10 times, crying now, any advice will be appreciated!
Click to expand...
Click to collapse
Do as Sam pointed out... however... the 8 failed reporting install failed is not a real uncommon item.
Even though you get the install failed message... power off by holding power button... holding "n" button... power on... keep holding "n" it should boot to factory clear... do the clear... then it will (probably) boot normally.
After that... there are things we can do to fix the 8 failed boots...
Thanks for the reply.
I will try this after work today then update here.
samuelhalff said:
Launch cwr from SD, and use adb:
fdisk /dev/block/mmcblk0 -l
And print the output here.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
I did this power + "n", and did the factory clear. When it's done the NC automatically reboot, then it stuck at N as always
What is next then?
DizzyDen said:
Do as Sam pointed out... however... the 8 failed reporting install failed is not a real uncommon item.
Even though you get the install failed message... power off by holding power button... holding "n" button... power on... keep holding "n" it should boot to factory clear... do the clear... then it will (probably) boot normally.
After that... there are things we can do to fix the 8 failed boots...
Click to expand...
Click to collapse
I get this:
C:\android-sdk-windows\platform-tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
~ # fdisk /dev/block/mmcblk0 -l
fdisk /dev/block/mmcblk0 -l
Disk /dev/block/mmcblk0: 7944 MB, 7944011776 bytes
255 heads, 63 sectors/track, 965 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 9 72261 c Win95 FAT32 (LB
A)
/dev/block/mmcblk0p2 10 18 72292+ c Win95 FAT32 (LB
A)
/dev/block/mmcblk0p3 19 56 305235 83 Linux
/dev/block/mmcblk0p4 57 935 7060567+ 5 Extended
~ #
samuelhalff said:
Launch cwr from SD, and use adb:
fdisk /dev/block/mmcblk0 -l
And print the output here.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
If you have the cwr working from sd, just download the latest cm7 and place it on the sd card. Boot from the sd to cwr and choose install zip from sd card, install the cm7 zip you just downloaded.
Sent from my DROID2 using XDA App
If thats all you have on your emmc, then 4 partitions are missing.
Could someone help him rebuild the partitions using fdisk or parted, based on the stock layout? I don't have time right now.
Rebuilding of system, data, cache and media is needed.
What have you done to mess with partitions? Dual-boot?
See this thread for what you're supposed to print with fdisk: http://forum.xda-developers.com/showthread.php?t=942324
Sam
Sent from my Desire HD using XDA App
I've tried stuff here and there, after got stuck at n screen. Not dual-boot I think. Now I know what I have messed up
Thank you for the reply. I am going to study that thread.
And please, any help from you guys will be great.
samuelhalff said:
If thats all you have on your emmc, then 4 partitions are missing.
Could someone help him rebuild the partitions using fdisk or parted, based on the stock layout? I don't have time right now.
Rebuilding of system, data, cache and media is needed.
What have you done to mess with partitions? Dual-boot?
See this thread for what you're supposed to print with fdisk: http://forum.xda-developers.com/showthread.php?t=942324
Sam
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
I've tried to install from zip file (stock). It just say install aborted. As you said, maybe i should try CM7 instead.
juvetch said:
If you have the cwr working from sd, just download the latest cm7 and place it on the sd card. Boot from the sd to cwr and choose install zip from sd card, install the cm7 zip you just downloaded.
Sent from my DROID2 using XDA App
Click to expand...
Click to collapse
How can you flash anything..? You don't have the appropriate partion layout..
You need to add the 4 missing partitions..
You should use parted (adb command). But if you have no clue and wish to use a GUI.. read the following, but I wont be held responsible for any damage..
If you choose to try, it's your responsibility all the way.. read the thread entirely before you attempt anything.
If you want repartition using a GUI on Linux, you can use a live cd:
For the following I would use gparted (linux disk utility). You can find a lot of info on Google if your not sure. Easiest is to use an Ubuntu.live CD and launch gparted.
- First with ADB:
- Boot with a bootable CWR. Once booted:
- then: echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
- The last command will mount your entire internal 8gb partition to your PC
Open Gparted:
- Select the 8GB drive (top right)
- you should see the4 existing partitions, with the extend at the end, on which you'll create the four missing partitions (system, data, cache and media, in that order)
- Unmount all partitions.
- Add the missing partitions starting with system, right after the extended partiton, find stock layout as an example and for partiton size references (from memory around 500 MB, then 900MB, then 350 and then 5GB, but find the exact size!)
- WARNING: every time you create a partition, make sure you choose round to cylinder and not MB, PLUS make sure you always leave a 1MB as preceding space, except for first partition (boot). If you don't follow this last recommendation, you'll end up with partitions writing over one another = corrupting partitions... Always leave a 1MB free space preceding.
- Finish by applying settings (nothing will be written to the disk before you apply). Then unmount the drive and reboot to cwr SD.
After that you can flash any rom to your nook to get it to boot again..
If you want to use command line partitioning, use fidsk/parted. Google it.
Again, if you attempt any of this, keep in mind you're playing around with the internal memory. IF anything goes wrong, you'll be left with sdcard booting only. But you'd really have to make a big mistake to get screwed.
And take time to check each step.. Instead of having to go through the process twice..
Sent from my NookColor using Tapatalk
Sam,
Thanks for all these input...
You are right. I am too stupid to see the truth I don't even have the right patition at this moment. I might go ahead start from parted. Need some serious reading before I screw up further more.
See this post in same thread Sam pointed earlier... it has a 7z copy of the partition 4 (mmcblk0p4) that will correct the other partition structures... then the 8 failed should work... it did on the one I was helping in that thread.
http://forum.xda-developers.com/showpost.php?p=12674635&postcount=18
I found my problem very similar to JoJa15.
When I check my recovery by this:
in adb mount mmcblk0p3 to /emmc and list its contents:
adb shell
mount /dev/block/mmcblk0p3 /emmc
ls /emmc
I found I have only two files:
ls /emmc
factory.zip lost+found rombackup.zip
~ #
This is different from what JoJa15 has. I did read on, but really hesitant to follow the posts after that before further guidance......I am afraid I will mess up with something again. So please tell me what to do next? I am so happy now, this seems to be going somewhere. Many many thanks!
DizzyDen said:
See this post in same thread Sam pointed earlier... it has a 7z copy of the partition 4 (mmcblk0p4) that will correct the other partition structures... then the 8 failed should work... it did on the one I was helping in that thread.
http://forum.xda-developers.com/showpost.php?p=12674635&postcount=18
Click to expand...
Click to collapse
ktan said:
I found my problem very similar to JoJa15.
When I check my recovery by this:
in adb mount mmcblk0p3 to /emmc and list its contents:
adb shell
mount /dev/block/mmcblk0p3 /emmc
ls /emmc
I found I have only two files:
ls /emmc
factory.zip lost+found rombackup.zip
~ #
This is different from what JoJa15 has. I did read on, but really hesitant to follow the posts after that before further guidance......I am afraid I will mess up with something again. So please tell me what to do next? I am so happy now, this seems to be going somewhere. Many many thanks!
Click to expand...
Click to collapse
Those are the only 2 files you should have on mmcblk0p3.
If you dd mmcblk0p4 file I provided in that thread... it will fix mmcblk0p5-8 and the 8 failed shoule work.... since the partitions will exist and be properly formatted.
Just be careful of you where you DD to. And make a DD image of 02 (rom) before you try anything..
Sent from my Desire HD using XDA App
samuelhalff said:
Just be careful of you where you DD to. And make a DD image of 02 (rom) before you try anything..
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
I'd also make DD image of 03.
Factory.zip is general and rom backup would be done with /rom..
But yeah, your never too careful..
Sent from my Desire HD using XDA App
I tried this
Code:
~ # dd if=/sdcard/mmcblk0p4-logical.img of=/dev/block/mmcblk0p4
dd if=/sdcard/mmcblk0p4-logical.img of=/dev/block/mmcblk0p4
dd: can't open '/sdcard/mmcblk0p4-logical.img': No such file or directory
~ #
I am definitely not doing this right.......
DizzyDen said:
Those are the only 2 files you should have on mmcblk0p3.
If you dd mmcblk0p4 file I provided in that thread... it will fix mmcblk0p5-8 and the 8 failed shoule work.... since the partitions will exist and be properly formatted.
Click to expand...
Click to collapse
Please bear with me coz I am really not familiar with adb.......
Could you please walk me through the steps right after this? Thanks a lot, I really appreciate it.
DizzyDen said:
Those are the only 2 files you should have on mmcblk0p3.
If you dd mmcblk0p4 file I provided in that thread... it will fix mmcblk0p5-8 and the 8 failed shoule work.... since the partitions will exist and be properly formatted.
Click to expand...
Click to collapse

[Q] SWAP PArtition

1st question :I have created a swap partition according to one of the tutorials here. But when i do the swapon command it says No such device or adress any solutions ?
http://forum.xda-developers.com/showthread.php?p=21718735
2nd question: After i rebooted the phone i use alfs kernel and gingerdx25 , the telephone is stuck jsut after i input my pin it enters the gingerdx amd thamn its stuck it becoems really laggy and than i reboots... this happens every time i boot it since my last restart it cant boot sometimes it stucks at infinity boot loop even if i delete the cache . Like there is 100% cpu usage so much lag... i cant even open the menu and than i t reboots
Hi there, it seem like you activate Comp-cache with swap right?
if you do that, you'll likely need to remove the swap partition OR Wipe your data & disable comp-cache
one more question mate . I reisntalled the android but due to some reason when i try to instlal an application the phone restarts any ideas ? :S
it mean that the app you tried to install is existed but only the data....
so, when u try to install it again, it will lead to reboot...
try clear out the data or do full-wipe
CKKnot said:
it mean that the app you tried to install is existed but only the data....
so, when u try to install it again, it will lead to reboot...
try clear out the data or do full-wipe
Click to expand...
Click to collapse
once again i hit the thanks button really thank you. But something now screwed up. When i inert my 8gb sd card it doesnt recognise taht i have even put in a card.Nothing happens like there is no sdcard.I tried to format it but it says taht there is nosd card and when i put my opther one which i do not use 2gb card it recognises it i think my 8gb card is bugged :S
nah, if you had't partition it well, it will buggy. Try copy all ur data to pc & wipe disk & copy back. Hope that solve ur problem
CKKnot said:
nah, if you had't partition it well, it will buggy. Try copy all ur data to pc & wipe disk & copy back. Hope that solve ur problem
Click to expand...
Click to collapse
i think my 8gbSanDisc is bricked forever. Its not recognised either on pc or on the telephone.Like there is no card i cant format it ....
if at partition wizard display it as a bad disk, i afraid that your sdcard is utterly damaged
be sure to own a lifetime warranty sdcard if using swap.(well, lifetime doesn't mean it last forever also.) you can instead use comp-cache as substitute method
CKKnot said:
if at partition wizard display it as a bad disk, i afraid that your sdcard is utterly damaged
be sure to own a lifetime warranty sdcard if using swap.(well, lifetime doesn't mean it last forever also.) you can instead use comp-cache as substitute method
Click to expand...
Click to collapse
Tried several partition wizards and they dont regognise the card like there is no card...
it is damaged
CKKnot said:
if at partition wizard display it as a bad disk, i afraid that your sdcard is utterly damaged
be sure to own a lifetime warranty sdcard if using swap.(well, lifetime doesn't mean it last forever also.) you can instead use comp-cache as substitute method
Click to expand...
Click to collapse
1st question :I have created a swap partition according to one of the tutorials here. But when i do the swapon command it says No such device or adress any solutions ?
have you tried:
swapon /dev/mmcblk0p3
mmcblk0p3
blk0 mean block 0
p3 mean partition 3
Edited ----- My Bad
CKKnot said:
have you tried:
swapon /dev/mmcblock0p3
mmcblock0p3
block0 mean block 0
p3 mean partition 3
Click to expand...
Click to collapse
new problem now sd cardi s accessed and formatted by the phone but when i put hte usb cable it says it must be formatted (windwos says this) and if i format it in fat32 its unreadable by the phone anymore...And yes the problem was mispartitioning the sd card wasnt fried
okay first of all, most user wanna configure his sdcard partition in this way.
[FAT32][EXT2][SWAP] - (This is what i configured now.)
[FAT32] is for normal sdcard file system which you can access it from your pc also
[EXT2] is where the partition of sdcard store your app (.apk) and dalvik-cache (Depend on the rom.)
[SWAP] is where the partition is assigned as swap memory.
all of those partition must be primary and in order. [FAT32] can have a drive letter where other's can't have it.
CKKnot said:
okay first of all, most user wanna configure his sdcard partition in this way.
[FAT32][EXT2][SWAP] - (This is what i configured now.)
[FAT32] is for normal sdcard file system which you can access it from your pc also
[EXT2] is where the partition of sdcard store your app (.apk) and dalvik-cache (Depend on the rom.)
[SWAP] is where the partition is assigned as swap memory.
all of those partition must be primary and in order. [FAT32] can have a drive letter where other's can't have it.
Click to expand...
Click to collapse
cant i make swap memory by making swap file because it doesnt work with swap partition
can, but it will reduce it's performance.
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
~ # fdisk -l dev/block/mmcblk0
fdisk -l dev/block/mmcblk0
Disk dev/block/mmcblk0: 7948 MB, 7948206080 bytes
255 heads, 63 sectors/track, 966 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
dev/block/mmcblk0p1 * 1 777 6240228+ c Win95 FAT32 (
)
dev/block/mmcblk0p2 778 833 449820 82 Linux swap
dev/block/mmcblk0p3 834 966 1068322+ 83 Linux
~ # swapon /dev/block/mmcblk0p2
swapon /dev/block/mmcblk0p2
swapon: /dev/block/mmcblk0p2: No such device or address
~ # swapon /dev/mmcblk0p2
swapon /dev/mmcblk0p2
swapon: can't stat '/dev/mmcblk0p2': No such file or directory
Click to expand...
Click to collapse
here is my output
recreate your partition into
[FAT32] [EXT2] [SWAP]
most rom will search the third partition as their swap partition. i recommend you to use partition wizard to do it
CKKnot said:
recreate your partition into
[FAT32] [EXT2] [SWAP]
most rom will search the third partition as their swap partition. i recommend you to use partition wizard to do it
Click to expand...
Click to collapse
i did it i have 3 partitions fat , ext2,swap
You need to mount the partition before using swapon.If you add this line to system/etc/fstab the rom will mount it for you at boot.
Code:
/dev/block/mmcblk0p3 /swap swap rw

[Q] External SD Card on paranoid Android PA 2.x mounted strangely

Hi,
first of all tnx to the penguins for the great CM10 based PA ROM. I'm running it since Build 02 and lovin it.
I noticed that the external SD is mounted under /storage/sdcard1 next to the internal /storage/sdcard0 or /sdcard
This leads to one strage thing: Under /sdcard/_ExternalSD I only see the empty folders .../DCIM/Camera while the Camera pictures get (correctly) filed under /sdcard/DCIM
I can only access the external SD with root explorer therefore and it's contents cannot be used by many apps and functions (like Airdroid)
Am I doing anything wrong? Is there an easy way to fix it?
tnx in advance
jolithan said:
Hi,
first of all tnx to the penguins for the great CM10 based PA ROM. I'm running it since Build 02 and lovin it.
I noticed that the external SD is mounted under /storage/sdcard1 next to the internal /storage/sdcard0 or /sdcard
This leads to one strage thing: Under /sdcard/_ExternalSD I only see the empty folders .../DCIM/Camera while the Camera pictures get (correctly) filed under /sdcard/DCIM
I can only access the external SD with root explorer therefore and it's contents cannot be used by many apps and functions (like Airdroid)
Am I doing anything wrong? Is there an easy way to fix it?
tnx in advance
Click to expand...
Click to collapse
Thats my Dear friend is our Beloved ICS Formatation there are Tools to Swap or Redefine Partitions like http://forum.xda-developers.com/showthread.php?t=2020737 its comes with a self explaining Manual.
And Well. Hit thanks if i Helped
Have a nice day
You can use in terminal : "mount -o bind /storage/sdcard1 /storage/sdcard0/_ExternalSD" after creat with "mkdir /storage/sdcard0/_ExternalSD". For have all the time, after boot, use SManager ( in play store ) for execute a small script, juste une ligne : mount -o ..... by.

Categories

Resources