• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Raspi-config issue : cannot Expand file, error, not a SD card

Scheduled Pinned Locked Moved Help and Support
boot problemraspi configretropie 4.0
13 Posts 5 Posters 6.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gantz
    last edited by Gantz 17 Mar 2017, 04:11

    Hi, im a newbie for linux.
    As i had pishrink image down and write into sd card via terminal. Once i boot the pi, it run fine but it cannot log into emulation station

    terminate called after throwing an instance of 'Boost::filesystem::filesystem_error'
    what(): boost::filesystem:status: No space left on device: "/home/pi/.emlationstation"
    aborted
    -bash:/home/pi/.profile: No space lefdt on device
    pi@retropie:$ df -h
    Fliesystem       Size   Used  Avail  Use%     mounted on
    dev              404M    0    404M    0%     /dev
    none             28G   28G       0  100%     /
    tmpfs           415M     0    415M    0%     /dev/shm
    tmpfs           415M  5.9M    415M    2%     /run
    tmpfs           5.0M  4.0K    5.0M    1%     /run/lock
    tmpfs           415M     0    415M    0%     /sys/fs/cgroup
    /dev/mmcblk0p1  127M   39M     89M   31%     /boot
    tmpfs           83M      0     83M    0%     /run/user1000
    
    

    there is no /dev/root on Filesystem
    only dev/mmcblk0p1 is mount on boot

    then i get into raspi-config and try to expand file. I got error, "not a SD card".

    Please advice to fix the issue.
    Thanks

    A 2 Replies Last reply 17 Mar 2017, 12:00 Reply Quote 0
    • A
      AlexMurphy Banned @Gantz
      last edited by 17 Mar 2017, 12:00

      @Gantz Reflash the image on the card. Something is very wrong with your file system.

      G 1 Reply Last reply 17 Mar 2017, 12:24 Reply Quote 0
      • G
        Gantz @AlexMurphy
        last edited by Gantz 17 Mar 2017, 12:24

        @AlexMurphy thank for your comment. I have try to edit my post above but the system wounld let me due to my post was reports as spam

        here my df -h command

        terminate called after throwing an instance of 'Boost::filesystem::filesystem_error'
        what(): boost::filesystem:status: No space left on device: "/home/pi/.emlationstation"
        aborted
        -bash:/home/pi/.profile: No space lefdt on device
        pi@retropie:$ df -h
        Fliesystem       Size   Used  Avail  Use%     mounted on
        dev              404M    0    404M    0%     /dev
        none             28G   28G       0  100%     /
        tmpfs           415M     0    415M    0%     /dev/shm
        tmpfs           415M  5.9M    415M    2%     /run
        tmpfs           5.0M  4.0K    5.0M    1%     /run/lock
        tmpfs           415M     0    415M    0%     /sys/fs/cgroup
        /dev/mmcblk0p1  127M   39M     89M   31%     /boot
        tmpfs           83M      0     83M    0%     /run/user1000
        
        

        as my understand, there is suppose to be a /dev/root in the system. how do i mount it?

        O 1 Reply Last reply 17 Mar 2017, 12:38 Reply Quote 0
        • O
          obsidianspider @Gantz
          last edited by 17 Mar 2017, 12:38

          @Gantz I'm running ROMs from a USB drive, but here's an example of a "good" or "working" file system. I'm running RetroPie 4.1.21 on the latest version of Raspbian.

          $ uname -a
          Linux genesis-pi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
          $ df -h
          Filesystem Size Used Avail Use% Mounted on
          /dev/root 29G 3.2G 25G 12% /
          devtmpfs 364M 0 364M 0% /dev
          tmpfs 368M 0 368M 0% /dev/shm
          tmpfs 368M 5.3M 363M 2% /run
          tmpfs 5.0M 4.0K 5.0M 1% /run/lock
          tmpfs 368M 0 368M 0% /sys/fs/cgroup
          /dev/mmcblk0p1 57M 21M 37M 36% /boot
          /dev/sda1 232G 39G 194G 17% /media/usb0

          📷 @obsidianspider

          G 1 Reply Last reply 17 Mar 2017, 13:29 Reply Quote 0
          • A
            AlexMurphy Banned @Gantz
            last edited by 17 Mar 2017, 12:55

            @Gantz In terminal type sudo mount -o remount,rw / but really this doesn't seem to be your issue as it says root is mounted just not seeing the file system at /dev/root.I would also be concerned that it states 100% use.

            G 1 Reply Last reply 17 Mar 2017, 13:22 Reply Quote 0
            • G
              Gantz @AlexMurphy
              last edited by Gantz 17 Mar 2017, 13:22

              @AlexMurphy is any possibility for 100% used from pishrink? i have shrink image file from 32GB to 27GB to fit into Kingston class 10 Micro sd.

              actually, my first boot. there is no device is mount.
              My pi is be able to boot but cannot get into emulation system and raspi-config to expand file system as well.
              then, i google to find how to mount boot device, /dev/mmcblk0p1.
              after that, It was mounted and raspi-config is work but still get the error,"is not an SD card" from expand file system. then i df -h command as above.

              I have mounted image via ubuntu. It seem to be fine. as my understand, My image is fine but Im so new for linux system. it might be something that i missed or some mistake that i have no idea how to look.

              1 Reply Last reply Reply Quote 0
              • G
                Gantz @obsidianspider
                last edited by 17 Mar 2017, 13:29

                @obsidianspider said in Raspi-config issue : cannot Expand file, error, not a SD card:

                29G 3.2G 25G 12% /

                $ uname -a
                Linux retropie 4.4.32v7-aufs #1 SMP Fri Nov 18 23:17:35 CET 2016 armv7l GNU/Linux

                i believe that my issue is, how to get /dev/root working.
                Thank you for your comment.

                1 Reply Last reply Reply Quote 0
                • G
                  Gantz
                  last edited by 17 Mar 2017, 14:19

                  I have running a disk check, and i got this

                  pi@retropie$ /sbin/fsck
                  fsck from util-linux 2.25.2
                  e2fsck 1.42.12 (29 Aug 2014)
                  fsck.ext4: Permission denied while trying to open /dev/mmcblk0p2
                  You must have r/w access to the filesystem or be root

                  and i also try to edit on my fstab as follow script

                  proc /proc proc defaults 0 0
                  /dev/mmcblk0p1 /boot vfat defaults 0 2
                  /dev/mmcblk0p2 / ext4 defaults,noatime 0 1

                  after reboot, the result is still the same

                  terminate called after throwing an instance of 'Boost::filesystem::filesystem_error'
                  what(): boost::filesystem:status: No space left on device: "/home/pi/.emlationstation"
                  aborted
                  -bash:/home/pi/.profile: No space left on device
                  

                  if anybody have a clue, please guide me the right direction. I would be appreciated.

                  A 1 Reply Last reply 17 Mar 2017, 14:34 Reply Quote 0
                  • A
                    AlexMurphy Banned @Gantz
                    last edited by AlexMurphy 17 Mar 2017, 14:34

                    @Gantz did you try the comnand I suggested? This remounts the root partition with read/write priviliges.

                    G 1 Reply Last reply 18 Mar 2017, 02:40 Reply Quote 0
                    • B
                      BuZz administrators
                      last edited by 17 Mar 2017, 15:18

                      you cant run a disk check from non root when it is mounted.

                      Are you running berryboot ?

                      Your partition is full - which image did you shrink ? You are out of space. That's the only issue.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      G 1 Reply Last reply 18 Mar 2017, 02:36 Reply Quote 0
                      • G
                        Gantz @BuZz
                        last edited by Gantz 18 Mar 2017, 02:36

                        @BuZz yes. i'm using berry boot. I got the original image from someone. But the image size is bigger than my sd card. So, i shrunk the image.

                        here is i did shrunk the image via ubuntu again.

                        e2fsck 1.42.13 (17-May-2015)
                        Pass 1: Checking inodes, blocks, and sizes
                        Pass 2: Checking directory structure
                        Pass 3: Checking directory connectivity
                        Pass 4: Checking reference counts
                        Pass 5: Checking group summary information
                        retropie: 268081/1949696 files (0.9% non-contiguous), 7422437/7776128 blocks
                        resize2fs 1.42.13 (17-May-2015)
                        ERROR: Image already shrunk to smallest size
                        
                        sitt@sitt:/media/sitt/Sitt External/Pie/Pi$ df -h
                        Filesystem      Size  Used Avail Use% Mounted on
                        udev            1.9G     0  1.9G   0% /dev
                        tmpfs           392M  6.5M  386M   2% /run
                        /dev/sda1       455G  160G  273G  37% /
                        tmpfs           2.0G  228K  2.0G   1% /dev/shm
                        tmpfs           5.0M  4.0K  5.0M   1% /run/lock
                        tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
                        tmpfs           392M   56K  392M   1% /run/user/1000
                        /dev/sdc1       127M   39M   89M  31% /media/sitt/0163-7A11
                        /dev/sdc2        28G   28G     0 100% /media/sitt/berryboot
                        
                        1 Reply Last reply Reply Quote 0
                        • G
                          Gantz @AlexMurphy
                          last edited by 18 Mar 2017, 02:40

                          @AlexMurphy i did as you advice but noting happen. then i run df command after reboot. i got same result.

                          terminate called after throwing an instance of 'Boost::filesystem::filesystem_error'
                          what(): boost::filesystem:status: No space left on device: "/home/pi/.emlationstation"
                          aborted
                          -bash:/home/pi/.profile: No space left on device
                          pi@retropie:$ df -h
                          Fliesystem       Size   Used  Avail  Use%     mounted on
                          dev              404M    0    404M    0%     /dev
                          none             28G   28G       0  100%     /
                          
                          1 Reply Last reply Reply Quote 0
                          • H
                            herb_fargus administrators
                            last edited by 18 Mar 2017, 02:42

                            I recommend this image:

                            https://retropie.org.uk/download/

                            Guaranteed to work and you'll know how to fix things when they break.

                            If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                            Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                            1 Reply Last reply Reply Quote 0
                            13 out of 13
                            • First post
                              13/13
                              Last post

                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                              This community forum collects and processes your personal information.
                              consent.not_received