FORUMS

[INFO] Nexus 7 Partitions!

1,217 posts
Thanks Meter: 2,884
 
Post Reply Email Thread
Here's an output of /proc/mounts, might be help full other devs:

which one is recovery partition does anyone know?

zoneinfo
[email protected]:/proc $ cat mounts
cat mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/sdhci-tegra.3/by-name/APP /system ext4 ro,relatime,user_xatt
r,acl,barrier=1,data=ordered 0 0
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,nosuid,nodev,noatim
e,errors=panic,user_xattr,acl,barrier=1,nomblk_io_ submit,data=ordered 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,nosuid,nodev,noatime
,errors=panic,user_xattr,acl,barrier=1,nomblk_io_s ubmit,data=ordered 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1
023,default_permissions,allow_other 0 0
The Following 2 Users Say Thank You to zedomax For This Useful Post: [ View ] Gift zedomax Ad-Free
28th June 2012, 08:09 PM |#2  
Senior Member
Flag Florida
Thanks Meter: 3,056
 
Donate to Me
More
run
Code:
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
and that should show all partitions.
The Following 2 Users Say Thank You to Indirect For This Useful Post: [ View ] Gift Indirect Ad-Free
28th June 2012, 08:19 PM |#3  
zedomax's Avatar
OP Senior Member
Flag San Francisco, CA
Thanks Meter: 2,884
 
Donate to Me
More
Quote:
Originally Posted by Indirect

run

Code:
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
and that should show all partitions.

Thanks!




C:\Users\max\Downloads\Nexus7Root>adb shell
[email protected]:/ $ ls -l /dev/block/platform/sdhci-tegra.3/by-name/
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
lrwxrwxrwx root root 2012-06-28 11:51 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-06-28 11:51 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-06-28 11:51 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-06-28 11:51 MDA -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-06-28 11:51 MSC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-06-28 11:51 PER -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-06-28 11:51 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-06-28 11:51 UDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-06-28 11:51 USP -> /dev/block/mmcblk0p6
The Following 2 Users Say Thank You to zedomax For This Useful Post: [ View ] Gift zedomax Ad-Free
28th June 2012, 08:30 PM |#4  
Senior Member
Flag Florida
Thanks Meter: 3,056
 
Donate to Me
More
try

Code:
ls -l /dev/block/
and if you see r on the 3rd from last line of each partition, do the following commands:
Code:
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/lnx > lnxfile.bin
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/SOS > SOSfile.bin
The Following User Says Thank You to Indirect For This Useful Post: [ View ] Gift Indirect Ad-Free
28th June 2012, 08:48 PM |#5  
zedomax's Avatar
OP Senior Member
Flag San Francisco, CA
Thanks Meter: 2,884
 
Donate to Me
More
Quote:
Originally Posted by Indirect

try

Code:
ls -l /dev/block/
and if you see r on the 3rd from last line of each partition, do the following commands:
Code:
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/lnx > lnxfile.bin
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/SOS > SOSfile.bin


C:\Users\max\Downloads\Nexus7Root>adb shell
[email protected]:/ $ ls -l /dev/block/
ls -l /dev/block/
brw------- root root 7, 0 2012-06-28 11:51 loop0
brw------- root root 7, 1 2012-06-28 11:51 loop1
brw------- root root 7, 2 2012-06-28 11:51 loop2
brw------- root root 7, 3 2012-06-28 11:51 loop3
brw------- root root 7, 4 2012-06-28 11:51 loop4
brw------- root root 7, 5 2012-06-28 11:51 loop5
brw------- root root 7, 6 2012-06-28 11:51 loop6
brw------- root root 7, 7 2012-06-28 11:51 loop7
brw------- root root 179, 0 2012-06-28 11:51 mmcblk0
brw------- root root 179, 16 2012-06-28 11:51 mmcblk0boot0
brw------- root root 179, 32 2012-06-28 11:51 mmcblk0boot1
brw------- root root 179, 1 2012-06-28 11:51 mmcblk0p1
brw------- root root 179, 2 2012-06-28 11:51 mmcblk0p2
brw------- root root 179, 3 2012-06-28 11:51 mmcblk0p3
brw------- root root 179, 4 2012-06-28 11:51 mmcblk0p4
brw------- root root 179, 5 2012-06-28 11:51 mmcblk0p5
brw------- root root 179, 6 2012-06-28 11:51 mmcblk0p6
brw------- root root 179, 7 2012-06-28 11:51 mmcblk0p7
brw------- root root 179, 8 2012-06-28 11:51 mmcblk0p8
brw------- root root 179, 9 2012-06-28 11:51 mmcblk0p9
drwxr-xr-x root root 2012-06-28 11:51 platform
drwx------ root root 2012-06-28 11:51 vold
[email protected]:/ $


