Who would like a 1GB System Partition??? - G2 and Desire Z Android Development

THIS IS FOR DEVELOPMENT ONLY!!!! THIS IS ONLY A CONCEPt FORGETTING THE 1GB SYSTEM PARTITION.
30-Jan-13 update
Ok so using this method I now have a ported rom from the Samsung Galaxy S3 that has a 680+mb system booting on my G2. If any of you feel like helping me get it up and running PM me or you can download it from here http://sourceforge.net/projects/sgs3forg2/files/FJB4G2-orig-runtime.zip/download and see for yourself...
MAJOR EDIT: SO THE UPLOAD MUST HAVE BEEN CORRUPTED FOR THE EM1.zip. IT IS NON FUNCTIONAL. ALL CREDIT TO THE ONE I WILL PUT UP GOES TO FLINNY. I IN NO WAY DID ANYTHING TO CREATE THIS ROM JUST ALTERED THE MOUNTS TO GET THE 1GB SYSTEM PARTITION. THE FILE IS NAMED f10.zip. it is his 10.1 base.
Ok so I know its been a while but I have something I can not keep away from the community. Anyone want to get a 1GB System and 549MB Data partition??? Yes thats right we can swap the partitions. here is a link to some screen shots and another to, with the permission of nik3r, the modified Elitemod Rom. just go into recovery, format all partitions(sorry you will have to start over in order to swap the partitions, well for now that is), and flash the EM1.zip
http://www.mediafire.com/?ka8yq4hzs6upj
Ok so this all started after my wife got her new phone the samsung galaxy s3. in love with the phone and what it could do but unable to, due to financial constraints and TMobiles unwillingness to give me one for free like they did my wife, I set forth trying to find a way to port its OS to our G2. finally i have found a way, or at least now the space in which to put it. now will begin the porting phase. hence this thread, I bring you this solution to our space issue cause really is 1.3GB for G2 or 1GB for DZ partition for data really needed???
So here is what I did...
1. First I got android sdk all setup
2. Then I downloaded the android kitchen
3. Also downloaded the Elitemod Rom from nik3r's thread and set it up in the android kitchen
4. In the android kitchen I extracted the kernel and ramdisk from the boot.img
5. I editted all the init files in the BOOT-EXTRACTED/boot.img-ramdisk directory and changed the mount section of the init.rc to
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
mount yaffs2 /dev/block/mmcblk0p26 /system
mount yaffs2 /dev/block/mmcblk0p26 /system ro remount
mount yaffs2 /dev/block/mmcblk0p25 /data nosuid nodev
mount yaffs2 [email protected] /cache nosuid nodev
and the init.vision.rc mounts i also swapped
on early-fs
mkdir /system
mkdir /data 0771 system system
mkdir /cache 0770 system cache
mkdir /devlog 0700 root root
mount ext4 /dev/block/mmcblk0p26 /system wait ro barrier=1
setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
mount ext4 /dev/block/mmcblk0p25 /data wait noatime nosuid nodev barrier=1 noauto_da_alloc
mount ext4 /dev/block/mmcblk0p27 /cache wait noatime nosuid nodev barrier=1
mount ext4 /dev/block/mmcblk0p28 /devlog wait noatime nosuid nodev barrier=1
6. now in order for it to boot right i had to get the files to go to the right place so i editted the updater-script and changed the mount for system to /dev/block/mmcblk0p26 (which as you know is the normal data partition) and the data mount to /dev/block/mmcblk0p25( normally system) now the files are going to places we want and the init files on boot remount the system on 0p26 and data on 0p25 (in reverse from normal) but it boots. so here we go lets get the life put back in this phone now we have the space.
Mad props to nik3r for his rom and permission to use it
UPDATE: For some reason the wifi got broken but to fix there is the MOD_Elitekernel zip found in the link at the top of this post that will fix that. I also put EdKeys wifi calling as well, have it running now on my phone so let me know if you find anything else.
UPDATE 2: I have put a hacked version of S Voice from the galaxy S3 in the link for the G2 *TO BE USED WITH THIS PROJECT ONLY*.
UPDATE 3: there must be some confusion with this. This is not a new rom with some timeframe to get it working. I have a fully opperational rom with no problems with apps or anything right now. This is about a mod that can be adapted to any rom or as brought up gapps which will be uploaded here tomorrow. My point is that any rom should be able to be altered this way.

So this means you're giving us Nature UX in the near future? Good luck :good: also does this open up multi booting possibilities (proper multi booting, not anything like Boot Manager)? 'Cause that'd be awesome, but would there need to be a special kernel?

WOW, Congrats man! Looking forward to this! As if the G2 will ever die! Pffft! And Kudos To nik3r for all his work towards this community!
BUT COME BACKKKKKK nik3r, we miss you!!

HTCDreamOn said:
So this means you're giving us Nature UX in the near future? Good luck :good: also does this open up multi booting possibilities (proper multi booting, not anything like Boot Manager)? 'Cause that'd be awesome, but would there need to be a special kernel?
Click to expand...
Click to collapse
working on one of those... not sure what it would take for multiboot... could look into it once my main task is done -> SGS3 to G2

So, this would allow me to install more apps and less moving apps to sd card? Noob question, but I really do not know the answer.
Sent from my HTC Vision using xda app-developers app

Less apps, lager rom, kinda like custom mtd partions for older devices. Probably would need to have an ext partition to hold apps if you need a lot... gotta say I've been waiting for something like this!
Sent from my HTC Vision using xda premium

So all roms need to be modefied in order to get this to work? I can go back to my previous rom without problems cause partitions are only mounted in different order by this rom? Just to be shure...
And multitasking wil benefit a lot of this?

Yes, the updater script just writes system to the data partition and since the init files are in the boot.img.they mount the "data" partition as /system and "system" partition as /data. Minor alterations to any rom would take advantage of this work around. And yes you can swap back and forth between a bacckup and this or any other altered rom but just remember in recovery(for now) formating system clears data and factory reset (clearing data) deletes the rom.
ineedone said:
So all roms need to be modefied in order to get this to work? I can go back to my previous rom without problems cause partitions are only mounted in different order by this rom? Just to be shure...
And multitasking wil benefit a lot of this?
Click to expand...
Click to collapse

Oke i wiped all partitions with 4ext, installed rom, rebooted, but now it hangs on bootlogo?

It does take a min to boot... remember there's no cache. What does logcat say????
ineedone said:
Oke i wiped all partitions with 4ext, installed rom, rebooted, but now it hangs on bootlogo?
Click to expand...
Click to collapse

I really mean the htc bootlogo. I can boot into recovery and when i take a look at the partition table, i see systeem is still 549 and there is a 500mb swap partition.. have no knowledge of logcat but i can try and see later tonight when I'm home.
Edit: data partition is now 549

ineedone said:
I really mean the htc bootlogo. I can boot into recovery and when i take a look at the partition table, i see systeem is still 549 and there is a 500mb swap partition.. have no knowledge of logcat but i can try and see later tonight when I'm home.
Edit: data partition is now 549
Click to expand...
Click to collapse
Did you do changes in ramdisk?
Sent from my HTC Vision using xda app-developers app

EnZl said:
Did you do changes in ramdisk?
Sent from my HTC Vision using xda app-developers app
Click to expand...
Click to collapse
as i stated in the OP... yes i did change the mounting in the init.rc and init.vision.rc in the ramdisk. once the updater script sends the info tho the partitions i needed to edit those to make it boot with it making /dev/block/mmcblk0p26(originally data) the system mount. same for data mount is now the 0p25 partition

