Repartition + FUSE in the next build of CM10 - LG Optimus 2x

Hello,
I think it would be interesting in the next buid of CM10 implement FUSE.
For those not familiar with FUSE, this makes the EMMC (Internal) and DATA partitions are one.
FUSE is the standard in new android devices like the Galaxy S3.
With this gain in space, since both would have 6.7 GB of user data (photos for example) and for applications.
This would require using a repartitioning and as it should be, we could give more space to the partition and Partition System Cache.
I made a build with FUSE on, and doing great. It should be a standard in CM10 for P990.
A greeting and I apologize for the translation.

no thanks, i really like having my system and sd card separated...

60nine said:
no thanks, i really like having my system and sd card separated...
Click to expand...
Click to collapse
Sorry, SDCARD is the defaul name for internal.
FUSE = (Internal EMMC + DATA)
Without FUSE:
Partition 8 = DATA [1,5GB]
Partition 9 = EMMC [5,3 GB]
With FUSE only have:
Partition 8 = USERDATA [6,8 GB]
The user can see 6,8 GB in Internal SD

Sounds good but will it work,
If you want the CM team to pick it up you will have to talk with them directly.
Good luck
Sent from my LG-P990 using xda app-developers app

Tamps said:
Sounds good but will it work,
If you want the CM team to pick it up you will have to talk with them directly.
Good luck
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
Only change two files, and they here in the p990 repo.
Other solution is clone a p990, change two files and create a p990-fuse repo.

why would i fuse those two partitions? they are fine like they are now.
if i want to format the internal storage without affecting apps data i can while i'm using the actual partitions set, i cannot with the new mixed one.
this fuse leads what advantages?

pidocchio said:
why would i fuse those two partitions? they are fine like they are now.
if i want to format the internal storage without affecting apps data i can while i'm using the actual partitions set, i cannot with the new mixed one.
this fuse leads what advantages?
Click to expand...
Click to collapse
- You can format only DATA, and can format only EMMC too with FUSE with CWM.
- When you use a file manager, you see the same that without FUSE but you have 6,7GB.
- You can install 6,7 GB of APP.
- FUSE is ANDROID standard. All new Android devices use FUSE.

sounds great. make a flashable zip, we'll start using it

Sure
I'd give it a try i have a device i can use for testing

Ok,
I'll upload a zip with NVFlash and partitions.
Anyone can upload misc and lgdrm partitions?
Open Terminal
su
dd if=/dev/block/mmcblk0p3 of=/storage/sdcard0/misc.img
dd if=/dev/block/mmcblk0p6 of=/storage/sdcard0/lgdrm.img
After doing this, in the internal memory of the device, there should be two new files: lgdrm.img and misc.img.
Screenshot:
http://imageshack.us/photo/my-images/90/screenshot2012110410465.png/
http://imageshack.us/photo/my-images/12/screenshot2012110410462.png/

ProgMaq said:
Ok,
I'll upload a zip with NVFlash and partitions.
Anyone can upload misc and lgdrm partitions?
Open Terminal
su
dd if=/dev/block/mmcblk0p3 of=/storage/sdcard0/misc.img
dd if=/dev/block/mmcblk0p6 of=/storage/sdcard0/lgdrm.img
After doing this, in the internal memory of the device, there should be two new files: lgdrm.img and misc.img.
Screenshot:
http://imageshack.us/photo/my-images/90/screenshot2012110410465.png/
http://imageshack.us/photo/my-images/12/screenshot2012110410462.png/
Click to expand...
Click to collapse
misc.img: http://www.mediafire.com/?ik7gq8ddxxx0ujz
lgdrm.img: http://www.mediafire.com/?mf6oe0mio7xh9g9
I hope they are useful

Very thanks Chuck Bartowski
But your lgdrm.img is empty when mount.
This occurs when you have used nVFlash, not a problem, but I would like the original partition lgdrm compare with mine.
Anyone can upload original misc and lgdrm.
Thanks.

What about usb storage(internal storage) mounting after FUSING ?
Will it work as before ?
Sent from my Galaxy Nexus using xda premium