Permission denied for cat
The Following User Says Thank You to zedomax For This Useful Post: [ View ] Gift zedomax Ad-Free
28th June 2012, 08:52 PM |#6  
Senior Member
Flag Florida
Thanks Meter: 3,056
 
Donate to Me
More
yep, that's what I figured but it was still worth a shot. :x

You'll need root. If you can get it before you have to surrender that tab, it'd be great.
28th June 2012, 09:08 PM |#7  
m11kkaa's Avatar
Recognized Developer / Inactive Recognized Contributor
Thanks Meter: 2,163
 
Donate to Me
More
run this one:
Code:
cat /proc/partitions
and this one:
Code:
fdisk -l /dev/block/mmcblk0
this command would be interesting too:
Code:
cat /proc/cmdline
And if the file exists execute "adb pull /proc/config.gz"(or copy it via rootexplorer) and post it here. It's the kernel-config
28th June 2012, 09:18 PM |#8  
Senior Recognized Developer
Thanks Meter: 1,392
 
Donate to Me
More
Cool - these are btw mostly generic tegra names, while most are probably obvious I've "translated" them below.
Quote:
Originally Posted by zedomax

C:\Users\max\Downloads\Nexus7Root>adb shell
[email protected]:/ $ ls -l /dev/block/platform/sdhci-tegra.3/by-name/
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
lrwxrwxrwx root root 2012-06-28 11:51 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-06-28 11:51 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-06-28 11:51 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-06-28 11:51 MDA -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-06-28 11:51 MSC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-06-28 11:51 PER -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-06-28 11:51 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-06-28 11:51 UDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-06-28 11:51 USP -> /dev/block/mmcblk0p6

  1. APP -> system
  2. CAC -> cache
  3. LNX -> boot.img
  4. MDA -> Unknown
  5. MSC -> Misc (bootloader commands and other misc stuff )
  6. PER -> usually a fat partition containing sensor calibration etc. - per device provisioned.
  7. SOS -> recovery.img
  8. UDA -> /data - "user data area"
  9. USP -> Staging


---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------

Quote:
Originally Posted by m11kkaa

run this one:

Code:
cat /proc/partitions
and this one:
Code:
fdisk -l /dev/block/mmcblk0

There's no standard "dos" partition anywhere, so that won't work.
Quote:
Originally Posted by m11kkaa

this command would be interesting too:

Code:
cat /proc/cmdline
And if the file exists execute "adb pull /proc/config.gz"(or copy it via rootexplorer) and post it here. It's the kernel-config

At least cmdline is actually protected from normal users in newer kernels and same with config.gz I believe. Worth a shot though. (FWIW, usually tegra bootloader fills in kernel cmdline rather than hardcoding it in boot.img )
The Following 7 Users Say Thank You to rayman For This Useful Post: [ View ]
28th June 2012, 09:30 PM |#9  
zedomax's Avatar
OP Senior Member
Flag San Francisco, CA
Thanks Meter: 2,884
 
Donate to Me
More
Code:
1|[email protected]:/dev/block/platform/sdhci-tegra.3/by-name $ cat /proc/partitions

/partitions                                                                   <
major minor  #blocks  name

 179        0    7467008 mmcblk0
 179        1      12288 mmcblk0p1
 179        2       8192 mmcblk0p2
 179        3     665600 mmcblk0p3
 179        4     453632 mmcblk0p4
 179        5        512 mmcblk0p5
 179        6      10240 mmcblk0p6
 179        7       5120 mmcblk0p7
 179        8        512 mmcblk0p8
 179        9    6302720 mmcblk0p9
 179       32       2048 mmcblk0boot1
 179       16       2048 mmcblk0boot0
The Following User Says Thank You to zedomax For This Useful Post: [ View ] Gift zedomax Ad-Free
28th June 2012, 09:32 PM |#10  
zedomax's Avatar
OP Senior Member
Flag San Francisco, CA
Thanks Meter: 2,884
 
Donate to Me
More
Config.gz
Here's Config.gz attached
Attached Files
File Type: gz config.gz - [Click for QR Code] (19.2 KB, 401 views)
The Following 3 Users Say Thank You to zedomax For This Useful Post: [ View ] Gift zedomax Ad-Free
28th June 2012, 10:37 PM |#11  
m11kkaa's Avatar
Recognized Developer / Inactive Recognized Contributor
Thanks Meter: 2,163
 
Donate to Me
More
Quote:
Originally Posted by zedomax

[CODE]1|[email protected]:/dev/block/platform/sdhci-tegra.3/by-name $ cat /proc/partitions

.....

4096Bytes are missing. Maybe the bootloader+PartitionTable at first bytes of Nand

Did anyone of you try if there is an bootloader-mode(the usual key-combinations)?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes