Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,274 Members 38,803 Now Online
XDA Developers Android and Mobile Development Forum

KFHD Partitions

Tip us?
 
timmytim
Old
(Last edited by timmytim; 4th October 2012 at 04:20 PM.)
#1  
timmytim's Avatar
Senior Member - OP
Thanks Meter 1,097
Posts: 1,093
Join Date: Jan 2011
Location: MIUI Porting Team

 
DONATE TO ME
Default KFHD Partitions

I'm jumping and starting to develop for this device and just got the mount points. This is for anyone else that cares


Quote:
lrwxrwxrwx root root 2012-10-03 20:37 boot -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2012-10-03 20:37 bootloader -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-10-03 20:37 cache -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2012-10-03 20:37 crypto -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-10-03 20:37 dfs -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-10-03 20:37 dkernel -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-10-03 20:37 efs -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-10-03 20:37 idme -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-10-03 20:37 misc -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-10-03 20:37 recovery -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-10-03 20:37 system -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2012-10-03 20:37 userdata -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2012-10-03 20:37 xloader -> /dev/block/mmcblk0p1
My Devices
LG G3 - Metallic Black
HTC One M8 - Silver
LG G Pad 8.3 - White
The Following User Says Thank You to timmytim For This Useful Post: [ Click to Expand ]
 
kinfauns
Old
#2  
kinfauns's Avatar
Developer Committee / Senior Moderator
Thanks Meter 3,079
Posts: 1,687
Join Date: Jan 2012
Quote:
Originally Posted by timmytim View Post
I'm jumping and starting to develop for this device and just got the mount points. This is for anyone else that wants that cares
Not to pick nits here, but those are actually the partition names -> device names. I hope you don't mind if I hijack your thread temporarily, but I think the following information is related.

Earlier this evening, a friend of mine let me borrow her KFHD for a few days with a "you break it, you bought it" proviso. Naturally, I've been playing around with it a bit.

I've also been looking at the way the storage space has been laid out on the KFHD. I think the most interesting change for most people will be the way the userdata partition is being used. I haven't seen this information posted anywhere, so I just wanted to share for the curious.

On the original KF, there are separate userdata and media partitions. The userdata partition gets mounted on /data and it's used mostly to store apps, settings, etc. The media partition gets mounted on /sdcard and that's used to store movies, music, books and other large files.

For the KFHD, the media partition is gone and the bulk of the storage space has been allotted to the userdata partition. That partition still gets mounted on /data, but /data now also contains a media directory. The KFHD then uses /data/media as the root for a virtual filesystem that gets mounted on /sdcard.

There have been at least a few users who mentioned repartitioning the original KF to get more space for apps by sacrificing space on /sdcard and vice versa. No such tradeoffs are required on the KFHD, because all of the user's files now get stored on one filesystem. As a result, the storage space gets a chance to be used more efficiently. I just thought that was a very tidy solution and an upgrade to the way things were done in the original.

Now, to get somewhat back on topic, here are the partition table details for the KFHD...

Code:
# parted /dev/block/mmcblk0 print
Error: Can't have overlapping partitions.                                 
Model: MMC MAG2GA (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name        Flags
 1      131kB   262kB   131kB                xloader
 2      262kB   524kB   262kB                bootloader
 3      524kB   590kB   65.5kB               idme
 4      590kB   606kB   16.4kB               crypto
 5      606kB   608kB   2048B                misc
 6      1049kB  11.5MB  10.5MB               dkernel
 7      11.5MB  213MB   201MB   ext4         dfs
 8      213MB   230MB   16.8MB  ext4         efs
 9      230MB   238MB   8389kB               recovery
10      238MB   246MB   8389kB               boot
11      246MB   1175MB  929MB   ext4         system
12      1175MB  1857MB  682MB   ext4         cache
13      1857MB  15.6GB  13.8GB  ext4         userdata
XDA Developers - Developer Committee / Senior Moderator
The Following 2 Users Say Thank You to kinfauns For This Useful Post: [ Click to Expand ]
 
timmytim
Old
#3  
timmytim's Avatar
Senior Member - OP
Thanks Meter 1,097
Posts: 1,093
Join Date: Jan 2011
Location: MIUI Porting Team

 
DONATE TO ME
I dont mind at all. I've always referred to those as mount points but thinking about it now I realize I was wrong, lol.

Thanks man
My Devices
LG G3 - Metallic Black
HTC One M8 - Silver
LG G Pad 8.3 - White
 
magikstar
Old
#4  
Senior Member
Thanks Meter 62
Posts: 469
Join Date: Oct 2008
Location: Douarnenez (finistère, bretagne, france)

 
DONATE TO ME
Quote:
Originally Posted by kinfauns View Post
Not to pick nits here, but those are actually the partition names -> device names. I hope you don't mind if I hijack your thread temporarily, but I think the following information is related.

Earlier this evening, a friend of mine let me borrow her KFHD for a few days with a "you break it, you bought it" proviso. Naturally, I've been playing around with it a bit.

I've also been looking at the way the storage space has been laid out on the KFHD. I think the most interesting change for most people will be the way the userdata partition is being used. I haven't seen this information posted anywhere, so I just wanted to share for the curious.

On the original KF, there are separate userdata and media partitions. The userdata partition gets mounted on /data and it's used mostly to store apps, settings, etc. The media partition gets mounted on /sdcard and that's used to store movies, music, books and other large files.

For the KFHD, the media partition is gone and the bulk of the storage space has been allotted to the userdata partition. That partition still gets mounted on /data, but /data now also contains a media directory. The KFHD then uses /data/media as the root for a virtual filesystem that gets mounted on /sdcard.

There have been at least a few users who mentioned repartitioning the original KF to get more space for apps by sacrificing space on /sdcard and vice versa. No such tradeoffs are required on the KFHD, because all of the user's files now get stored on one filesystem. As a result, the storage space gets a chance to be used more efficiently. I just thought that was a very tidy solution and an upgrade to the way things were done in the original.

Now, to get somewhat back on topic, here are the partition table details for the KFHD...

Code:
# parted /dev/block/mmcblk0 print
Error: Can't have overlapping partitions.                                 
Model: MMC MAG2GA (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name        Flags
 1      131kB   262kB   131kB                xloader
 2      262kB   524kB   262kB                bootloader
 3      524kB   590kB   65.5kB               idme
 4      590kB   606kB   16.4kB               crypto
 5      606kB   608kB   2048B                misc
 6      1049kB  11.5MB  10.5MB               dkernel
 7      11.5MB  213MB   201MB   ext4         dfs
 8      213MB   230MB   16.8MB  ext4         efs
 9      230MB   238MB   8389kB               recovery
10      238MB   246MB   8389kB               boot
11      246MB   1175MB  929MB   ext4         system
12      1175MB  1857MB  682MB   ext4         cache
13      1857MB  15.6GB  13.8GB  ext4         userdata
hello,
excuse me,i have a question: how have you got that? What's command have you write?
-> adb shell
-> su
-> parted
?
HTC Desire Z : COOLOS MIUI V4 3.2.22
Alcatel OT 986 : MIUI V4 3.3.22
SE XMP : ExMIUIv4.3 3.2.22
Motorola Droid 4 XT894 : [JB]Mentor's Rom
 
prokennexusa
Old
#5  
prokennexusa's Avatar
Recognized Contributor
Thanks Meter 954
Posts: 2,637
Join Date: Jan 2012
Location: Petaluma

 
DONATE TO ME
Thumbs up Android (Linux) Command Parted - Example

Quote:
Originally Posted by magikstar View Post
hello,
excuse me,i have a question: how have you got that? What's command have you write?
-> adb shell
-> su
-> parted
?
magikstar,

The command is: parted here is examples on how the command is used:

  1. Connect a Android Device to the PC USB, then reboot into recovery
  2. At the command prompt type the command: adb shell
  3. Open parted with the command: parted/dev/block/mmcblk0
  4. To see The list of partitions and the capacity on the sdcard, type the command: print
The above example was not the Kindle, it is just to be used as an example.

---------- Post added at 07:15 PM ---------- Previous post was at 07:12 PM ----------

Quote:
Originally Posted by timmytim View Post
I'm jumping and starting to develop for this device and just got the mount points. This is for anyone else that cares
timmytim,

Thank you for posting these Partition names, this is helpful.
Best Regards, Chris Bryant (prokennexusa Team Member)


The Noob Guys, where Simplicity is Key......

Skype: prokennexusa (Online 10am to 2am PST)
Main Line: (707) 774-5923

KFFA Bug Tracking: http://mantis.canonicaldev.com
Pastebin for Info: http://pastebin.canonicaldev.com/

Facebook: prokennexusa@gmail.com
Twitter: #prokennexus

Search XDA for Noob............More to come!
 
bobcat131
Old
#6  
Member
Thanks Meter 0
Posts: 43
Join Date: Sep 2013
Location: Venice
Default How do I pull the 9, 10, & 11 blocks to a Windows 7 hard drive for future flashing?

Quote:
Originally Posted by timmytim View Post
I'm jumping and starting to develop for this device and just got the mount points. This is for anyone else that cares
Is there a way using ADB to pull the boot, recovery, and system partitions to my hard drive for flashing if needed?
 
Gilly10
Old
#7  
Gilly10's Avatar
Senior Member
Thanks Meter 154
Posts: 490
Join Date: Sep 2012
Quote:
Originally Posted by bobcat131 View Post
Is there a way using ADB to pull the boot, recovery, and system partitions to my hard drive for flashing if needed?
Yes there is, see STEP 1. here - http://forum.xda-developers.com/show....php?t=2128848

Or this:

Code:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img" # This will take a few minutes
adb pull /sdcard/boot0block.img
adb pull /sdcard/stock-boot.img
adb pull /sdcard/stock-recovery.img
adb pull /sdcard/stock-system.img # This will take a few minutes
Credit to Hashcode
Current Devices:
--------------------------
Nexus 7 2012 (KK 4.4.4)
Samsung Galaxy Tab 3 8.0 (KK 4.4.2)
Acer Iconia B1-710 (JB 4.1.2)
Samsung Galaxy Ace (CM 11.0)
Samsung Galaxy Y (GB 2.3.6)

--------------------------
 
bobcat131
Old
#8  
Member
Thanks Meter 0
Posts: 43
Join Date: Sep 2013
Location: Venice
Default Backup

Thanks for this quick answer. Where will these images be found - on the sdcard or on the hard drive?
 
Gilly10
Old
#9  
Gilly10's Avatar
Senior Member
Thanks Meter 154
Posts: 490
Join Date: Sep 2012
Quote:
Originally Posted by bobcat131 View Post
Thanks for this quick answer. Where will these images be found - on the sdcard or on the hard drive?
I think they are first saved to the SD Card then can pulled from there to your Hard Drive with the adb pull commands.
Current Devices:
--------------------------
Nexus 7 2012 (KK 4.4.4)
Samsung Galaxy Tab 3 8.0 (KK 4.4.2)
Acer Iconia B1-710 (JB 4.1.2)
Samsung Galaxy Ace (CM 11.0)
Samsung Galaxy Y (GB 2.3.6)

--------------------------
 
bobcat131
Old
#10  
Member
Thanks Meter 0
Posts: 43
Join Date: Sep 2013
Location: Venice
Default backup

Thanks again. I'll try on my KFSOWI today.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Share Your Thoughts Anonymously with A Minimalist Social Network

Nowadays, almost everyone has a second life onthe Internet. Among the best … more

Enable Heads Up Notifications For The Sprint Galaxy S3

Heads up notifications, in case you didn’t already know, are an experimental … more

Android One Goes Live in India!

Android One is a Google initiative set to bring an AOSP-like experience tosome emergingmarkets like India, … more

XDA and LeaseWeb: Win Free Server Trial and Moto 360

As you might recall from a previousBehind the Scenesarticle we wrote, XDA’s … more