ProgMaq said:
Very thanks Chuck Bartowski
But your lgdrm.img is empty when mount.
This occurs when you have used nVFlash, not a problem, but I would like the original partition lgdrm compare with mine.
Anyone can upload original misc and lgdrm.
Thanks.
Click to expand...
Click to collapse
Ok, sorry, I didn't know.
I have reflash 10b with NVflash ( stock partition ), ROOT and Recovery, and I have flash cm10.
misc.img: http://www.mediafire.com/?1n0pmdbembdeorr
lgdrm.img: http://www.mediafire.com/?dan8jpucxjdw4ok

Chuck Bartowski said:
Ok, sorry, I didn't know.
I have reflash 10b with NVflash ( stock partition ), ROOT and Recovery, and I have flash cm10.
misc.img: http://www.mediafire.com/?1n0pmdbembdeorr
lgdrm.img: http://www.mediafire.com/?dan8jpucxjdw4ok
Click to expand...
Click to collapse
Thanks again, but even installing the stock version, the misc partition lgdrm and do not return to be the same (missing files)
What about usb storage(internal storage) mounting after FUSING ?
Will it work as before ?
Click to expand...
Click to collapse
Working same
Good news, I have uploaded the file. Zip
http://forum.xda-developers.com/showthread.php?p=33671985

Take a look at this link
teamw.in/DataMedia
So i think we might loose usb mounting on pc
Sent from my LG-P990 using xda app-developers app

ProgMaq said:
Sorry, SDCARD is the defaul name for internal.
FUSE = (Internal EMMC + DATA)
Without FUSE:
Partition 8 = DATA [1,5GB]
Partition 9 = EMMC [5,3 GB]
With FUSE only have:
Partition 8 = USERDATA [6,8 GB]
The user can see 6,8 GB in Internal SD
Click to expand...
Click to collapse
and still - i like it as it is
i still have 2 partitions with 6,8 GB total - but i can keep things more organized with 2 partitions than with one...
for me it's just like having 2+ PC harddrives - one only for the system, and other disks for the other files...

how do I flsh this to files with nvflash?

instead of fuse of internal memory(1.5gb) n internal sd(5.5gb).....
can i have fuse of internal sd(5.5gb) n external sd(i have 16gb) so that i can get...
external sd---21.5gb....
imo 1.5gb is enough for app data but 5.5gb is not enough for sd data files(nova 3 almost 2gb)
i hav mounted my externalsd as internalsd so that sd data files are saved in ext but 16gb not enough(game addict)...
hope u can help..thanks

ullekh99 said:
instead of fuse of internal memory(1.5gb) n internal sd(5.5gb).....
can i have fuse of internal sd(5.5gb) n external sd(i have 16gb) so that i can get...
external sd---21.5gb....
imo 1.5gb is enough for app data but 5.5gb is not enough for sd data files(nova 3 almost 2gb)
i hav mounted my externalsd as internalsd so that sd data files are saved in ext but 16gb not enough(game addict)...
hope u can help..thanks
Click to expand...
Click to collapse
I like it ,interesting thought
But what will hapn when sd ejected and phone restarted
Sent from my LG-P990 using xda app-developers app

Related

Possible to put stock image on sd card

I am on rooted 1.1 v2 and everything works great. The only thing missing is the in store reading free books for an hour a day. I was wondering if I could boot stock BN image on sd card when I am in the BN store, so I could get the in store feature?
I have been reading a lot and many people with 1.1 v2 cannot get access to the free one hour reading. I am a newbie, so alot of android dev forum is a little over my head.
If anyone knows of another way to get in store reading, I would appreciate the help.
Not a bad question. In theory i bet its possible. Id love to have an sd for stock use....
Sent from my Nook Color (zoom2) using Tapatalk
I just want it for in store reading.
Why no one has thought of this before I have no idea, but its a Great Idea, Count me in if they can come up with this, maybe some high and mighty dev will come by and hear our pleas.
It would be great to have the Free Reading and to get books on free book Friday, Also i think they have in-store coupons.
therealguppy said:
Why no one has thought of this before I have no idea, but its a Great Idea, Count me in if they can come up with this, maybe some high and mighty dev will come by and hear our pleas.
It would be great to have the Free Reading and to get books on free book Friday, Also i think they have in-store coupons.
Click to expand...
Click to collapse
I believe it was tried previously, but there's things in the stock ROM that have hard coded reference points to parts of the system (if memory serves). The person trying to do this early on gave up for that reason. I could be wrong, but I think this was in mid December.
I was getting ready to ask this question when I found your thread. I really hope something like this does pop up in the Dev section - I'll use my nook daily with a custom froyo rom, but it would be nice to be able to use the stock image off a SD when I stop into a B&N.
Well, in theory it's quite easy to do. Read the entire post before attempting the trick.
As usual, I'm not responsible if your NC starts speaking Flemish. Be careful with your Internal partitions!
Requirements: stock on internal, gparted, maybe my UMS utility (DEV), an SDCard (8GB at least, to be safe), a few minutes.
Partition an SDcard following stock layout.
You can partition the SD by using gparted. Create a new partition table, then create the partitions. Then apply. Don't forget to use "round to cylinder" and always leave a 1mb space at the beginning of each partition (except boot). Or else, you'll end up with corrupt partitions, writing over one another. Partition size can be changed, just make sure they're big enough..
Make sure the first partition has the bootable/boot flag.
To print the layout, use ADB command "fdisk /dev/block/mmcblk0 -l".
Or search for the layout in dev forum.
Layout looks like this (by heart, so check):
(Primary: )
p1: boot = FAT32 ~70 MB
p2: rom = FAT32 ~70 MB
p3: factory = ext2 ~??MB (this can left at 1mb, its a recovery partition, no use here)
p4: extended (not a partition strictly speaking, it's an extension)
(Logical: )
p5: system = ext2 ~470MB
p6: data = ext3 ~900MB (this can be bigger, app data storage)
p7: cache = ext3 ~350MB
p8: media = media FAT32 ~5GB (this can use all the remaining space, as big as you can/wish: media storage, books, films)
Then, you'll need to copy partition contents onto the SDCard's newly created partitions.
The easyiest way of doing it is by making .tar files of internal partition contents and extracting the files onto the SD partitions.
To create the tar files:
- either use <tar XXX.tar *> adb command on each partition, make sure you compress the actual content, not the container folder (i.e tar system content and not system, the * in the command stands for all content). Then pull the tar file. Delete it afterwards from internal!
- OR, probably more user friendly, use my USB mass storage utility found in DEV, mount each partition and create tar files with your usual UI (Ubuntu, Windows, OSX).
Copy every tar file onto your PC.
Tar files of internal partitions aren't all mandatory, all depends on if you want to make a complete backup of running stock rom, or if you just want the general stock rom on an SD. For instance, cache and media can be ignored, if you just want a general version. If you want to backup your media, tar media as well.
Then, extract each file onto the corresponding partition of you partitioned SD. Delete .tars afterwards from SD partitions.
THEN: download attached file, erase uRamdisk from you SD's boot partition and replace it with the one in the attached zip file (rename SD-STOCK-uRamdisk to uRamdisk). Without this step, your SD will boot from system and data internal partitions.
This uRamdisk has adb activated, so you should be able to push files to the SD once booted. Some internal commands won't work though (i.e, mount). You'll have to install busybox and root (su) the system, well if that's your goal that is.
Then insert the SD and boot.
In theory, this should boot up to stock from SD.
I could be missing something, it's late here, and I haven't tried any of this.
Beware: recovery, even from SD, will affect the internal partitions! Maybe it's best you delete uRecRam and uRecImg from your SD's boot (NOT INTERNAL!).
NB: you need to edit vold.conf. See second page of this thread.
Note: you could also use 'dd' command instead of making tars, but you'd end up with huge .img files.
PS: If you have no way of accessing your SD partitions once they're created, use the following command from ADB while booted from working internal system, with SD inserted in NC:
echo /dev/block/mmcblk1 > /sys/devices/platform/usb_mass_storage/lun0/file
Click to expand...
Click to collapse
This last command should open every SD partition in you PC's explorer.
Sam
I don't see the point in asking a question if you're not interested in the answer...
Sent from my HTC Desire using XDA App
samuelhalff said:
I don't see the point in asking a question if you're not interested in the answer...
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
I for one appreciate it, but missed that reply. I'm going to need to stockpile some microSD cards for all these various things to try .
I tried these instructions and it boots to the initial setup screen. I can see broadcasting AP's, but unfortunately I can't get it to connect any WiFi hotspot.
It appears to associate, sits at obtaining IP, but eventually gives up.
ADB connects and I was able to look at dmesg, but nothing stands out.
I went back to the eMMC and registered, exported /data, imported it to the SD card, and was able to bypass registration. However, it still doesn't connect to WiFi.
Only point that is probably worth noting is that I used a 2GB SDCard and here's what my mount output looks like:
mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mmcblk1p2 /rom vfat rw,sync,noatime,nodiratime,uid=1000,gid=1000,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,errors=remount-ro 0 0
/dev/block/mmcblk1p5 /system ext2 ro,errors=continue 0 0
/dev/block/mmcblk1p6 /data ext3 rw,nosuid,nodev,noatime,nodiratime,errors=continue,data=ordered 0 0
/dev/block//vold/179:17 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
Click to expand...
Click to collapse
Any ideas?
Success
I could follow the instruction and made a 8gb stock bootable micro sd card. Only problem I can see is it mounts the boot partition of sd card as "/sdcard" and creates few folders like "B&N Downloads", "My Files". Is there any way to disable the sd card mount.
If anyone is interested in getting a copy of the sd card I can upload.
pbcal said:
I could follow the instruction and made a 8gb stock bootable micro sd card. Only problem I can see is it mounts the boot partition of sd card as "/sdcard" and creates few folders like "B&N Downloads", "My Files". Is there any way to disable the sd card mount.
If anyone is interested in getting a copy of the sd card I can upload.
Click to expand...
Click to collapse
I'm interested in it, or at least a "dummies guide" to doing this via a Windows PC..
I mean, as I read samuelhalff's post, it looks like it should be relatively easy to follow, but I have a few questions...
I see things like creating the partitions on the SD using gparted (which appears to be a linux command) so I don't know if I can maybe use EASEUS in Windows do do it? And am I reading it correctly, that TAR is a command I can run from inside an ADB SHELL? (i.e. type ADB Shell, then TAR)
I'll upload it tonight and post the link.
pbcal said:
I'll upload it tonight and post the link.
Click to expand...
Click to collapse
only reason that might not be a good idea is copyrights... not sure what if any might make it against the rules here, or something B&N would frown upon... then again, I guess its no worse than the .ZIP image in the recovery threads?
In any case, Thank you!!! I do appreciate it!
pbcal said:
I could follow the instruction and made a 8gb stock bootable micro sd card. Only problem I can see is it mounts the boot partition of sd card as "/sdcard" and creates few folders like "B&N Downloads", "My Files". Is there any way to disable the sd card mount.
If anyone is interested in getting a copy of the sd card I can upload.
Click to expand...
Click to collapse
I eagerly await this...and thank you for the work. I would use this as a dual-boot SD card with my daily-use ROM installed to internal memory. There are fairly easy-to-follow directions here on xda that will allow us to dual boot your SD card and internal memory. If you choose to boot from internal memory, then the SD card just becomes your external storage. No SD card swapping needed to go between your daily OS and the B&N stock. Very cool.
Thanks again.
You're welcome..
Sent from my Desire HD using XDA App
I'd love to get this as well. I had a 1.1 rooted stock which didn't give me the free hour in the store laast weekend. Sort of bummed as I heard it worked for some people.
Dan
Sent from my NookColor using Tapatalk
As I mentioned above, this would be great for dual-booting from eemc and sd card. I messed around with this a bit this evening and got it working nicely with one of the old Honeycomb images. The instructions for setting up dual boot are here:
http://forum.xda-developers.com/showthread.php?t=947698&highlight=dual+boot
I did have to mess around with the SD card a bit as once you boot from the internal memory, it is the first partition of the SD card that is used as your SD storage. Most SD card images have this as a very small boot partition with the fourth partition the larger SD card partition. I used a free program called Parted Magic to move the second, third, and fourth partitions over and expand the first partition into the unused space, creating a 5GB boot partition. I then put the multi-boot files from the thread above into the large boot partition. Worked like a charm - when booting from the SD card, Honeycomb used the fourth partition as the SD card storage space. When booting from internal memory, CM7 (the ROM I have installed to internal memory) used the 5GB boot partition as the SD card storage space.
Eageraly awaiting someone to build this and post an image file. I will admit that I am not smart enough to carry out the lengthly and excellence directions posted by samuelhalff.
Here is the link for the image. You will need a 8 GB or higher SD card.
Sorry for the large file. It has all partitions with stock data except data, cache and media.
Post your results / issues.
[COLOR="Red"][B]Removed[/B][/COLOR]
Click to expand...
Click to collapse
To avoid having /sdcard mounted on boot, you need to edit /system/vold.conf :
Code:
volume_sdcard {
## This is the direct uevent device path to the SD slot on the device
media_path /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
partition 8
media_type mmc
##mount_point /sdcard
mount_point /media
ums_path /devices/platform/usb_mass_storage/lun0
}
volume_sdcard2 {
## Currently points to internal eMMC, assumes eMMC is formatted as FAT32
media_path /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
media_type mmc
##mount_point /media
mount_point /sdcard
ums_path /devices/platform/usb_mass_storage/lun1
}
Add "partition 8" in the sdcard section.
Explanation: see, media is set to partition 8 of internal. That's right. But here, sdcard will mount automatically the first sdcard partition (boot), as partition isn't set. You need to manually set it mount partition 8 (sdcard)..
Sam

[MOD] Mount SD card as a folder of internal memory for CM7

This seems to be the best solution if you just want to stock mounting in cm7, I don't know if build.prop changes with every new nightly so you'll probably have to edit it after every flash.
Stikkontakt said:
SOLUTION:
1: Create a folder in your internal SD Card (in my case "ExternalSD")
2: Edit vold.fstab:
Code:
dev_mount emmc /mnt/sdcard/ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount sdcard /mnt/sdcard 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
3: Edit /system/build.prop
Code:
# Mount the internal SD card, too
ro.additionalmounts=/mnt/sdcard/ExternalSD
your external sd card is now mounted inside internal sd card. If you go to settings/storage, it will come up as unavailable, but the external content is inside your selected folder
Click to expand...
Click to collapse
nomedor said:
After that you can mount external sd as a folder of internal by using this command in terminal emulator:
Code:
mount /mnt/emmc /mnt/sdcard/_ExternalSD
The problem is that it can't survive boot and you have to write this command by hand every time. I tried to make it run on boot by adding the command in \system\etc\init.d folder as a text file but it didn't work, although it should.
Any help is welcome
Click to expand...
Click to collapse
That's why it didn't works!
Thanks for bring it up! I hope someone will help you becouse the way stock roms mount sd card is way better!
pushing it up, since this here is an interesting topic. It does indeed make more sense to mount sdcards like the stock roms mount it...
Hopefully someone can figure this out.
Also i noticed that if you do not mount emmc/_ExternalSD it gets recognised by the pc and otherwise not. This could be coincidence since i'm struggling hard with mounting my sdcards to my mac...
Unfortunately you are right, after this trick pc can only see the external sd card!
Maybe this isn't the right way to do it or somehow it needs to automatically unmount before you connect the phone on pc and then on disconnect remount it again.
Sadly my knowledge is limited, but I think that a real developer can do it in a heartbeat.
I'm not a real developer, but I remember that the modified fstab has to be put inside the kernel ramdisk.
I have found these two perl scripts somewhere on the net. They can be used to extract and repack the boot image. Could be possible that the base address has to be modified to work on the O2x, haven't tried it myself yet.
Zip including the scripts are here:
h t t p ://tuxfighter.de/Share/Scripts/
___
Sent from my Optimus 2X using Tapatalk
This is easy peasy lemon squeezy . For me at least since ex-dev.
Instructions:
Get root explorer (cba giving adb commands on my phone)
Mount r/w
Go to etc/vold.fstab
Mount r/w again
Long press the file and click open in text editor
Now at the bottom swap the mounts. Sdcard to /mnt/emmc
And
emmc to /mnt/sdcard
Save and exit.
Delete backup and reboot.
I will post a flashable zip if you want soon.
DONT FORGET TO THANK ME!
EDIT: just read first post properly. It should work on every boot. It is for me on my g2x. Try my easy method
The problem is that I can't find a way to mount external SD in "/sdcard/_externalSD" from vold.fstab where /sdcard is internal memory, just like stock rom.
It should be possible...
nomedor said:
The problem is that I can't find a way to mount external SD in "/sdcard/_externalSD" from vold.fstab where /sdcard is internal memory, just like stock rom.
It should be possible...
Click to expand...
Click to collapse
Have a look at the stock vold then
Sent from my LG-P999 using XDA App
I copied stock vold into CM7 and i got neither internal SD nor external SD then.
ranrick said:
I copied stock vold into CM7 and i got neither internal SD nor external SD then.
Click to expand...
Click to collapse
I've already tried that. I can't understand why people are not interested in this
yeah, there are almost no applications which can use /mnt/emmc. So 1 partition is almost useless at current situation.
Any progress?
Sent from my Optimus 2X using Tapatalk
ranrick said:
yeah, there are almost no applications which can use /mnt/emmc. So 1 partition is almost useless at current situation.
Click to expand...
Click to collapse
Y dont u put all your pics,videos and music in emmc and leave sdcard for application data?
Sent from my LG-P999 using XDA App
webstar1 said:
Y dont u put all your pics,videos and music in emmc and leave sdcard for application data?
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Because we have to do It for EVERY new photo/Video
Stock's ROM vold.fstab is mounting /sdcard/_externalSD but this is not working on CyanogenMOD, it could be a CM7 "problem" after all!
No update? CM7 way to mount sd sucks IMHO!
katun79 said:
No update? CM7 way to mount sd sucks IMHO!
Click to expand...
Click to collapse
if you want to test it (please do a nand backup before!), than try my kernel and add the -internal flag to it.
Download this
rename to vorkKernel-080611-internal.zip
and flash it.
It is untested, because I don't want this behaivour and I made it because a user requested it. So no gurantee that it will work etc.
Bennee:
From what i see in vold.fstab file in the flashable zip it only swaps paths...
Any luck mounting external sd in "/mnt/sdcard/_externalSD" ?
nomedor said:
Bennee:
From what i see in vold.fstab file in the flashable zip it only swaps paths...
Any luck mounting external sd in "/mnt/sdcard/_externalSD" ?
Click to expand...
Click to collapse
there is a additional mounting script + some permission fixes. Should be called on every boot up (mount /mnt/emmc /mnt/sdcard/_ExternalSD).
Benee said:
there is a additional mounting script + some permission fixes. Should be called on every boot up (mount /mnt/emmc /mnt/sdcard/_ExternalSD).
Click to expand...
Click to collapse
But it doesn't... _ExternalSD is empty with your kernel.

(Q) Ext4 on latest CM7 Kang Milestone

I finally decide to have a partion on my 8GB SD other than FAT32. So i used the FuFu Minimod to split my SD. First to Ext2 then to Ext3 and then to Ext4.
It all went fine. I have moved some basic apps like Facebook and Igo to the Ext4 partion.
The weird thing that drove me to create this thread is the fact that my phone became a bit slow... unresponsive... and just because the Ext4 with basic apps on it?
Did i miss something or this is normal?
Appreciate all feedbacks.
WF
Sent from my Milestone using xda premium
Try wipe both Cache and Dalvik-Cache
Thanks... but is not the case... and yes i already did that before creating the thead.
Tks
Well then, manually move the app to the sdcard, then move back to the phone.
It should move into the ext4 partition.
They are all in ext4...
Sent from my Milestone using xda premium
wisefreakz said:
They are all in ext4...
Sent from my Milestone using xda premium
Click to expand...
Click to collapse
I know it is inside ext4. Please try to move to the sdcard and back to the phone again.
I did face this b4
I have done that before you mention... and it looks like its a bit more stable.
One doubt... i notice that all sd-ext\app files are alson in data\app.
Why is that?
Sent from my Milestone using xda premium
Why
Is ext4 faster or what ?
Im kinda noob on this android and stuff things, so i donno.
I can put my apps on SDcard without formatting to ext2, 3 or 4.
Well, now after billions of testing, formating, reflashing... all looks pretty nice now.
@ivanotera: moving apps to sdcard is not the same as moving apps to a second partition where this second partition is journaled - case of ext4.
It means that when you boot your phone, this partition is ready to use and does not need to be "prepared" as the usual fat32 - thats why we see the message after boot up that sd card is being prepared (in fact the OS is checking if the partion is corrupted or not.
Also when moving apps directly to sd card like you are doing, is not good as phone becomes slow, widgets, shortcuts dissapear while booting phone and while phone is connected to pc via usb with sd mounted for access.
With ext4 (using ext4.ko module) OS will think that this second partition is part of the internal storage and all of the above mentioned will not be a problem anymore and you will not get that anoying message that you have not enough space just because you added a couple apps.
Hope this can clarify some important things.
Cya
Sent from my Milestone using xda premium
Yeah, got it.
But another question, is ext4 "viewable" by windows ?
Because i have a 32gb card, so i use it as a "pen drive", have some apps so when i format a pc, not at home, i have some apps already, and dont have to download it.
Or in the case of creating a ext4, i partition the sdcard, so i have the "apps" partition and the "windows" partition ?

[Re-OPEN] SanDisk 64BG EXT4/exFAT N.E.A.K. Kernel

Hello,
I re-open this thread because I have new information about the compatibility of N.E.A.K. kernel with my card formatted in exFAT.
N.E.A.K. Kernel don't support this file system!!! That's the reason why my card doesn't work with...
I restart to "0" because I think the alone solution is to use EXT4 with auto-mount at boot.
@ scote (or other):
Can I use your manual mount cmd on init.d or other way?
Hello,
With n7100 international + Omega v10 (Android 4.1.2 based) + N.E.A.K. kernel v1.4x
With various µSD card (but especially with my new Sandisk UHS 64Go) I would know how to use ext4 filesystem.
After computer formatting in ext4 the card can't be really usable by phone:
- Storage menu don't see him.
- Recovery can't do anything with (mount / format)
- Some apps can see him. (like empty 64GB / or 0Gb card capacity !)
- ES Files explorer work with but by the /mnt/extsd/card directory and if no SD card in slot work to !!!
thus I expect doesn't work really
If you have any information about what work, can or can't work, or anything about filesystems, software...
Thank you
Click to expand...
Click to collapse
I had the same thing happen. I plugged it not my computers sd card reader and the computer acted as if nothing was there. I tried to force a format through DOS but it failed. Ultimately I had to buy a new MicroSD card.... Now it works.
Update: Card doesn't work with my reader/computer
What file system are you using?
Why not just use exFat? It useable on Note 2 and readable by Windows. Just make sure to use the latest TWRP for system bqckup
Re: SD Card file system usable by OS apps
You can mount ext4 file system manually if you are rooted, from a terminal or adb shell
mount -t ext4 /dev/block/mmcblk1p1 <some directory>
substitute <some directory> with the path without the <> I used /sdcard/mnt
of course if you wont be able to read the card with windows pcs
I think there might be an app to do this for you, usb mounter
Android won't mount ext4 by default.
Also, windows can't mount ext4 drives but you can use something like minitool partition wizard to reformat it to ExFAT or NTFS if you're on samsung ROMs, or Fat32 if you're using CM/AOSP ROMs.
Pongster said he'd be making a test kernel to see if he can get ext4 to auto-mount in the HyperDroid JBX thread, but that's not released yet.
You aren't using TWRP 2.4.0.0 or 2.4.0.1 by chance?
!!! Sorry, XDA doesn't mail me for new answer.
Thanks your help men
Why not just use exFat? It useable on Note 2 and readable by Windows. Just make sure to use the latest TWRP for system bqckup
Click to expand...
Click to collapse
I don't like Microsoft. If I have a Linux device like Android N7100 I want to use it the more possible with Linux environment.
I useCWM Touch v6.0.1.4-jb moded by Xiaolu. Good?
You can mount ext4 file system manually if you are rooted, from a terminal or adb shell
mount -t ext4 /dev/block/mmcblk1p1 <some directory>
substitute <some directory> with the path without the <> I used /sdcard/mnt
Click to expand...
Click to collapse
Thus can't be used like a FAT SD Card? By Samy explorer and others softs? Can't be see by system like an external card, not possible to manage it very good (capacities disponnible by exemple) ?
You aren't using TWRP 2.4.0.0 or 2.4.0.1 by chance?
Click to expand...
Click to collapse
No; why?
Re: SD Card file system usable by OS apps
Once its mounted any explorer or app dont care or know what the filesystem is
Yes, but can I will see the SD like a "normal" FAT formatted card?
I want to say, in menu/storage like a external SD?
If the card like this, have all the same functionality of FAT card, can you help to auto-mount at boot?
My card is actually broken: phone or PC won't see anything when connected
'll try with a new 64GB in few hours.
Re: SD Card file system usable by OS apps
StreamingMT said:
!!! Sorry, XDA doesn't mail me for new answer.
I don't like Microsoft. If I have a Linux device like Android N7100 I want to use it the more possible with Linux environment.
I useCWM Touch v6.0.1.4-jb moded
Click to expand...
Click to collapse
I don't see how it related. Both fat and exfat are MS. And exFat is the only option works across Note 2 Android, TWRP,Windows, and can be mounted as thumb drive (with the benefit working with > 4gb files). It's up to you if you want to get yourself into troubles by using other format.
Sent from my GT-N7100 using XDA Premium App
jackleung
I like more ext4, but apparently this is a little bit difficult to do what I want (And I think it's what broke my firts SD). Thus I'll use extFAT for my new one.
That's work perferctly! Just funny to see my new card in packging pre-formatted in extFAT...
All is good for me now, thanks you every body for your help ;p
Hello,
I re-open this thread because I have new information about the compatibility of N.E.A.K. kernel with my card formatted in exFAT.
N.E.A.K. Kernel don't support this file system!!! That's the reason why my card doesn't work with...
I restart to "0" because I think the alone solution is to use EXT4 with auto-mount at boot.
@ scote (or other):
Can I use your manual mount cmd on init.d or other way?

[Q] noob q: repartitioning to get larger data partition, and smaller virtual SD card

I put a large microSD card into my N7000 and so it has lots of space; the internal flash virtual SD card also has lots of space, but I have hit the limit for apps. Even moving apps to SD hasn't helped too much, some of the games loaded are huge!
I read with interest about repartitioning to get over broken areas in the eMMC, and so I wondered if I could do the same to shrink the internal virtual SD card and make the data partition larger.
I would go into recovery, backup the virtual SD card to external, backup data to external SD, then delete the two partitions, recreate them, format them and restore the data.
I am wondering if I would be wise to reboot the device after repartitioning to ensure the kernel sees the change?
I appreciate this sort of thing has been discussed before but I've not seen anything that definitely says this is a good or bad idea.
sorry but you cant, you cannot edit the pit file to get different partition size but you can create ext4 partition in your external sdcard and then move your apps to this partition using an app called app2sd.
Sent from my GT-N7000 using xda premium
---------- Post added at 01:20 AM ---------- Previous post was at 01:13 AM ----------
Btw pit file is the file used to create all the partitions in your internal memory (/system, /preload, /data, /boot, ..etc).
Sent from my GT-N7000 using xda premium
You are asking to hard brick your device really
Sent from Nexus 5 on Slimkat
yet he as a point.... even 2GB (/data) are becoming small for KitKat and ART (my Dalvik-cache is 600mb...)
There is another thing that could be done. have dalvik-cache mounted on the current /data partition, have /data partition mounted on the current /storage/sdcard0 partition, and have /storage/sdcard1 mounted on the /storage/sdcard0. The result would be:
/cache -- whatever it is now.
/dalvik/cache -- 2GB (more than enough)
/data -- 11 GB
/storage/sdcard0 -- whatever microsdcard you have.
Be advised, the recovery would probably have to be tweaked to account for this.
thanks, it is as I thought... although in theory it should be possible, in practise lots of things would break or brick and it'd be a disaster!
speculatrix said:
thanks, it is as I thought... although in theory it should be possible, in practise lots of things would break or brick and it'd be a disaster!
Click to expand...
Click to collapse
In consideration of all the hard bricks on this device, its not even worth trying. You can very easily kill the device...
Sent from Nexus 5 on Slimkat

Categories

Resources