Skip to main content
This section explains how to customize the storage features, such as adding a new partition and mounting the SD card to a specific path.
All Qualcomm SoC UFS device components are validated for the preferred vendor list (PVL). Select the applicable part from the Memory list.

Mount the file system

EXT4 is an open-source file system that’s used on data partitions on the Qualcomm Linux. The EXT4 file system can support volumes with sizes up to 64 ZB, and single files with sizes up to 16 TB with the standard 4 kB block size. For more information about EXT4, see https://opensource.com/article/17/5/introduction-ext4-filesystem. An extent is a range of contiguous physical blocks, improving large-file performance and reducing fragmentation. A single extent in EXT4 can map up to 128 MiB of contiguous space with a 4 kB block size. EXT4 doesn’t limit the number of subdirectories in a single directory, except by the inherent size limit of the directory itself. For example:
  1. Mount /dev/sda3 to /data.
  2. Verify whether the /dev/sda3 partition is mounted.
    Output:
  3. Mount a file system with specific SELinux context options.
Run the mount command to retrieve the exact rootcontext=<> value related to the /dev/sda3.

Mount the SD card to a specific path

SD cards are automounted on card insertion. To manually mount the SD card, run the following commands:
  1. Remount the root partition as read or write-enabled.
  2. Create an SD card directory.
  3. Locate the default path for the SD card directory.
    Output:
  4. If the SD card isn’t formatted as VFAT, format it using the following command.
  5. Mount the SD card to the default path (/sdcard).
    If the SD card has multiple partitions, repeat step 4 to mount each partition.
  6. Verify whether the SD card is mounted.
    Output:

Mount the NVMe card

To format and mount the new or existing NVMe cards using fdisk, do the following:
  1. Create a partition table by running the following command.
    Output:
  2. Reboot the board.
    Locate the mkfs.ext4 binary at /usr/sbin/mkfs.ext4.
  3. Format the /dev/nvme0n1p1 partition.
    Output:
  4. Mount the NVMe partition1 to the media folder.
  5. Verify whether the nvme0n1p1 partition is mounted.
    Output: