3 Replies Latest reply on Feb 26, 2016 10:57 PM by Rishabh Tulsian

    Resize galileo devkit image partition

    Rishabh Tulsian

      I am trying to resize/increase the size of the root partition from 1.3GB to the size of my SD Card 8GB/16GB. I came across this post Resize SD card linux. But the steps mentioned in there dont work for me. When I do fsck.ext3 on the image file I get the following error

       

      ext2fs_open2: Bad magic number in super-block

      fsck.ext3: Superblock invalid, trying backup blocks...

      fsck.ext3: Bad magic number in super-block while trying to open iot-devkit-201510010757-mmcblkp0-galileo.direct

      ...

       

      My guess is that this is not a ext filesystem? How do I find out what filesystem it is? This is the url I used to download the image http://downloadmirror.intel.com/25384/eng/iot-devkit-201510010757-mmcblkp0-galileo.direct.xz

        • 1. Re: Resize galileo devkit image partition
          joe-iot

          Hey Rishabh - The absolute 100% easiest way is to use parted. I personally boot up a Fedora VM in Virtualbox and resize it using gparted. It takes seconds.

           

          xNm3q.png

           

          Cheers,

          -Joe

          • 2. Re: Resize galileo devkit image partition
            joe-iot

            You piqued my curiosity, I checked and it looks like an ext3 filesystem.

            
            root@galileo:/etc# df -Th
            Filesystem     Type      Size  Used Avail Use% Mounted on
            /dev/root      ext3       14G  1.3G   12G  10% /
            devtmpfs       devtmpfs  116M     0  116M   0% /dev
            tmpfs          tmpfs     116M     0  116M   0% /dev/shm
            tmpfs          tmpfs     116M  8.4M  108M   8% /run
            tmpfs          tmpfs     116M     0  116M   0% /sys/fs/cgroup
            tmpfs          tmpfs     116M   83M   34M  72% /tmp
            tmpfs          tmpfs     116M   24K  116M   1% /var/volatile
            /dev/mmcblk0p1 vfat       50M   17M   34M  33% /media/card
            

             

            What you should do is use DD to install it to the sd card. I use dcfldd because I like the output more, but you get the idea.

             #on your laptop
            sudo dcfldd if=~/Documents/intelGalileo/iot-devkit-201510010757-mmcblkp0-galileo.direct of=/dev/disk4  bs=8M statusinterval=4
            

             

            Then run gparted on a linux machine or virtualbox to do the resizing.

             

            Cheers,

            -Joe

            • 3. Re: Resize galileo devkit image partition
              Rishabh Tulsian

              Perfect that worked.