what is /does the pb99img do to the hboot - Desire General

i have installed the oxgen bravo table , what does the img do , is it just a new image for fastboot /bootloader

It resizes your partitions on your phone. It reduces the /system and /cache partitions and gives you more or less double the /data partition. The data partition is where all your apps get stored so it gives you more space. There is nothing special really, just resizes the partitions.

Related

[Q] Error formatting /data! Error formatting /cache!

Using CWM 5.0.2.0, when I try to format /data, I get:
Error formatting /data!
When I try to format /cache, I get:
Error formatting /cache!
This all started because I decided to try Albinoman's AOSP 4.2 ROM. This is what happened:
1. Booted into CWM 5.0.2.0, made a nandroid backup of stock GB ROM.
2. Installed Albinoman's ROM using CWM, wiped /cache and /data.
3. Booted Albinoman's ROM, no problems. Decided I wanted to backup and restore some apps in the old ROM using Titanium Backup.
4. Restored nandroid backup of stock ROM. When it rebooted, all was well.
5. Used Titanium Backup to back up my apps.
6. Installed Albinoman's ROM again.
7. Cleared /data, it was fine. Cleared /cache. Stuck at "formatting" for half an hour.
8. Rebooted back to recovery and tried it again. Couldn't find E:.
9. Tried letting it boot. Stuck on the boot animation for 30-minutes.
10. Wipe everything and re-flash. Tried again. Still stuck on boot animation.
11. Manually unmount and tried to format /data and /cache, and I get the error messages.
I had installed Convert2Ext4_no_data_limit_normal_dalvik.zip to the stock ROM about 4-months ago, not sure if that makes a difference or not.
When I search, it looks like the news is bad... most people that had this error gave up and believed it to be hardware NAND failure. Anything I can do to confirm or rule out NAND failure?
UPDATE: Managed to flash RUU, but results were interesting. It worked and it boots, home screen is blank (no HTC widgets), and apps I'd installed are still there. Clear Storage and Factory Reset does not get rid of them! I can manually uninstall apps, but when I reboot, they come back. I guess the /data must be stuck in some kind of read-only state.
GnatGoSplat said:
Using CWM 5.0.2.0, when I try to format /data, I get:
Error formatting /data!
When I try to format /cache, I get:
Error formatting /cache!
This all started because I decided to try Albinoman's AOSP 4.2 ROM. This is what happened:
1. Booted into CWM 5.0.2.0, made a nandroid backup of stock GB ROM.
2. Installed Albinoman's ROM using CWM, wiped /cache and /data.
3. Booted Albinoman's ROM, no problems. Decided I wanted to backup and restore some apps in the old ROM using Titanium Backup.
4. Restored nandroid backup of stock ROM. When it rebooted, all was well.
5. Used Titanium Backup to back up my apps.
6. Installed Albinoman's ROM again.
7. Cleared /data, it was fine. Cleared /cache. Stuck at "formatting" for half an hour.
8. Rebooted back to recovery and tried it again. Couldn't find E:.
9. Tried letting it boot. Stuck on the boot animation for 30-minutes.
10. Wipe everything and re-flash. Tried again. Still stuck on boot animation.
11. Manually unmount and tried to format /data and /cache, and I get the error messages.
I had installed Convert2Ext4_no_data_limit_normal_dalvik.zip to the stock ROM about 4-months ago, not sure if that makes a difference or not.
When I search, it looks like the news is bad... most people that had this error gave up and believed it to be hardware NAND failure. Anything I can do to confirm or rule out NAND failure?
UPDATE: Managed to flash RUU, but results were interesting. It worked and it boots, home screen is blank (no HTC widgets), and apps I'd installed are still there. Clear Storage and Factory Reset does not get rid of them! I can manually uninstall apps, but when I reboot, they come back. I guess the /data must be stuck in some kind of read-only state.
Click to expand...
Click to collapse
Did you reflash the Convert2Ext4 mod after you flashed the new rom? See this thread and read the top part after 'IMPORTANT:' There is a link in there to the old thread as well with a lot of info.
I did try that, but my /data and /cache are still unable to be written to, wiped, or formatted.
e2fsck won't touch /data, it has a superblock error. It finds errors on /cache and appears to be fixing them, but when I re-run it, the same errors are still there.
GnatGoSplat said:
I did try that, but my /data and /cache are still unable to be written to, wiped, or formatted.
e2fsck won't touch /data, it has a superblock error. It finds errors on /cache and appears to be fixing them, but when I re-run it, the same errors are still there.
Click to expand...
Click to collapse
Since you flashed the RUU, did you install an EXT4 compatible kernel or are you using the stock kernel? Maybe try restoring your working nandroid backup, then run the .zip to revert Convert2Ext4. Or even better, if you have a nandroid from before you installed the EXT4 mod.
DaggerDave said:
Since you flashed the RUU, did you install an EXT4 compatible kernel or are you using the stock kernel? Maybe try restoring your working nandroid backup, then run the .zip to revert Convert2Ext4. Or even better, if you have a nandroid from before you installed the EXT4 mod.
Click to expand...
Click to collapse
Wiping /data and /cache are enough to revert the mod.
Sent from my Galaxy Nexus using Tapatalk 2
Uggh, definitely doesn't sound so good. Since the RUU won't work, I'd say check out this thread:
http://forum.xda-developers.com/showthread.php?t=2123966
Yep, my partitions are no longer EXT4. #1 is EXT3 and #2 is EXT2. I guess that means Convert2Ext4 is no longer in play and the problem is unrelated.
Here is my parted:
Code:
parted /dev/block/mmcblk0 print
Model: MMC SEM08G (sd/mmc)
Disk /dev/block/mmcblk0: 7944MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 8192B 797MB 797MB primary ext3
2 797MB 1007MB 210MB primary ext2
3 1007MB 7944MB 6937MB primary fat32 lba
Yeah, I read that thread and it didn't sound encouraging! I get pretty much the same errors.
Even rm 1 and rm 2 don't remove the partitions. It's like they're read-only. I'm using the parted from CWM 5.0.2.0. Should I use a different one?
Also when I try e2fsck on it:
Code:
~ # e2fsck -pf /dev/block/mmcblk0p1
e2fsck -pf /dev/block/mmcblk0p1
/dev/block/mmcblk0p1: recovering journal
e2fsck: unable to set superblock flags on /dev/block/mmcblk0p1
~ # e2fsck -pf /dev/block/mmcblk0p2
e2fsck -pf /dev/block/mmcblk0p2
/dev/block/mmcblk0p2: Unconnected directory inode 34817 (/???)
/dev/block/mmcblk0p2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
~ # e2fsck -f /dev/block/mmcblk0p2
e2fsck -f /dev/block/mmcblk0p2
e2fsck 1.41.6 (30-May-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Unconnected directory inode 34817 (/???)
Connect to /lost+found<y>? y
yes
Pass 4: Checking reference counts
Inode 2 ref count is 2, should be 3. Fix<y>? yes
Inode 34817 ref count is 3, should be 2. Fix<y>? y
yes
Pass 5: Checking group summary information
Block bitmap differences: +274 +(449--510) +(645--701) -(139524--139541) -(139
85--139800)
Fix<y>? yes
Free blocks count wrong for group #0 (7919, counted=7799).
Fix<y>? y
yes
Free blocks count wrong for group #17 (7934, counted=7929).
Fix<y>? yes
Free blocks count wrong (198324, counted=198199).
Fix<y>? y
yes
Free inodes count wrong for group #17 (2048, counted=2045).
Fix<y>? yes
Directories count wrong for group #17 (0, counted=1).
Fix<y>? y
yes
Free inodes count wrong (51189, counted=51186).
Fix<y>? yes
/dev/block/mmcblk0p2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/block/mmcblk0p2: 14/51200 files (14.3% non-contiguous), 6601/204800 blocks
When I tried it without the -p is when it looks above like it's fixing something, but it really didn't fix anything because it does the same thing when I try e2fsck again (as if it's read-only).
Is MMCBLK0 one physical NAND chip? If so, how come I can read/write/erase the /emmc with no problems? Isn't that just another partition on the same NAND disk?
If /data and /cache are really bad, is there any possible way to do an equivalent of a low-level format on the NAND and repartition?
Is booting CWM 5.0.2.0 and using adb shell supposed to have root privileges?
I can't modify the partition table using either parted or fdisk. I even tried zeroing the partitions using dd if=/dev/zero of=/dev/block/mmcblk0p1, p2, and even the whole of mmcblk0, but nothing actually gets written.
Since it seems like the NAND is probably irreparably borked, can I approach this problem from a different angle?
Can I partition my sdcard with an ext3 and ext2 partition, and tell Android to use those as /data and /cache respectively?
What in Android maps /dev/block/mmcblk0p1 to /data and /dev/block/mmcblk0p2 to /cache, and can I change those to point to partitions on sdcard?
Or is that hard-coded into the kernel?
GnatGoSplat said:
Since it seems like the NAND is probably irreparably borked, can I approach this problem from a different angle?
Can I partition my sdcard with an ext3 and ext2 partition, and tell Android to use those as /data and /cache respectively?
What in Android maps /dev/block/mmcblk0p1 to /data and /dev/block/mmcblk0p2 to /cache, and can I change those to point to partitions on sdcard?
Or is that hard-coded into the kernel?
Click to expand...
Click to collapse
It is hard coded into the kernel. To get root in adbshell try typimg su. This seems to be happening to more and more people as these phones get up there in age.
GnatGoSplat said:
Since it seems like the NAND is probably irreparably borked, can I approach this problem from a different angle?
Can I partition my sdcard with an ext3 and ext2 partition, and tell Android to use those as /data and /cache respectively?
What in Android maps /dev/block/mmcblk0p1 to /data and /dev/block/mmcblk0p2 to /cache, and can I change those to point to partitions on sdcard?
Or is that hard-coded into the kernel?
Click to expand...
Click to collapse
The answer is yes to both actually. Thrle boot.img would need to be customized. The best way is a flashable zip in recovery. Data and cache would need to be wiped manually ad recovery will not pick this up. Expect poorer performance though as SD cards tend to be slower than built in storage.
Sent from my Galaxy Nexus using Tapatalk 2
Thanks! So it sounds like the way to make this work is to compile a custom kernel? I don't know the first thing about it, but I think I could learn.
This is only in the kernel, so I could flash any 3rd party D-Inc ROM and just flash my customized kernel and it will see /data and /cache on the sdcard?
I could probably get one of those fast Class 10 cards if it turns out this is too slow, but I do recall changing vold.fstab once to fool Android into seeing /emmc as /sdcard and the /emmc (as /sdcard) didn't benchmark all that much faster than a real sdcard. I'm assuming /data and /cache are the same speed as /emmc since they're on the same mmcblk0 device, so I'm thinking maybe sdcard performance would be acceptable.
This actually sounds like it could be a better long-term solution than replacing the motherboard because no telling if a new motherboard will fail soon too.
The motherboard should be reliable. Emmc may die. Especially considering how old current dincs are.
I was talking about the boot.img which is not ROM independent and kernels aren't always either. Best idea is a flashable zip to modify the ram disk but I need the partition names if you decide to do it. I recommend keeping cache and data in the same order.
Also there would need to be a flashable wipe script to wipe data and cache.
Sent from my Galaxy Nexus using Tapatalk 2
Sorry, I wasn't very clear. By motherboard failing, I was assuming NAND is soldered to the motherboard, and if that's the case, ruined NAND = ruined motherboard. I had thought maybe I could buy a DInc with smashed LCD and good motherboard and just swap into mine (because mine is MINT condition), but I thought if I do that, I could very well end up in the same place as I'm in now and using sdcard would be more of a guarantee I wouldn't have to worry about this again.
I think I understand, the boot.img and kernel aren't exactly the same thing, but the kernel is part of boot.img? Or is it only the RAMDisk that needs changed, or both? You mentioned partition names, are you offering to make these modifications for me?
By same order, do you mean because mmcblk0p1 is /data, mmcblk0p2 is /cache, and mmcblkp3 is /emmc, I should partition my sdcard the same way with data 1st, cache 2nd, and sdcard 3rd?
Should I partition it with the phone, PC, or does it matter? Should the sizes of the new /data and /cache be the same size as original, or is there any reason I should make them larger?
Could I wipe the new /data and /cache simply by booting into Recovery and using adb shell and format them?
Also, the commands I was issuing in adb shell were from booting into CWM Recovery. Is it possible that mode can't write because I didn't login as root using the su command? I hadn't thought that would be the problem seeing as how the RUU and Android itself can't write to /data and /cache and other people managed to fix partition problems without needing to run su.
GnatGoSplat said:
Sorry, I wasn't very clear. By motherboard failing, I was assuming NAND is soldered to the motherboard, and if that's the case, ruined NAND = ruined motherboard. I had thought maybe I could buy a DInc with smashed LCD and good motherboard and just swap into mine (because mine is MINT condition), but I thought if I do that, I could very well end up in the same place as I'm in now and using sdcard would be more of a guarantee I wouldn't have to worry about this again.
I think I understand, the boot.img and kernel aren't exactly the same thing, but the kernel is part of boot.img? Or is it only the RAMDisk that needs changed, or both? You mentioned partition names, are you offering to make these modifications for me?
By same order, do you mean because mmcblk0p1 is /data, mmcblk0p2 is /cache, and mmcblkp3 is /emmc, I should partition my sdcard the same way with data 1st, cache 2nd, and sdcard 3rd?
Should I partition it with the phone, PC, or does it matter? Should the sizes of the new /data and /cache be the same size as original, or is there any reason I should make them larger?
Could I wipe the new /data and /cache simply by booting into Recovery and using adb shell and format them?
Also, the commands I was issuing in adb shell were from booting into CWM Recovery. Is it possible that mode can't write because I didn't login as root using the su command? I hadn't thought that would be the problem seeing as how the RUU and Android itself can't write to /data and /cache and other people managed to fix partition problems without needing to run su.
Click to expand...
Click to collapse
The NAND is likely soldered to the motherboard, so you're right about that.
To answer your first question, yeah, the kernel is part of the boot.img. The other part is the RAMdisk which is the only thing that needs to be changed.
Partition it in the same order. Probably parted via adb shell. 100MB for cache and at least 750MB for data. Sizes don't matter too much but you want enough.
adb shell has root access automatically in recovery. The issue is hardware most likely so your proposed workaround may be the only option.
First plan of attack is to find the partition names which would be mmcblk1p1 and mmcblk1p1 if you partition the sdcard the same way as the ROM is partitioned. Ideally you need to be able to fix the partitions themselves. I'll try to give more info later.
I copied the partition sizes from mmcblk0, so here's what I have on my 16GB SD card:
Code:
Model: SD SA16G (sd/mmc)
Disk /dev/block/mmcblk1: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 8192B 797MB 797MB primary ext2
2 797MB 1007MB 210MB primary ext2
3 1007MB 16.0GB 15.0GB primary fat32 lba
mmcblk1p1 for /data
mmcblk1p2 for /cache
mmcblk1p3 for /sdcard
Will that work? I couldn't get mmcblk1p1 to show up as ext3. I did use mke2fs -j /dev/block/mmcblk1p1 to format it and I've read ext3 = ext2+journal, so I guess the fact it's not saying "ext3" under filesystem is okay?
GnatGoSplat said:
I copied the partition sizes from mmcblk0, so here's what I have on my 16GB SD card:
Code:
Model: SD SA16G (sd/mmc)
Disk /dev/block/mmcblk1: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 8192B 797MB 797MB primary ext2
2 797MB 1007MB 210MB primary ext2
3 1007MB 16.0GB 15.0GB primary fat32 lba
mmcblk1p1 for /data
mmcblk1p2 for /cache
mmcblk1p3 for /sdcard
Will that work? I couldn't get mmcblk1p1 to show up as ext3. I did use mke2fs -j /dev/block/mmcblk1p1 to format it and I've read ext3 = ext2+journal, so I guess the fact it's not saying "ext3" under filesystem is okay?
Click to expand...
Click to collapse
You would be correct. Yes, that's fine.
Thanks, what should be my next steps?
GnatGoSplat said:
Thanks, what should be my next steps?
Click to expand...
Click to collapse
I'll have to find time to make scripts that will modify the ramdisk, unless you can just extract it and make the changes yourself.
That would be great, I really appreciate all the help so far.
Do you think ramdisk is the only place a change will need to be made?
I was trying to see if I could figure out how to extract ramdisk from boot.img and found a perl script, but I haven't gotten around to playing with it.

[Q] Best ROM for space

Hi,
I've had to bring my Desire out of retirement until the end of my contract.
I am currently running Cyanogen Mod 10.0.0 but I am down to little space and apps don't update and I can't add new ones.
I have an SD card with 1 GB ext3 storage on it.
Which is the best configuration/ROM to allow me to have enough space to download all the apps I want without significant lag please?
Cheers
Do you understand current configuration first to understand why you're low on space?
- Have you run the A2SD commands from terminal emulator i.e. moved apps and dalvik to sd-ext?
- Is your /data (internal memory) partition full, or is it your 1GB sd-ext? Could you create a bigger partition?
- Check your /data partition with an app like 'DiskUsage', you may have some updated system apps like Play Store on /data which you could move back to /system.
If you have genuinely run out of space on that ROM, the limiting issue is stock hboot which I assume you are running. Even with apps and dalvik moved to sd-ext, you only have 147MB space for app data which can still run out.
Switch to a different hboot (requires s-off) with smaller system, and a ROM which moves apps and dalvik to sd-ext. I recommend one of Mildwild's, MW10 based on redux will fit onto OxygenR2 hboot with 332MB /data partition for instance.
I also recommend to repartition your sdcard with max 2GB ext4 partition if you have enough spare sd space. ext4 is also slightly faster than ext3.
eddiehk6 said:
Do you understand current configuration first to understand why you're low on space?
- Have you run the A2SD commands from terminal emulator i.e. moved apps and dalvik to sd-ext?
- Is your /data (internal memory) partition full, or is it your 1GB sd-ext? Could you create a bigger partition?
- Check your /data partition with an app like 'DiskUsage', you may have some updated system apps like Play Store on /data which you could move back to /system.
If you have genuinely run out of space on that ROM, the limiting issue is stock hboot which I assume you are running. Even with apps and dalvik moved to sd-ext, you only have 147MB space for app data which can still run out.
Switch to a different hboot (requires s-off) with smaller system, and a ROM which moves apps and dalvik to sd-ext. I recommend one of Mildwild's, MW10 based on redux will fit onto OxygenR2 hboot with 332MB /data partition for instance.
I also recommend to repartition your sdcard with max 2GB ext4 partition if you have enough spare sd space. ext4 is also slightly faster than ext3.
Click to expand...
Click to collapse
Thanks,
I'll try to deal with everything.
apps and dalvik have been moved using terminal emulator and yes, it's the 147MB that is the issue, not the ext3.
I have s-on
So if I have the s-off can I incorporate my ext3 or ext4 with internal storage to create a much bigger internal storage?
Cheers
PoshCat1 said:
Thanks,
I'll try to deal with everything.
apps and dalvik have been moved using terminal emulator and yes, it's the 147MB that is the issue, not the ext3.
I have s-on
So if I have the s-off can I incorporate my ext3 or ext4 with internal storage to create a much bigger internal storage?
Cheers
Click to expand...
Click to collapse
Not quite
S-OFF is merely an enabler, in this case it allows you to change hboot.
It has nothing to do with your sd-ext partition. This is handled by the A2SD script. Your internal memory still won't read 'internal + sd-ext' like it is currently, but the sd-ext is still doing its job.
What I would recommend:
- Titanium backup all user apps, backup contacts to Google, SMS with SMS backup and restore if you want
- Flash 2.3.3. RUU from here, put PB99IMG.zip on root of sd card and boot to bootloader, accept it when found
- Run Revolutionary to gain s-off (search for guides)
- Flash 4EXT recovery (see my sig, use fastboot or 4EXT app)
- Switch hboot using fastboot (to OxygenR2 if using Mildwild 10)
- Reboot to recovery, full wipe ("wipe all partitions except sd card" option)
- Flash ROM.zip
- Restore
eddiehk6 said:
Not quite
S-OFF is merely an enabler, in this case it allows you to change hboot.
It has nothing to do with your sd-ext partition. This is handled by the A2SD script. Your internal memory still won't read 'internal + sd-ext' like it is currently, but the sd-ext is still doing its job.
What I would recommend:
- Titanium backup all user apps, backup contacts to Google, SMS with SMS backup and restore if you want
- Flash 2.3.3. RUU from here, put PB99IMG.zip on root of sd card and boot to bootloader, accept it when found
- Run Revolutionary to gain s-off (search for guides)
- Flash 4EXT recovery (see my sig, use fastboot or 4EXT app)
- Switch hboot using fastboot (to OxygenR2 if using Mildwild 10)
- Reboot to recovery, full wipe ("wipe all partitions except sd card" option)
- Flash ROM.zip
- Restore
Click to expand...
Click to collapse
Thanks,
I will try that when I get some time.

[Q] Cannot boot by /system on SDCard

I had move the /system partition on sd card, and modified the init file to mount sdcard partition when booting. But it failed and the phone stayed at logo screen.
I create a FAT32 partition and ext4 partitions on sd card with MiniTool partition Wizard, and mount them under /mnt directory.
Then, copy /system partition to sdcard, by cp -a /system /mnt/system.
Finally, I extract the boot partition, modified the init file in ramdisk directory, repack and flash back to internal memory.
The mount info located in init.smdk4x12.rc as mount_all fstab.smdk4x12. So I modify the mount point of /system as sdcard partition.
The phone cannot boot, and stay at logo screen.
However, I use the same method to /cache and /data partitions, it works very well.
So, is there anything wrong with this method for /system partition?
Thanks for your help!!!

[IDEA] Android without SD. S8500

Hello. I can see that Android use Kernel on SD but write NAND Partitions (Data/Cache/System). It is Possible to make fota BOOTING from zImage ,,pushed" into any of this tree partitions, without SD? Not LOOP or Emulated NAND. Three Partitions, NO BADA, No SD. Possible?
ghoslslender124 said:
Hello. I can see that Android use Kernel on SD but write NAND Partitions (Data/Cache/System). It is Possible to make fota BOOTING from zImage ,,pushed" into any of this tree partitions, without SD? Not LOOP or Emulated NAND. Three Partitions, NO BADA, No SD. Possible?
Click to expand...
Click to collapse
FOTA can't read zImage from ext4 partitions as far as i know
We still have no any way to flash zImage(boot.img) as RAW to Onenand via Multiloader, and then need changes to FOTA
 @adfree maybe you know how to flash zImage this way by multiloader? Something like you did with LK_boot for wave3, but we need app_compressed.bin for our FOTA
@volk204
From ext4 NO
but FAT32 like SD YES
Maybe make 4'th partition (FAT32 where we copy zImage) next to data( Now /data /cache and /system ) like /boot or something? 10mb is all what we need, we can cut it from Data (about 1550mb)
ghoslslender124 said:
@volk204
From ext4 NO
but FAT32 like SD YES
Maybe make 4'th partition (FAT32 where we copy zImage) next to data( Now /data /cache and /system ) like /boot or something? 10mb is all what we need, we can cut it from Data (about 1550mb)
Click to expand...
Click to collapse
Yeah, or keep one bada fat16 partition and put /cache on img file on it. Or put /cache and /data in the same ext4 partition.
Problem : path for kernel change depending on partition layout.
ex :
Code:
kernelImage = L"/e/boot_2.img"
for 1st fat partition of SDcard
Code:
kernelImage = L"/g/boot_2.img"
for 2nd fat partition of internal memory
But what is path for 1st fat partition of internal memory ?
Maybe someone want to try all alphabet letters... not me
Maybe someone know how these partition are mounted and labelled...

Default internal memory partition size

<STRIKE>Hi again,
Who hasn't touched their MMC partition? Can I have the default partition table of the device from "parted"? I tried to flash stock img into my phone but it eventually stopped when it was flashing the cache. I presume it's due to the partitioning of the MMC not corresponding on what's on the IMG file. ?</STRIKE>
<BOLD>Update: Found it</BOLD>
https://forum.xda-developers.com/redmi-1s/general/dev-redmi-1s-partition-table-t2907391

Categories

Resources