3 Replies Latest reply on May 28, 2015 12:44 AM by avrik

    "Could not chdir to home directory /home/root: No such device" after reboot

    avrik

      I downloaded latest Yocto image and copied it contents on edison. Then screen and "reboot ota".

      Installation was succesful. But if I reboot device I get this messages on start:

       

      Could not chdir to home directory /home/root: No such device

      -sh: /home/root/.profile: No such device


      Before this I tried to increase root size and maaaaybe did something wrong with partitions


      How can I restore default Edison partitions or solve this problem in other way?


      UPDATE fdisk output:

       

      Disk /dev/mmcblk0: 3909 MB, 3909091328 bytes

      1 heads, 16 sectors/track, 477184 cylinders

      Units = cylinders of 16 * 512 = 8192 bytes

       

              Device Boot      Start         End      Blocks  Id System

      /dev/mmcblk0p1               1      477185     3817472  ee EFI GPT

      Partition 1 does not end on cylinder boundary

       

      Disk /dev/mmcblk0boot1: 4 MB, 4194304 bytes

      4 heads, 16 sectors/track, 128 cylinders

      Units = cylinders of 64 * 512 = 32768 bytes

       

      Disk /dev/mmcblk0boot1 doesn't contain a valid partition table

       

      Disk /dev/mmcblk0boot0: 4 MB, 4194304 bytes

      4 heads, 16 sectors/track, 128 cylinders

      Units = cylinders of 64 * 512 = 32768 bytes

       

      Disk /dev/mmcblk0boot0 doesn't contain a valid partition table

        • 1. Re: "Could not chdir to home directory /home/root: No such device" after reboot
          Intel_Peter

          Hello avrik,

           

          How big do you need your partition to be? If you run the flashall.sh script or use the Flash Tool Lite to flash your Edison to release 2 or 2.1, the Edison's rootfs will increase to 1.4GB. Check the image bellow:

           

          edisons partitions.PNG

           

          So if that's enough for you, I'd suggest you to use either method to flash your board and that way you'll recover your board and re-partition it, so you'll get a bigger rootfs partition.

           

          Peter.

          • 2. Re: "Could not chdir to home directory /home/root: No such device" after reboot
            avrik

            On a first Edison launch it has 500 mb on root. I decided to flash it with my own yocto build. And maybe I did something wrong.

            Then I downloaded Yocto 2.1 from here IoT - Intel® Edison Board Download | Intel® Developer Zone.

            When I tried flash it for some reason the operation went very quickly. Maybe 20 seconds or less. But script output was "success".

            Then the problems started.

             

            How can I recover and re-partition my board?

             

            PS: and yeah, after flashing it with prebuilded yocto image from edison downloads section I have 1.4GB on root.

             

            Filesystem                Size      Used Available Use% Mounted on

            /dev/root                 1.4G    388.1M    953.2M  29% /

            devtmpfs                479.9M         0    479.9M   0% /dev

            tmpfs                   480.2M         0    480.2M   0% /dev/shm

            tmpfs                   480.2M    508.0K    479.7M   0% /run

            tmpfs                   480.2M         0    480.2M   0% /sys/fs/cgroup

            systemd-1                 5.8M      5.3M    460.0K  92% /boot

            tmpfs                   480.2M      4.0K    480.2M   0% /tmp

            df: /home: No such device

            tmpfs                   480.2M         0    480.2M   0% /var/volatile

            /dev/mmcblk0p5         1003.0K     19.0K    913.0K   2% /factory

            /dev/mmcblk0p7            5.8M      5.3M    460.0K  92% /boot