5 Replies Latest reply on Feb 25, 2015 5:27 AM by mhahn

    SD Card memory utilization

    SAHER_MAQSOOD

      Hello,

      When i copy iot image to SD card,insert it into galileo G2, and connect the board to my system using serial cable, it shows the board as removable disk with only 49 MB space. The SD card is 16 GB. I want to make sure I utilize full space of by SD card as i have to install a few libraries in it. Why is it shown as a 49MB? Is it normal or am I missing anything here.

       

      P2.png

       

       

      Regards
      Saher Maqsood

        • 1. Re: SD Card memory utilization
          mhahn

          that's intended behaviour. The image comes with a 50MB FAT partition (that's what you see) and a 2nd ext4 partition. In order to copy there you'd have to scp over directly to the 2nd partition. For instance using "WinSCP" if you're on Windows. In order to resize the 2nd partition to the full rest of the 16GB card I'm not sure how to do on Windows. You may however use a Linux system (e.g. Live system - see e.g galileo-debian / Wiki / How to expand the root filesystem to use the entire SD card) to do so. e.g. using "gparted"

          • 2. Re: SD Card memory utilization
            SAHER_MAQSOOD

            Hi,

            Can you explain what you mean by 2nd ext4 partition? Is this partition empty for now? Can i resize the first partition (the one I am currently on - 50MB) to 16 GB?

             

            Regards
            Saher Maqsood

            • 3. Re: SD Card memory utilization
              mhahn

               

              Can you explain what you mean by 2nd ext4 partition?

              there is a 2nd partition which is ext4 filesystem rather than FAT. It has lots of benefits like ownerships, journaling, ... in contrast to FAT.

               

              Is this partition empty for now?

              no, it contains pretty much everything apart from the kernel which has to be on the FAT partition in order for the bootloader to load it

              Can i resize the first partition (the one I am currently on - 50MB) to 16 GB?

               

              you may resize to a bigger FAT partition - however, it's not a completely trivial task. 

              The question is why you would want to do so - as Linux is anyways on the 2nd partition. For the 2nd partition - yes, it can be resized to fill the complete rest of the flash drive (minus 50 MB FAT partition)

              • 4. Re: SD Card memory utilization
                SAHER_MAQSOOD

                Hi mhahn,

                I was thinking to change the FAT partition as all the libraries that i need and everything else is installed there. i wanted to save myself the trouble of doing the whole process again. But i think when i copy my image to the new partition (non-FAT), everything (installed libraries) would be transferred to the new partition. Am I right? I am on windows so I will see how to change the partition.

                 

                Regards
                Saher Maqsood

                • 5. Re: SD Card memory utilization
                  mhahn

                  if you do use the IoT devkit SD card image your Linux WILL mostly reside on the 2nd partition (ext4 fs) which is not visible to Windows.

                  And yes, you should put most of your data there. You could just move from within Linux data you put on the FAT partition