Hikey 970 memory issue


#1

Greetings to everyone!

I have a Hikey 970 and on the specification it says that it has 64 GB of disk memory.

After installing Linux (Lebuntu) on the board I find out that I’m running out of memory.

It is possible that AOSP wasn’t removed completely from the board?

I attached a status of my memory below.


#2

It is possible that AOSP wasn’t removed completely from the board?

Kind of.

It looks like the system was not repartitioned so it is likely there are partitions that are unused. Try running fdisk on the various /dev/sdX files (sda, sdb, etc). You can also get some clues from the dmesg logs when the UFS hardware partitions are parsed.

Note that partitioning on UFS is a little complex. There is a hardware partitioning layer (where each partition appears as a /dev/sdX device) and a software partitioning layer (each hardware partition is further subdivided to give device nodes such as /dev/sda1, /dev/sda2, /dev/sdb1, etc).


#3

You want to do the following:
confirm that your root file system device is actually /dev/sdd15 by typing:

mount | grep " / "

You should see something like:
/dev/sdd15 on / type ext4 (rw,relatime,data=ordered).
Then you resize the root file system - no loss of data:

sudo resize2fs /dev/sdd15

Then you should end up with about 24G of free space.
best regards,
O