我有一台 Android 8.0.0 设备(https://www.tvbox-manufacturer.com/product_category/fire-tv-stick/)以eMMC作为存储介质。
eMMC 是可拆卸的(板上的 BGA 插槽)。
该设备启动并与 eMMC 完美配合。
但是,当我将 eMMC 芯片连接到 Linux 机器(使用 eMMC 到 USB 转换器)时,Linux 机器(Ubuntu 16.04)无法识别其上的分区。
我没有想要实现的具体目标。我只是好奇为什么 Linux 在这个产品中没有检测到分区。因为我在很多其他Android设备上进行过这个实验,但是eMMC分区得到了Linux的识别。我想知道 Android 是否引入了一些更新的分区方法,使分区对用户隐藏。
我尝试了以下工具来列出分区但无济于事:
- g磁盘
- CG磁盘
- 分手了
以下是日志(设备是/dev/sdd
):
- lsblk
Last login: Tue Jan 14 11:39:49 2020 from 192.168.21.145
flash@nandflash:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 29.8G 0 part [SWAP]
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 476M 0 part /boot/efi
├─sda6 8:6 0 190.8G 0 part /
├─sda7 8:7 0 95.4G 0 part /var
└─sda8 8:8 0 615.1G 0 part /home
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 14.9G 0 part
├─sdb2 8:18 0 95.4G 0 part
├─sdb3 8:19 0 977M 0 part
└─sdb4 8:20 0 820.3G 0 part
**sdd 8:48 1 14.7G 0 disk**
sr0 11:0 1 1024M 0 rom
flash@nandflash:~$
- gdisk
flash@nandflash:~$ **sudo gdisk /dev/sdd**
[sudo] password for flash:
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Command (? for help): p
**Disk /dev/sdd: 30777344 sectors, 14.7 GiB**
Logical sector size: 512 bytes
Disk identifier (GUID): 1D109CAC-AD7E-4231-A398-D1B1FB515752
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 30777310
Partitions will be aligned on 2048-sector boundaries
Total free space is 30777277 sectors (14.7 GiB)
Number Start (sector) End (sector) Size Code Name
Command (? for help):
- cgdisk
Warning! Non-GPT or damaged disk detected! This program will attempt to
convert to GPT form or repair damage to GPT data structures, but may not
succeed. Use gdisk or another disk repair tool if you have a damaged GPT
disk.
Press any key to continue....
- parted
flash@nandflash:~$ sudo parted /dev/sdd
GNU Parted 3.2
**Using /dev/sdd**
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/sdd: unrecognized disk label
Model: Generic STORAGE DEVICE (scsi)
Disk /dev/sdd: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted)
谁能解释一下为什么会发生这种情况?
Android 设备使用相同的 eMMC 可以正常启动。
file -sk 命令的输出如下所示:
flash@nandflash:~$ sudo file -sk /dev/sdd
/dev/sdd: data
flash@nandflash:~$
添加十六进制转储:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
............................................................. ................
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000200 78 1E BB 3F C4 C2 B2 3F C6 DC 9B E6 0B D9 0E 67 x..?...?.......g
00000210 EA 82 D0 91 53 2F 05 91 73 A2 9C CD 2D F4 E1 DF ....S/..s...-...
00000220 0E 7B 19 88 85 04 DC F9 AD B0 A8 B2 AD 4B 81 E5 .{...........K..
00000230 F3 4C F3 9C 9F 51 E4 E9 DF 0B ED 83 71 E3 31 75 .L...Q......q.1u
00000240 D4 F9 A4 51 CD 4A E5 1C DE B6 42 57 EC 32 59 C5 ...Q.J....BW.2Y.
00000250 75 1D F6 9A 12 6E 6C BD DD FD 8D 0B 3A 8D E3 9A u....nl.....:...
00000260 9A 3E 2F 2E 8D EC 9C 0A 32 0D 9F 57 3D C5 3F 09 .>/.....2..W=.?.
00000270 6E 7F 18 27 4F 5E 89 CF 55 90 B9 7F 36 9E 68 90 n..'O^..U...6.h.
00000280 96 41 AC C1 44 08 4C E9 A3 83 08 E7 92 E9 E1 62 .A..D.L........b
00000290 14 2D 6D 36 5C 36 12 7D D4 07 01 22 BA 56 06 47 .-m6\6.}...".V.G
000002A0 16 66 C0 6A B4 A5 31 A8 92 93 52 7C E6 61 6C DB .f.j..1...R|.al.