ineedone said:
I really mean the htc bootlogo. I can boot into recovery and when i take a look at the partition table, i see systeem is still 549 and there is a 500mb swap partition.. have no knowledge of logcat but i can try and see later tonight when I'm home.
Edit: data partition is now 549
Click to expand...
Click to collapse
Oke forget this post, I had the wrong partition info, and forgot about the 500mb swap on my sd because i don't use it, sorry
This is the partition table after installing this rom:
------------------ Info -------------------
mount point | fs | size | free
system ext4 549.2MiB 539.3MiB
data ext4 1.0GiB 792.8MiB
cache ext4 295.3MiB 290.5MiB
sdcard fat32 28.7GiB 12.8GiB
sd-ext ext4 129MiB 108.9MiB
swap swap 513MiB -
Current Rom: unknown
There are some errors in the recover.log of 4ext touch recovery, which i included. Maybe someone can help me out

ineedone said:
Oke forget this post, I had the wrong partition info, and forgot about the 500mb swap on my sd because i don't use it, sorry
This is the partition table after installing this rom:
------------------ Info -------------------
mount point | fs | size | free
system ext4 549.2MiB 539.3MiB
data ext4 1.0GiB 792.8MiB
cache ext4 295.3MiB 290.5MiB
sdcard fat32 28.7GiB 12.8GiB
sd-ext ext4 129MiB 108.9MiB
swap swap 513MiB -
Current Rom: unknown
There are some errors in the recover.log of 4ext touch recovery, which i included. Maybe someone can help me out
Click to expand...
Click to collapse
you have to remember that recoveries still look to the 0p25 as system but i have a way to show you if it is installing right.
reboot into recovery
plug phone into usb and usb into computer - make sure adb works... type in a terminal or command prompt "adb shell" and hit enter
you should be in an android shell... you should see this ~ #
then type df and hit enter - this will show the partitions and how they are mounted
select to install the rom and as soon as it starts press the up arrow and hit enter (if the up arrow does not bring up the df command just type it)
do this repeatedly and you will watch as the rom is installed, the space on and which partition is what.
let me know
ok so an update I have gotten Flinny's latest 10.1 to work also but I will not put it out until/ if I get his permission to do so

[/SIZE]
OdiemanSAM said:
you have to remember that recoveries still look to the 0p25 as system but i have a way to show you if it is installing right.
reboot into recovery
plug phone into usb and usb into computer - make sure adb works... type in a terminal or command prompt "adb shell" and hit enter
you should be in an android shell... you should see this ~ #
then type df and hit enter - this will show the partitions and how they are mounted
select to install the rom and as soon as it starts press the up arrow and hit enter (if the up arrow does not bring up the df command just type it)
do this repeatedly and you will watch as the rom is installed, the space on and which partition is what
Click to expand...
Click to collapse
Here is the output:
Partitions seem to change and i lose 500MB some how
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk0p25
1099608 18840 1080768 2% /system
/dev/block/mmcblk0p26
1099608 18840 1080768 2% /data
/dev/block/mmcblk1p2 127936 16404 111532 13% /sd-ext
/dev/block/mmcblk1p1 30102144 16812160 13289984 56% /sdcard
/dev/block/mmcblk0p26
562384 10216 552168 2% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk0p25
562384 10216 552168 2% /system
/dev/block/mmcblk0p26
562384 10216 552168 2% /data
/dev/block/mmcblk1p2 127936 16404 111532 13% /sd-ext
/dev/block/mmcblk1p1 30102144 16815296 13286848 56% /sdcard
/dev/block/mmcblk0p25
562384 10216 552168 2% /data
~ # df
also from previous recovery.log:
About to install:
EM1-1.zip
Continue install?
-- Installing: /sdcard/Download/EM1-1.zip
Finding update package...
I:Update location: /sdcard/Download/EM1-1.zip
Opening update package...
Installing update...
package_extract_file: no system/bin/backuptool.sh in package
set_perm: chown of /tmp/backuptool.sh to 0 0 failed: No such file or directory
set_perm: chmod of /tmp/backuptool.sh to 777 failed: No such file or directory
about to run program [/tmp/backuptool.sh] with 2 args
run_program: execv failed: No such file or directory
run_program: child exited with status 1
Creating filesystem with parameters:
Size: 1143992320
Block size: 4096
Blocks per group: 32768
Inodes per group: 7760
Inode size: 256
Journal blocks: 4363
Label:
Blocks: 279295
Block groups: 9
Reserved block group size: 71
Created filesystem with 11/69840 inodes and 9114/279295 blocks
warning: wipe_block_device: Discard failed
Initiating EliteMod ICS 120728
================================
Designed for HTC Desire Z/G2
Applying AOKP m6 and gapps...
minzip: Extracted file "/...........................................
.....................................................snip
minzip: Extracted file "/system/xbin/su"
package_extract_file: no system/bin/backuptool.sh in package
set_perm: chown of /tmp/backuptool.sh to 0 0 failed: No such file or directory
set_perm: chmod of /tmp/backuptool.sh to 777 failed: No such file or directory
about to run program [/tmp/backuptool.sh] with 2 args
run_program: execv failed: No such file or directory
run_program: child exited with status 1
package_extract_file: no system/bin/modelid_cfg.sh in package
set_perm: chown of /tmp/modelid_cfg.sh to 0 0 failed: No such file or directory
set_perm: chmod of /tmp/modelid_cfg.sh to 777 failed: No such file or directory
about to run program [/tmp/modelid_cfg.sh] with 2 args
run_program: execv failed: No such file or directory..............................................
.......................
minzip: Extracted file "/data/local/postsetup/undervolt.txt"
Applying EliteKernel 120728...
set_perm: chown of /system/etc/init.d/04mountsddl to 0 0 failed: No such file or directory
set_perm: chmod of /system/etc/init.d/04mountsddl to 775 failed: No such file or directory
set_perm: chown of /system/etc/init.d/11apps2sd to 0 0 failed: No such file or directory
set_perm: chmod of /system/etc/init.d/11apps2sd to 775 failed: No such file or directory
set_perm: chown of /system/etc/init.d/61swap2sd to 0 0 failed: No such file or directory
set_perm: chmod of /system/etc/init.d/61swap2sd to 775 failed: No such file or directory
set_perm: chown of /system/etc/init.d/64swapmarker to 0 0 failed: No such file or directory
set_perm: chmod of /system/etc/init.d/64swapmarker to 775 failed: No such file or directory
set_perm: chown of /system/xbin/virtuous_oc to 0 0 failed: No such file or directory
set_perm: chmod of /system/xbin/virtuous_oc to 775 failed: No such file or directory
about to run program [/sbin/busybox] with 3 args
minzip: Extracted file "/tmp/dump_image"
minzip: Extracted file "/tmp/mkbootimg"
minzip: Extracted file "/tmp/mkbootimg.sh"
Extracting Kernel files...
minzip: Extracted file "/tmp/unpackbootimg"
minzip: Extracted file "/tmp/zImage"
Installing kernel...
about to run program [/tmp/dump_image] with 3 args
about to run program [/tmp/unpackbootimg] with 3 args
BOARD_KERNEL_CMDLINE no_console_suspend=1
BOARD_KERNEL_BASE 4000000
about to run program [/tmp/mkbootimg.sh] with 1 args
minzip: Extracted file "/tmp/vision_wipe_efs"
about to run program [/tmp/vision_wipe_efs] with 1 args
Backing up partition /dev/block/mmcblk0p13 to /sdcard/part13backup-1358877146.bin ...
Backing up partition /dev/block/mmcblk0p14 to /sdcard/part14backup-1358877146.bin ...
Wiping partition /dev/block/mmcblk0p13...
Wiping partition /dev/block/mmcblk0p14...
Successfully wiped partitions 13 and 14.script result was []
EliteMod ICS installed successfully!
Credits to all the amazing devs that made this possible! Thank You!
Install from sdcard complete.
..................................................................
it also seems like only some files get written to data partition around 200mb, nothing to system...

