Related
Is there any way to partition storage card, so WM will show it as 2 storage cards? My SD card is currently big mess because of android stuff and i wish to split it to android and data part.
I think best way will be boot Android with folder from SD Card (for example Storage Card/Android -> and put all files in that folder)
radzix27 said:
I think best way will be boot Android with folder from SD Card (for example Storage Card/Android -> and put all files in that folder)
Click to expand...
Click to collapse
android has to be in the root of the sd card
leemoss84 said:
android has to be in the root of the sd card
Click to expand...
Click to collapse
I know but maybe somebody can change something for boot from any folder (if it's possible)
radzix27 said:
I know but maybe somebody can change something for boot from any folder (if it's possible)
Click to expand...
Click to collapse
pretty sure the reason for having to have it in the root is because of speed.if you start puting it into folders its just gonna slow it down.
leemoss84 said:
pretty sure the reason for having to have it in the root is because of speed.if you start puting it into folders its just gonna slow it down.
Click to expand...
Click to collapse
Maybe something is with it
It is possible to create more than one partition on an sd-card. I do not know, how wm handles this. When i found my old micro-sdcard i will give that a try
Anyway, it might be easier to put android into a folder. IMHO this will not impact performance. With some linux knowledge it should be possible by modifying the boot-scripts in initrd.gz and rootfs.img. There are also options in the startup.txt
vdelf said:
It is possible to create more than one partition on an sd-card. I do not know, how wm handles this. When i found my old micro-sdcard i will give that a try
Click to expand...
Click to collapse
Any progress on running it from native partitions?
I have a spare SD card partitioned and ready
vdelf said:
Anyway, it might be easier to put android into a folder.
Click to expand...
Click to collapse
As it turns out, it is ALOT easier to put it into a folder. Because you already can
I just looked into the scripts, and both already check for "/" or "/android/" for most of the files needed. So just create a folder named "android" on your sd-card, put most of the android-files there and you are done.
You can not put all files there because some are hard-coded to root. I am not sure about calibration (i left it in root and wlan worked), but modules-*.tar.gz has to stay there. Well, you CAN remove it after first startup as the modules are copied. Same goes to the AndroidApps-folder. My android-folder now contains data.img, haret.exe, initrd.gz, rootfs.img, STARTUP.TXT, system.sqsh and zImage.
Surprisingly no modification on startup.txt was needed. Are these path-options used at all
Mic159 said:
Any progress on running it from native partitions?
I have a spare SD card partitioned and ready
Click to expand...
Click to collapse
I tried that last week, but android loops at some point during startup animation. Always get the same results when i modify the system.sqsh. Dont know, what i am missing
hi guys,
for running on partition try with this configuration :
example 8 Gb SD card :
1. partition 1 -> fat32 -> 7 GB
2. partition 2 -> ext2 / ext3 -> 512 mb
3. partition 3 -> linux swap
extract system.sqsh into partition2.
@vdelf
man, you should erase some line init file in rootfs. erase everything script contains pointing file data.img. change it to your /dev/mmc1blkp2.
latest build phhusson rootfs.img will error on load wifi calibration.
cheers,
fatsal.
What do u think under extract ? move whole file to ext2 or decompres it to separate files ?
Devaster said:
What do u think under extract ? move whole file to ext2 or decompres it to separate files ?
Click to expand...
Click to collapse
I think he means unsquashfs the file.
Can we just write the data.img that we already have generated? ie. dd if=data.img of=/path/to/sdcard/partition?
Then we need a new rootfs without the creation & mounting of data.img?
And obvoiusly an update to STARTUP.txt
I hope there will be solution to that problem soon.
I currently have all files that were before on storage card in \Card folder. So android is in root and all other files are in separate folder. Which works great at start, but then windows start creating other folders like DCIM, Program Files, Application Data etc. and is again mess.
can someone prepare a package for easy instalation on partitioned card ?
AFAIK you cannot install to partitioned card because WM can display only 1 partition. That means you can't see either android or other files.
fatsal said:
hi guys,
for running on partition try with this configuration :
example 8 Gb SD card :
1. partition 1 -> fat32 -> 7 GB
2. partition 2 -> ext2 / ext3 -> 512 mb
3. partition 3 -> linux swap
extract system.sqsh into partition2.
Click to expand...
Click to collapse
You could try running a swapfile instead of a swap partition.
in your favorite linux
> dd if=/dev/zero of=/target/swapfile bs=1024 count=262144
> mkswap /target/swapfile
> swapon /target/swapfile
I use
1. partition 1 -> fat32 -> 4 GB
2. partition 2 -> ext2 -> 4 GB (currently trying to get Debian to talk to my network )
3. linux swap on /swapfile
fatsal said:
@vdelf
man, you should erase some line init file in rootfs. erase everything script contains pointing file data.img. change it to your /dev/mmc1blkp2.
latest build phhusson rootfs.img will error on load wifi calibration.
cheers,
fatsal.
Click to expand...
Click to collapse
Or to be more specific.
You can point to any partitions in startup.txt. My debian startup.txt (networking still not working ) **
set cmdline "root=/dev/mmcblk0p2 rootwait msm_fb.fix_x=1 console=tty0 msmsdcc_id=3 imgdevnum=1 imgdir=/ msmts_calib=0xc5.0x399.0x367.0x4d wifi.mac=00:23:45:39:0e:a1 mddi.width=480 mddi.height=800 board-htcraphael-navi.inversion=1 pm.sleep_mode=3 pm.debug_mask=2 lcd.density=240 msmvkeyb_toggle=on fbcon=rotate:3 clock-7x01A=528"
so I replaced "init=/ imgdevname=/dev/mmcblk0p1" with "root=/dev/mmcblk0p2 rootwait msm_fb.fix_x=1"
** for original info (step 6) http://forum.xda-developers.com/showpost.php?p=5579798&postcount=458
Michael
hello guys,
i want to share how to running android from sdcard, last time before i lose my X1 it's already running well on my X1.
here's the step :
requirement :
1. linux (mine ubuntu 9.10)
2. for ubuntu do "sudo apt-get install squashfs-tools" for getting unsquashfs (for extract system.sqsh)
prepared equipment :
1. 8gb SDCard (for good starting but you can also using 2 gb or 4gb)
2. partition your sdcard like this (8gb configuration) you can using gparted :
1. 5.5 gb format using fat32 this called : mmcblk0p1
2. 1 gb format using ext2/ext3 for /system this called : mmcblk0p2
3. 1 gb format using ext2/ext3 for /data this called : mmcblk0p3
4. 512 mb format using linuxswap for /swap this called : mmcblk0p4
installation :
1. do execute on terminal : unsquashfs <your system.sqsh directory> after extraction you will see directory called "squashfs-root"
2. copy all files from "squashfs-root" directory into your SD Card /system partition or mmcblk0p2.
3. copy startup.txt, haret.exe, modules<build>.gz, zImage from vdelf build onto your root SDCARD fat32 or mmcblk0p1
4. download and copy/replace rootfs.img from here into your root SDCARD fat32 or mmcblk0p1.
5. execute haret.exe and then wait and pray.
@vdelf :
man...your the best, with this configuration you can easly changes or edit an android modules.
cheers,
fatsal
man u are the 1
so is it only possible to set this up with linux, windows won't work?
CowMix said:
so is it only possible to set this up with linux, windows won't work?
Click to expand...
Click to collapse
same question?
But after all, why ask those questions every time? Get yourself DamnSmallLinux and qemu emulator.. It will be about 60 Mb download total and you'll never have problems with ext2 filesystem and permissions
sp3dev thanx for the hint i was looking for small distro ...
Thanks fatsal, almost there.
But one thing u missed in your first post, was to copy initrd.gz in step 3 (copy it to the fat32 partition)
Otherwise HARET says "/Storage Card/initrd.gz" not found.
But i get stuck in the boot screen (the android loading image with the X).
It just sits there forever. It shows a bit of the animation, then stalls for a second then skips back to the start of the animation...
Not sure whats wrong.
Mic159 said:
Thanks fatsal, almost there.
But one thing u missed in your first post, was to copy initrd.gz in step 3 (copy it to the fat32 partition)
Otherwise HARET says "/Storage Card/initrd.gz" not found.
But i get stuck in the boot screen (the android loading image with the X).
It just sits there forever. It shows a bit of the animation, then stalls for a second then skips back to the start of the animation...
Not sure whats wrong.
Click to expand...
Click to collapse
Yes, i have that problem too!
any help is appriciated!
i've definately done it all correct because when i insert the sd card the /data partition is filled with android files!
but the x just loops, freezes then continues to do that! :S
I have and 8GB SDHC card class 6, but i only ever have 7.42GB available, even when the card is empty. Is this normal?
Also i have tried to use Gparted to partition my SD card following the instructions aove, but i get an error message, can anyone tell me what im doing wrong. See attached for details.
Thanks in advance.
yes the 7.42 gb is normal, i cannot help you with the error though
but until we can get to fully boot up theres no point anyway!
Mic159 said:
But i get stuck in the boot screen (the android loading image with the X).
It just sits there forever. It shows a bit of the animation, then stalls for a second then skips back to the start of the animation...
Click to expand...
Click to collapse
I never managed to get past that. I got the same effect when i modified the system.sqsh. I ASSUME, that a file link is broken or some file permissions are not correct. I am sure, it is something trivial, but no idea how to find out.
fatsal said:
hello guys,
Click to expand...
Click to collapse
Nice to see you around, again!
CowMix said:
so is it only possible to set this up with linux, windows won't work?
Click to expand...
Click to collapse
It is MUCH EASYer to set this up with linux. It is possible using windows, but you have to use some black magic. Windows will not allow you to create more than one partition on an sdcard or usb-drive. Maybe some 3rd-party-partition-program can, but i dont know of one. It is possible to fool windows to think that the sdcard is a fixed disk. Then you can create more partitions.
The next problem is to create the ext2-filesystem in windows. There are drivers to read/modify ext2, but creating it? Maybe that 3rd-party-partition-program can...
we need fatsal's help! :|
vdelf said:
I never managed to get past that. I got the same effect when i modified the system.sqsh
Click to expand...
Click to collapse
Any progress on it?
What are the permissions supposed to be like?
Is there any way to debug the boot process when it wont boot?
can we put something in the eclare config to output the logs to a file?
Mic159 said:
Any progress on it?
What are the permissions supposed to be like?
Is there any way to debug the boot process when it wont boot?
can we put something in the eclare config to output the logs to a file?
Click to expand...
Click to collapse
unfortunately no, and i don't think there will be until an android SD xpert comes along or fatsal himself decides to chek xda
vdelf said:
It is MUCH EASYer to set this up with linux. It is possible using windows, but you have to use some black magic. Windows will not allow you to create more than one partition on an sdcard or usb-drive. Maybe some 3rd-party-partition-program can, but i dont know of one. It is possible to fool windows to think that the sdcard is a fixed disk. Then you can create more partitions.
The next problem is to create the ext2-filesystem in windows. There are drivers to read/modify ext2, but creating it? Maybe that 3rd-party-partition-program can...
Click to expand...
Click to collapse
Ask and ye shall receive
This is the Hitachi fixed-disk filter driver - if you put your device id in the inf file, you can partition your SD card like a normal fixed disk.
NOTE: I take NO responsibility if this driver eats your first-born child, or opens a trans-dimensional portal and sucks you into oblivion. You are on your own for support. If you are unsure what you are doing, DON'T USE THIS - get a live CD linux distro and boot that instead.
If you want to read-write ext2 partitions under windows, use something like http://www.fs-driver.org/ - again if it turns your computer into a smouldering pile of vomit, it's YOUR responsibility!
But have fun anyway!
sp3dev said:
But after all, why ask those questions every time? Get yourself DamnSmallLinux and qemu emulator.. It will be about 60 Mb download total and you'll never have problems with ext2 filesystem and permissions
Click to expand...
Click to collapse
i got damn small linux
how to make partition to my SD card by using the dsl?
thank u in advance
Most linux distributions have cfdisk. Look at the linux log to find the device name for your sd-card. It should be something like /dev/sdb. Run cfdisk /dev/sdb as root, and you can manage partitions on that device. Be carefull not to edit the wrong disc
For partitioning i mostly use gparted. Bigger download, but very comfortable and powerful partitioning system.
i try to cooked rom and add app2sd and that didn't work , at end i install CYANOGENMOD M build #31 And i flash data2ext-CM-test5-ish.zip and before that i make my sd like this
by using GParted-live
par1 : around 6GB fat32
par2 : around 2GB ext2
par3 : around 32 MB Linux swap
and i use this command and the commands works:
mke2fs-m0 -Ldata -b4096 /dev/block/mmcblk0p2
data2ext --enable
but NOTHNG work and get crazy i need to install on sdddddddd
dose data2ext work on CYANOGENMOD M build #31 or not ??? is there any solution please
Should do, use the latest version of data2ext though
this is not the last one ???
data2ext-CM-test5-ish.zip
anther question if the data2ext work the internal phone memory will show the sd ext or the phone internet one ???
No, check my thread on data2ext for the latest version. ext2 is v7 I think. If it's worked the phone will see the ext partition as the internal memory. So if you look at the storage thing in about phone it should show the size of the ext partition.
thanks friend i will try now ....
not work , the same problem , what do you think????
Logcat plz
here is the Logcat file
FORCOMM said:
here is the Logcat file
Click to expand...
Click to collapse
I can't open rar files on my phone. A zip file would be nice, or a link to pastebin
twitter.com/TheGrammarFreak
sorry here is in zip format ..................
and pastebin link
http://pastebin.com/Snam8phQ
Is that of the boot process?
twitter.com/TheGrammarFreak
anther Logcat
http://pastebin.com/7bLaS8HU
you need for boot process ???
here is logcat for boot process
http://pastebin.com/Cu3m0bfn
FORCOMM said:
here is logcat for boot process
http://pastebin.com/Cu3m0bfn
Click to expand...
Click to collapse
Ext partition is corrupt
twitter.com/TheGrammarFreak
Hello,
As I have a problem with not enough internal memory for gameloft titles, I`ve inserted my 8GB Sd card into my I9000, just to find out it is attached as "external_sd" folder.
I was thinking about using my external card as "gameloft" folder.
So my question is: how to make a link between "gameloft" folder on internal sd memory so that it links directly to inside of the"external_sd\gameloft" folder ? I know it can be done- I did smthg like this when playing with app2sd (moving dalvik cache, app and other folders to ext partition on my SD card on my previous phone).
I also need some proposal on how to automate the process of making this link - for example: how to create some script and put it in auto-startup, so every time I reboot my phone, the link persists.
I think this way many people would be able to increase their space with external SD cards
If you know how to make script put it in /system/etc/init.d folder and it will execute at every startup.Give full permission on script.
http://www.google.com/search?q=gameloft+game+external+sd
Coding rule #1: Don't reinvent the wheel if you don't have to.
Rubysz said:
http://www.google.com/search?q=gameloft+game+external+sd
Coding rule #1: Don't reinvent the wheel if you don't have to.
Click to expand...
Click to collapse
Coding rule #2: Square is a square, but inventing a wheel is something that runs the civilization forward
Really, you thought that I didnt check all the possibilities ? Using somebody simple program, wchich only changes settings inside of apk is not what I`m interested for, especially this works only for gameloft games, and I`d like to have the feature without digging in any apk file.
I was thinking about this - I also came up to conclusion, that dynamic links work only under linux partitions (for ex: ext2,ext3,ext4) and not on fat32 system, which we have on our internal memory and sd cards.
My second thought was that I remember in the times of good-old dos it was possible to make a link between folders, but in this case we have a mix - linux os + fat32 partitions.....
I have to digg how to make a auto-link script cause I dont remember too much of linux scripting/command line.
edit: do You think that using this command is enough: ln -s /sdcard/gameloft /sdcard/external_sd/gameloft
could it be so simple ? should it work with fat32 ?
bipbop said:
should it work with fat32 ?
Click to expand...
Click to collapse
No. FAT32 doesn't support
symlinking.
Sent from my GT-I9000 using Tapatalk
xxbeanxx said:
No. FAT32 doesn't support
symlinking.
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
ok, but what about mount command (mnt) ??
As I understand, Android = linux.
If so, we have internal memory mounted as "sdcard" folder and our external micro sd mounted as "sdcard\external_sd" , right ?
So, question is, can we make a script to unmount "sdcrad\external_sd" and mount as "sdcard\anything" ??I think this would be great , as we could mount the sdcard as any folder - for example as "Android" or "Gameloft", thus increasing available space very much .
Anybody can make this kind of simple auto-start script ?
bipbop said:
So, question is, can we make a script to unmount "sdcrad\external_sd" and mount as "sdcard\anything" ??
Click to expand...
Click to collapse
Have a look at /system/etc/vold.fstab
Sent from my GT-I9000 using Tapatalk
xxbeanxx said:
Have a look at /system/etc/vold.fstab
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
ok, going deeper
Is it possible to link mount point to another folder ?
Hi,
I am a little confused, I have followed verygreens , thank you for the work !! , latest post to install CM10 to sdcard. I have created my sdcard and booted into TWRP as directed, then connected to my pc , linuxmint, it connects and shows a 16gb directory with various folders. I have 2 questions:-
1) I thought that the instructions where for installing to sdcard, my sdcard is 8GB , but it looks like it is mounting the nooks internal storage, i have a 16gb nook hd+
and
2) If this is ok, which folder do I need to copy the cm-10-20130212-UNOFFICIAL-ovation.zip file too?
Thanks very much, I hope I have provided enough information to highlight my problem.
Mal
If you have Linux, you do not need to use his new TWRP method to copy the zip to the SD. Just plug the card directly into the PC and copy the CM zip to the SDCARD partition with Linux. Then put the card back into the Nook and boot to TWRP and install the zip.
Sent from my Nook HD+ running CM10.1 on Hybrid SD
leapinlar said:
If you have Linux, you do not need to use his new TWRP method to copy the zip to the SD. Just plug the card directly into the PC and copy the CM zip to the SDCARD partition with Linux. Then put the card back into the Nook and boot to TWRP and install the zip.
Sent from my Nook HD+ running CM10.1 on Hybrid SD
Click to expand...
Click to collapse
Hi,
Thx for the quick reply, I have found 3 partitions on the sdcard now, one called CM10SDCARD , I assume this is the one to copy the zip file to.
Thx in advance
malnon said:
Hi,
Thx for the quick reply, I have found 3 partitions on the sdcard now, one called CM10SDCARD , I assume this is the one to copy the zip file to.
Thx in advance
Click to expand...
Click to collapse
Yup, that's the one. If you run into any problems, check out the first post in this thread: http://forum.xda-developers.com/showthread.php?t=2032364
Tarthenal said:
Yup, that's the one. If you run into any problems, check out the first post in this thread: http://forum.xda-developers.com/showthread.php?t=2032364
Click to expand...
Click to collapse
Great my first mod and seems to be working !! time to play with it now, thanks to everyone for pointing me in the right direction !!!