Skip to content

The size of userdata partition is reported incorrectly by AGNOS #2

@nanamiwang

Description

@nanamiwang
  • Allocated size
sgdisk --new=21:9932804:15589369 --change-name=21:userdata --typecode=21:FFFF /dev/block/sda
  • df -h output
comma@tici:/data/openpilot$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       9.8G  3.2G  6.2G  34% /
devtmpfs        1.7G     0  1.7G   0% /dev
tmpfs           1.8G   45M  1.7G   3% /dev/shm
tmpfs           353M   40M  313M  12% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
tmpfs           150M  216K  150M   1% /tmp
tmpfs           128M   18M  111M  14% /var
/dev/sda13       74M   44M   25M  65% /firmware
/dev/sda10       28M   20M  7.3M  73% /dsp
/dev/sdf2        35M  4.0M   30M  12% /persist
/dev/sda8       108M   20K  105M   1% /cache
/dev/sda21      1.6G  1.1G  408M  74% /data
/dev/sda7        12M   20K   11M   1% /systemrw
overlay         150M  216K  150M   1% /home
tmpfs           353M  4.0K  353M   1% /run/user/1000
  • fdisk output
comma@tici:/data/openpilot$ fdisk -l /dev/sda
Disk /dev/sda: 59.48 GiB, 63854084096 bytes, 15589376 sectors
Disk model: 64GB-UFS-MT
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 131072 bytes / 131072 bytes
Disklabel type: gpt
Disk identifier: 00000000-0000-0000-0000-000000000000

Device       Start      End Sectors  Size Type
/dev/sda1        6        7       2    8K unknown
/dev/sda2        8      263     256    1M unknown
/dev/sda3      264      391     128  512K unknown
/dev/sda4      392      519     128  512K unknown
/dev/sda5  2068480  6000641 3932162   15G Linux filesystem
/dev/sda6  6000642  9932803 3932162   15G Linux filesystem
/dev/sda7  1442312  1446407    4096   16M Linux filesystem
/dev/sda8  1519112  1551879   32768  128M Linux filesystem
/dev/sda9  1595912  1792519  196608  768M unknown
/dev/sda10 1792520  1989127  196608  768M unknown
/dev/sda11 1989128  2005511   16384   64M unknown
/dev/sda12 2005512  2021895   16384   64M unknown
/dev/sda13 2021896  2042375   20480   80M unknown
/dev/sda14 2042376  2062855   20480   80M Microsoft basic data
/dev/sda15 2062856  2062919      64  256K unknown
/dev/sda16 2062920  2062983      64  256K unknown
/dev/sda17 2062984  2063047      64  256K unknown
/dev/sda18 2063048  2063111      64  256K unknown
/dev/sda19 2063112  2064135    1024    4M unknown
/dev/sda20 2064136  2068231    4096   16M unknown
/dev/sda21 9932804 15589369 5656566 21.6G Linux filesystem

Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition 6 does not start on physical sector boundary.
Partition 7 does not start on physical sector boundary.
Partition 8 does not start on physical sector boundary.
Partition 9 does not start on physical sector boundary.
Partition 10 does not start on physical sector boundary.
Partition 11 does not start on physical sector boundary.
Partition 12 does not start on physical sector boundary.
Partition 13 does not start on physical sector boundary.
Partition 14 does not start on physical sector boundary.
Partition 15 does not start on physical sector boundary.
Partition 16 does not start on physical sector boundary.
Partition 17 does not start on physical sector boundary.
Partition 18 does not start on physical sector boundary.
Partition 19 does not start on physical sector boundary.
Partition 20 does not start on physical sector boundary.
Partition 21 does not start on physical sector boundary.
Partition table entries are not in disk order.
  • fidk looks correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions