[Shield Android TV General] yahoo2016:
Do you want to have rootfs on internal hard disk? You need to find a partition on internal HD to install rootfs, it should be "/dev/sdxx".

Devices for internal emmc and external SD cards are "/dev/mmcblkxpx".

Devices for HDs are "/dev/sdxx".

The following is a link you can try:

http://android.stackexchange.com/questions/5232/how-can-i-view-the-android-internal-partition-table

E.g.,

adb root

adb shell

cat /proc/partitions

root@foster:/ # cat /proc/partitions
major minor #blocks name

253 0 524288 zram0
179 0 15388672 mmcblk0
179 1 2048 mmcblk0p1
179 2 256 mmcblk0p2
179 3 256 mmcblk0p3
179 4 2048 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 6144 mmcblk0p7
179 8 2048 mmcblk0p8
179 9 4096 mmcblk0p9
179 10 4096 mmcblk0p10
179 11 6144 mmcblk0p11
179 12 79 mmcblk0p12
179 13 2048 mmcblk0p13
179 14 2048 mmcblk0p14
179 15 131072 mmcblk0p15
259 0 26112 mmcblk0p16
259 1 4096 mmcblk0p17
259 2 26112 mmcblk0p18
259 3 2097152 mmcblk0p19
259 4 262144 mmcblk0p20
259 5 786432 mmcblk0p21
259 6 2048 mmcblk0p22
259 7 32768 mmcblk0p23
259 8 2048 mmcblk0p24
259 9 8192 mmcblk0p25
259 10 8192 mmcblk0p26
259 11 16384 mmcblk0p27
259 12 8192 mmcblk0p28
259 13 11942287 mmcblk0p29
179 32 31166976 mmcblk1
179 33 31165952 mmcblk1p1

This tells EMMC partition 29 (mmcblk0p29) of 16GB SATV has size about 12GB.

and

ls -al /dev/block/platform/*/by-name :

root@foster:/ # ls -al /dev/block/platform/*/by-name
lrwxrwxrwx root root 2012-12-31 19:00 APP -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2012-12-31 19:00 BMP -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 2012-12-31 19:00 BPF -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-12-31 19:00 CAC -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2012-12-31 19:00 DFI -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-12-31 19:00 DTB -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2012-12-31 19:00 EBT -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-12-31 19:00 EKS -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2012-12-31 19:00 FB -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2012-12-31 19:00 FCT -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 2012-12-31 19:00 LNX -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2012-12-31 19:00 MDA -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 2012-12-31 19:00 MSC -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 2012-12-31 19:00 NCT -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-12-31 19:00 RBL -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-12-31 19:00 RP1 -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-12-31 19:00 RP2 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2012-12-31 19:00 RP3 -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 2012-12-31 19:00 RP4 -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 2012-12-31 19:00 SOS -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2012-12-31 19:00 TBC -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-12-31 19:00 TBC-B -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-12-31 19:00 TOS -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2012-12-31 19:00 UCB -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 2012-12-31 19:00 UDA -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 2012-12-31 19:00 UKS -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2012-12-31 19:00 USP -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2012-12-31 19:00 WB0 -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-12-31 19:00 vendor -> /dev/block/mmcblk0p21

This tells partition 29 is User Data (UDA), partition 17 is dtb, partition 21 is vendor, ....