Forums - storage of snapdragon flight

10 posts / 0 new
Last post
storage of snapdragon flight
2111403150
Join Date: 15 Aug 15
Posts: 4
Posted: Wed, 2016-06-08 14:31

Hi all,

We want to implement As I refer to the datasheet, the storage should be 32GB eMMC Flash. But when I run "df -h", the avaliable storage only 7.9GB, sudo resize2fs /dev/mmcblk0p13 only add to 10GB, where is the other storge space, confused about this.

 

 

  • Up0
  • Down0
sweetc Moderator
Join Date: 10 Jul 13
Posts: 72
Posted: Wed, 2016-06-08 21:55

Thank you very much for the feedback. This is a known issue with partitioning, we will work to resolve this in the future.

  • Up0
  • Down0
thaydon
Join Date: 1 Jun 17
Posts: 5
Posted: Fri, 2017-09-22 11:13

Is there any update on this? My snapdragon flight has fewer than 10GB as well. We'd like to write a number of high-resolution images to disk and need the full 32 GB of storage space. 

  • Up0
  • Down0
drone_guy
Join Date: 14 Nov 16
Posts: 37
Posted: Sat, 2017-09-23 10:25

Is it possible for you to use the SD card for additional storage?

  • Up0
  • Down0
thaydon
Join Date: 1 Jun 17
Posts: 5
Posted: Sat, 2017-09-23 11:34

Perhaps, but it may cause interference with our GPS application. I am investigating it. It seems silly, however, that there exists 32 GB onboard but we only have access to 10 of it...

  • Up0
  • Down0
drone_guy
Join Date: 14 Nov 16
Posts: 37
Posted: Mon, 2017-09-25 15:35

Hi

It looks like there is a workaround that is simple to implement (I just did a quick test and *seems like it's working - writing persists after reboot*). Definitely back up everything before you try, but it worked without any issues for me. Note that this is not an *official* solution (yet), but those who are willing to experiment, feel free to try.

#list all partitions and confirm that there is partition 23 with 15G of space
cat /proc/partitions

#format partition 23 with ext4 file system
mkfs.ext4 /dev/mmcblk0p23

#create a mount point and mount the partition
mkdir /mnt/extra
mount /dev/mmcblk0p23 /mnt/extra

#verify
df -h

(Before formatting you can also verify that the partition 23 is empty, by using dd and dumping some MB to a file - the contents were all zeros for me, suggesting the partition is empty):

dd if=/dev/mmcblk0p23 of=./dump.bin bs=1M count 100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 1.81124 s, 57.9 MB/s

hexdump dump.bin
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
6400000

(meaning there are 100MB of zeros at the beginning of that partition - you could check the whole thing to make sure it's zeros..)

If this works fine, then you can auto-mount it during boot process.

Alex K

  • Up0
  • Down0
thaydon
Join Date: 1 Jun 17
Posts: 5
Posted: Tue, 2017-09-26 14:09

Thanks Alex! This looks promising. I have two Snapdragons--one older and one brand new. The older one has 23 partitions but the newer one has only 19 paritions. Despite this, the 19th partition on the newer one is unmounted and has ~15 GB of data. I will verify that it is indeed empty and attempt to mount it.

Edit: 

sudo od /dev/mmcblk0p19 | head

0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 167377715000  

pretty sure it's all zero. 

  • Up0
  • Down0
drone_guy
Join Date: 14 Nov 16
Posts: 37
Posted: Tue, 2017-09-26 15:40

Nice. I am trying to track down the purpose of partition 23 (and now 19 as well).. But the fact that it is completely empty and is the last partition, is a good indication is that it's just left-over space. If I am able to confirm from another source, will let you know..

  • Up0
  • Down0
thaydon
Join Date: 1 Jun 17
Posts: 5
Posted: Fri, 2017-09-29 09:15

I tried to automount this partition using /etc/fstab and must have done something wrong. After rebooting the board, the system could no longer boot. Luckily, I was able to rescue it with the serial debug cable, but this meant I had to reflash and reinstall everything on the board.

I know that using the mount command works so I will write a script that runs mount at the beginning instead of editting fstab.

Just a warning to be careful.

Edit:

I've successfully automounted it using a script and crontab.

### Create Mount point

sudo mkdir /mnt/storage

 

### Script

#!/bin/bash

mount /dev/mmcblk0p19 /mnt/storage

 

### Crontab

sudo crontab -e # Sudo necessary for root priveledge mounting.

@reboot /home/linaro/myscript

 

  • Up0
  • Down0
drone_guy
Join Date: 14 Nov 16
Posts: 37
Posted: Fri, 2017-09-29 11:00

Cool. Thanks for posting the automount solution!

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.