you have dual mounts!!!! system and data are both mounted to both partitions. go into mounts windows in recovery and unmount both system and data partitions... then try again.

OdiemanSAM said:
you have dual mounts!!!! system and data are both mounted to both partitions. go into mounts windows in recovery and unmount both system and data partitions... then try again.[/QUOTE
mounted them last time because they didn't show up in fist instance :silly:
output:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
/dev/block/mmcblk0p26
1099608 31892 1067716 3% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
/dev/block/mmcblk0p26
1099608 136220 963388 12% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
/dev/block/mmcblk0p26
1099608 288248 811360 26% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16827968 13274176 56% /sdcard
/dev/block/mmcblk0p25
562384 10216 552168 2% /data
~ # dfFilesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
/dev/block/mmcblk0p26
1099608 31892 1067716 3% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
/dev/block/mmcblk0p26
1099608 136220 963388 12% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16824752 13277392 56% /sdcard
/dev/block/mmcblk0p26
1099608 288248 811360 26% /system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 188504 32 188472 0% /dev
/dev/block/mmcblk0p27
302356 4804 297552 2% /cache
/dev/block/mmcblk1p1 30102144 16827968 13274176 56% /sdcard
/dev/block/mmcblk0p25
562384 10216 552168 2% /data
~ # df
Click to expand...
Click to collapse

so is it working for you now???
UPDATED OP

Sorry , still on htc bootlogo
Only files seems to be written to data
Is there a way to view if/what data is written to the different partitions or boot ? Or do i need to install aditional gapps?

Related

[Q] apps2sd - not working... ?

hi,
i am not sure what i am doing wrong here, I am using pinky's ROM and I have the default and used ROM manager to partition the SD card to a 512 MB ext3 and the remainder 14 GB as FAT32.
I have set the EXT4 module is enabled and App2SD is set to external.
But I still cant get the apps to install to SD, using the method above to check it. The Ext3 partition is being seen, but the symlinks are correct.
Any ideas?
Heres a dump from my CMD prompt
C:\android\tools>adb shell
sh-3.2# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 207.6M 0 207.6M 0% /dev
tmpfs 207.6M 0 207.6M 0% /mnt/asec
/dev/block/mtdblock3 250.0M 181.6M 68.4M 73% /system
/dev/block/mtdblock5 147.6M 12.0M 135.6M 8% /data
/dev/block/mtdblock4 40.0M 1.1M 38.9M 3% /cache
tmpfs 8.0M 0 8.0M 0% /app-cache
/dev/block/mtdblock5 147.6M 12.0M 135.6M 8% /system/mnt/data
/dev/block/mmcblk0p2 457.4M 70.1M 362.9M 16% /system/sd
/dev/block/vold/179:1
14.6G 158.4M 14.5G 1% /mnt/sdcard
/dev/block/vold/179:1
14.6G 158.4M 14.5G 1% /mnt/secure/asec
sh-3.2# cd /data/app
cd /data/app
sh-3.2# pwd
pwd
/data/app
help anyone???
The native apps2sd option has nothing to do with apps2sd+, set it to internal. To see if apps2sd+ is working proply use a file explorer to navigate to the /data/app directory and look at the availible space, if its the same as your ext partition. Its working
Sent from my HTC Desire using Tapatalk

[Q] Not enough space left in data with this table

I have some trouble with my newly installed ROM (RCMixHD)
Filesystem Size Used Available Use% Mounted on
tmpfs 206.5M 0 206.5M 0% /dev
/dev/block/mtdblock4 40.0M 1.4M 38.6M 3% /cache
/dev/block/mtdblock3 250.0M 125.9M 124.1M 50% /system
/dev/block/mtdblock5 147.6M 147.4M 188.0K 100% /data
/dev/block/mmcblk0p1 3.2G 232.9M 2.9G 7% /sdcard
/dev/block/mmcblk0p2 458.5M 181.9M 252.1M 42% /sd-ext
Obviously I can't seem to boot up because it can't load the system data in the dalvik-cache, so I just thought I could clear up the dalvik-cache and give it a reboot, now I'm like this but still it doesn't seem to boot up:
Filesystem 1K-blocks Used Available Use% Mounted
tmpfs 211420 0 211420 0% /dev
/dev/block/mtdblock4 40960 1428 39532 3% /cache
/dev/block/mtdblock3 256000 128924 127076 50% /system
/dev/block/mtdblock5 151168 70296 80872 47% /data
/dev/block/mmcblk0p1 3310900 238440 3072460 7% /sdcard
/dev/block/mmcblk0p2 469475 186257 258172 42% /sd-ext
Did I miss something? Or maybe I was just unpatient?
looks like after all it wasn't a good idea... do I really need to flash back up the rom from scratch and not sync contacts and anything like that?
c:\android-sdk-windows\platform-tools>adb shell logcat
--------- beginning of /dev/log/main
I//system/xbin/busybox( 64): run-parts: applet not found
I/logwrapper( 64): /system/xbin/busybox terminated by exit(1)
after all it looks like a bug in the contacts list...

[Q] Changing size of Partitions?

Currently my partitions look like this:
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 206.5M 0 206.5M 0% /dev
/dev/block/mtdblock4 40.0M 8.5M 31.5M 21% /cache
/dev/block/mtdblock3 250.0M 120.9M 129.1M 48% /system
/dev/block/mtdblock5 147.6M 70.7M 76.9M 48% /data
But when I next boot, /data/dalvik-cache will balloon to ~60MB so I'll be stuck with 15MB left of my data partition.
I was thinking, if I could take 100MB or so from my system partition and add it to my data partition, this would make everything much more awesome. I'm prepared to reformat my phone (currently using CM7-RC3) to do this, but have no idea how I'd go about it.
Also it'd be great if my /system partition mounted RW on boot (I've got Alpharev, etc)
Have you visited this?
http://forum.xda-developers.com/showthread.php?t=806321 <<< Custom MTD partitions

[Q][S-ON] system/data partitions exchange,can this be done ?

S-on, unlocked users,cannot modify partition table, but can write anything to this partitons, or maybe it is just my way of thinking ;p Correct me if im wrong.
Partitions on my WFS are:
$ df -h
size used available mounted
/dev/block/mtdblock3 260M 137M 122,2M /system
/dev/block/mtdblock5 150M 127M 23M /data
/dev/block/mtdblock4 35M 2,3M 32,7M /cache
/dev/block/mtdblock5 150M 127M 23M /cache/download
The Question is:
Can /dev/block/mtdblock3 be mounted as /data ?
And /dev/block/mtdblock5 be mounted as /system ?
Can boot.img be patched to boot from /dev/block/mtdblock5 ?
This would give 150M for CM7 which is more then enough ,and 260M for data !
xys007 said:
S-on, unlocked users,cannot modify partition table, but can write anything to this partitons, or maybe it is just my way of thinking ;p Correct me if im wrong.
Partitions on my WFS are:
$ df -h
size used available mounted
/dev/block/mtdblock3 260M 137M 122,2M /system
/dev/block/mtdblock5 150M 127M 23M /data
/dev/block/mtdblock4 35M 2,3M 32,7M /cache
/dev/block/mtdblock5 150M 127M 23M /cache/download
The Question is:
Can /dev/block/mtdblock3 be mounted as /data ?
And /dev/block/mtdblock5 be mounted as /system ?
Can boot.img be patched to boot from /dev/block/mtdblock5 ?
This would give 150M for CM7 which is more then enough ,and 260M for data !
Click to expand...
Click to collapse
I don't think its possible. Even if you mount /data as /system and /system as /data it might result in force close of these apps
You'd need s-off to play with internal partitions.

[Q] GPE 5.0.1 Lollipop: Is it possible to write to /system/media/audio/ringtones?

I am trying to copy two of my ringtones into the /system folder of the phone, but the device is not letting me, it keeps failing on the copy command. Anyone know if this is possible?
I am doing the following:
su
mount -o remount,rw /system
cd /storage/ext_sd
cp r1.ogg /system/media/audio/ringtones/​
BTW, the filesystem appears to have been re-mounted in read-write mode, because the output of the "mount" command shows /system to be mounted "rw".
I have tried the above commands via an interactive adb shell, as well as through the "terminal emulator" application and I keep getting the same failure.
Thx!
this should really go in the [email protected] thread
r2d-two said:
I am trying to copy two of my ringtones into the /system folder of the phone, but the device is not letting me, it keeps failing on the copy command. Anyone know if this is possible?
I am doing the following:
su
mount -o remount,rw /system
cd /storage/ext_sd
cp r1.ogg /system/media/audio/ringtones/​
BTW, the filesystem appears to have been re-mounted in read-write mode, because the output of the "mount" command shows /system to be mounted "rw".
I have tried the above commands via an interactive adb shell, as well as through the "terminal emulator" application and I keep getting the same failure.
Thx!
Click to expand...
Click to collapse
all you have to do is put them in a folder named ringtones in the sdcard and the phone will show them in you ringtone choices
I put all the Sense ringtones on my developer edition / GPe conversion this way.
same with alarms and notifications
r2d-two said:
I keep getting the same failure.
Click to expand...
Click to collapse
Which is ?
I think your problem is not permissions but space ...
Have you verified that you have enough space remaining in your system partition ?
GPE system partition is known to be tight.
Besides if you modify system partition you won't get OTAs ..
you should follow @clsA advice. I copied my ringtons/alarms/notifications in appropriates folders in my sdcard and the result is absolutely the same....
Thanks for your replies and suggestions. I have specific reasons (perhaps wrong ones) to want to store the ringtone files in /system as opposed to either sdcard. I will open a separate post about that.
With regards to writing to /system, I have since re-installed the OS, but I think you are right in that the filesystem was full.
The output of "df" now shows only 1.2MB left on the filesystem. The 2 files I have been trying to write unto it are 270KB and 16KB each. So, I just re-tried the same commands and I was able to write the two files.
The only other change I made was that I disabled the setting in SuperSU which does the "mount namespace separation". So I am not sure if that made a difference or if the filesystem was full.
I do understand that modifying /system will prevent me from doing OTA GPE updates.
Thanks!
I'm on LP 5.01 on my Nexus 10 and I also wanted to write to my /system folder but noticed there is no free space to do so. This is on a factory default reload.
[email protected]:/system/app # df
df
Filesystem Size Used Free Blksize
/dev 549.6M 32.0K 549.6M 4096
/sys/fs/cgroup 549.6M 0.0K 549.6M 4096
/mnt/asec 549.6M 0.0K 549.6M 4096
/mnt/obb 549.6M 0.0K 549.6M 4096
/system 643.7M 643.7M 0.0K 4096
/cache 519.7M 8.8M 510.9M 4096
/data 27.3G 5.2G 22.1G 4096
/factory 19.7M 4.1M 15.6M 4096
/mnt/shell/emulated 27.3G 5.2G 22.1G 4096
/storage/emulated 549.6M 0.0K 549.6M 4096
/storage/emulated/0 27.3G 5.2G 22.1G 4096
/storage/emulated/0/Android/obb 27.3G 5.2G 22.1G 4096
/storage/emulated/legacy 27.3G 5.2G 22.1G 4096
/storage/emulated/legacy/Android/obb 27.3G 5.2G 22.1G 4096
It let me do it when I was on LP 5.00
This issue seems to be generalized with Android 5. It is discussed in this thread : http://forum.xda-developers.com/htc-one-m8/general/gpe-partition-free-space-5-0-1-ota-t2963992

Categories

Resources