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

    how do you empty deleted files with MC

    Scheduled Pinned Locked Moved Help and Support
    delete
    56 Posts 5 Posters 7.0k 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.
    • mituM
      mitu Global Moderator @comet424
      last edited by

      @comet424 said in how do you empty deleted files with MC:

      so what did that last 2 do???

      man fstab

      C 1 Reply Last reply Reply Quote 0
      • C
        comet424 @mitu
        last edited by

        @mitu so the man fstab means manual add file system? for the 2

        so i tried again
        UUID=4A099D4A0F439B23 /home/pi/RetroPie vfat rw,exec,uid=pi,gid=pi,umask=022 0 2

        added the extra 2... and yet again it corrupted soo many failed com errors etc
        and then when i remmed it out using Parted Magic again it wouldnt boot up

        so i cant see what difference from my older post i had ntfs and 1tb drive but this is 250gb set for Fat32
        the commands in old post
        https://retropie.org.uk/forum/topic/27809/ssd-doesnt-always-mount/29?_=1607815702974
        dont seem to be working some are

        so should i keep the File system fat32? i have retropie-mount folder on the SSD
        what should the manual fstab be since i redownloading retropie iso to the SD card

        should it be this
        /home/pi/RetroPie vfat nofail,user,uid=pi,gid=pi 0 2

        not the
        /home/pi/RetroPie vfat rw,exec,uid=pi,gid=pi,umask=022 0 2

        i did the 2nd one for getting maybe MSDos programs to run as i cant seem to get my Command and Conqurer to run on dosbox figured the option for the execuatble will fix it

        mituM C 2 Replies Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @comet424
          last edited by

          @comet424 said in how do you empty deleted files with MC:

          so i tried again
          UUID=4A099D4A0F439B23 /home/pi/RetroPie vfat rw,exec,uid=pi,gid=pi,umask=022 0 2
          added the extra 2... and yet again it corrupted soo many failed com errors etc
          and then when i remmed it out using Parted Magic again it wouldnt boot up

          Are you sure the UUID is correct for your external disc ? Post the complete /etc/fstab.

          1 Reply Last reply Reply Quote 0
          • C
            comet424 @comet424
            last edited by

            @mitu
            i seem to be having major issues trying to mount manually with the 250GB WD Blue drive i didn have this issue with the 1TB but i dont have that setup here i know the dmesg command didnt work right for it and doesnt work that well here

            but for this 250GB SSD setup this is my setup
            SSD formated Fat32
            folder retropie-mount <all roms under it>

            i install retropie
            <boots up and it fails the usb@.... mount> i forget what it says rest go Green "OK"
            i configure joypad
            i install dosbox and vice
            i add SSH
            i add the samba

            i ssh in
            and run

            pi@retropie:~ $ ls -l /dev/disk/by-uuid/
            total 0
            lrwxrwxrwx 1 root root 10 Dec 13 15:03 4A099D4A0F439B23 -> ../../sda1
            lrwxrwxrwx 1 root root 15 Dec 13 15:03 AC15-4763 -> ../../mmcblk0p1
            lrwxrwxrwx 1 root root 15 Dec 13 15:03 f1351d7a-72a6-4d65-b1e2-62653795df48 -> ../../mmcblk0p2
            

            i then

            cd /etc
            sudo nano fstab
            
            
            proc            /proc           proc    defaults          0       0
            PARTUUID=3c0d1f86-01  /boot           vfat    defaults          0       2
            PARTUUID=3c0d1f86-02  /               ext4    defaults,noatime  0       1
            # a swapfile is not a swap partition, no line here
            #   use  dphys-swapfile swap[on|off]  for that
            UUID=4A099D4A0F439B23   /home/pi/RetroPie       vfat    nofail,user,uid=pi,gid=pi       0       2
            

            i chose the other one this time not that exec it seems to mess it up totally

            then i save
            then i did the run raspi-config and goto configurartions and disble the usb mount service
            and reboot.. it boots up but still slow.. and now i cant remember while typing this if it mounted the roms i dont think so i think only mounted priper me editig the fstab..

            this last time i did from the manual mount documentation

            sudo mv -v /home/pi/RetroPie/* /media/usb0/
            

            i then run the raspi config and goto configurations and disable the usb mount service
            i then rebooted
            it still fails the "usb@mount... whatever it says" but i turned off automount
            when it boots up it tells me there is no emulation goto the website and goes to the command prompt

            is this because i formated in fat32? when i did the other setup it was a NFTS but i remember you guys saying and documentation Fat32 is better.. but is fat32 the issue with Western Digital? i havent had this much problems before and this time i was trying to do it the proper way Fat32 but been having issues is it WD on the black list? and maybe i need to format NTFS and i forget when you manualy mount usb do you scrap the retropie-mount folder and just post everything in the root of the drive

            just cant figure whats going on..

            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by

              I don't think FAT32 vs. NTFS is the issue. Both should work as well, FAT32 being better supported by Linux natively at this time.

              i then run the raspi config and goto configurations and disable the usb mount service

              The usbromservice is not configured in raspi-config, it's a RetroPie addition, did you disable it from RetroPie-Setup ?

              i then rebooted
              it still fails the "usb@mount... whatever it says" but i turned off automount

              when it boots up it tells me there is no emulation goto the website and goes to the command prompt

              Run mount and post the output - is the disk mounted on /home/pi/RetroPie ?

              C 1 Reply Last reply Reply Quote 0
              • C
                comet424 @mitu
                last edited by

                @mitu sorry with my dislexia i forget .. and betwween raspiconfig and the retrosetup i mix them up

                and thats what i ment when i mentioned i disabled usb mount service under raspi confg i ment i disabled it under the retrosetup and then i rebooted
                what fails is the

                usbmount@dev... something something

                and then posts
                so with the error shows there is no system
                check that your paths are correct in the systems
                configuration file, and your game directory has at least
                one game with the correct extensions

                visit emulationstartion.org

                thats what i got after i did the mv in the documentation i posted
                as for the disk mounted i not sure but here is the output

                pi@retropie:~ $ mount
                /dev/mmcblk0p2 on / type ext4 (rw,noatime)
                devtmpfs on /dev type devtmpfs (rw,relatime,size=1801484k,nr_inodes=97927,mode=755)
                sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
                proc on /proc type proc (rw,relatime)
                securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
                tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
                devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
                tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
                tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
                tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
                cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
                cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
                none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
                cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
                cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
                cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
                cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
                cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
                cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
                cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
                cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
                systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
                sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
                mqueue on /dev/mqueue type mqueue (rw,relatime)
                debugfs on /sys/kernel/debug type debugfs (rw,relatime)
                configfs on /sys/kernel/config type configfs (rw,relatime)
                /dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
                tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=386716k,mode=700,uid=1000,gid=1000)
                pi@retropie:~ $
                
                1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator
                  last edited by

                  The mount output doesn't show the external disc being mounted, that's why EmulationStation doesn't start - the ROM folders are not present.

                  If you run mount -a from the command line, what's the output ? Do you get an error from the system while trying to mount the external disc ?

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    comet424 @mitu
                    last edited by comet424

                    @mitu
                    wonder where the mount files went to then?
                    the emulationstation error had come up after i typed

                    sudo mv -v /home/pi/RetroPie/* /media/usb0/
                    

                    as i was following the manual steps
                    so i dunno where files are unless i guess plug into the computer?

                    as for the mount error

                    pi@retropie:~ $ mount -a
                    mount: only root can use "--all" option
                    pi@retropie:~ $ mount --all
                    mount: only root can use "--all" option
                    pi@retropie:~ $
                    

                    as for the error trying to mount the external disc i dunno? i only see that error of the usb@mount when you first turn on the raspberry pi and retropie is booting up doing its {OK] checks and that one fails or when i do a reboot

                    C mituM 2 Replies Last reply Reply Quote 0
                    • C
                      comet424 @comet424
                      last edited by

                      @mitu
                      i guess i need to move the files? to a retropie-mount maybe

                      pi@retropie:~ $ cd /media
                      pi@retropie:/media $ cd usb0
                      pi@retropie:/media/usb0 $ ls
                      BIOS  retropiemenu  roms  splashscreens
                      pi@retropie:/media/usb0 $
                      pi@retropie:/media/usb0 $ cd roms
                      pi@retropie:/media/usb0/roms $ ls
                      amstradcpc  atari5200  atarilynx  gamegear  gbc            mastersystem  neogeo  ngpc      sega32x  snes
                      arcade      atari7800  fba        gb        genesis        megadrive     nes     pcengine  segacd   vectrex
                      atari2600   atari800   fds        gba       mame-libretro  n64           ngp     psx       sg-1000  zxspectrum
                      pi@retropie:/media/usb0/roms $
                      
                      C 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @comet424
                        last edited by mitu

                        @comet424 said in how do you empty deleted files with MC:

                        pi@retropie:~ $ mount -a
                        mount: only root can use "--all" option

                        You need to use sudo before the command, forgot about that.

                        so i dunno where files are unless i guess plug into the computer?

                        In /media/usb0, where you moved them.

                        i guess i need to move the files? to a retropie-mount maybe

                        You already moved the files, but /media/usb0 should be the mountpoint for your USB drive. retropie-mount is the location when you're using the automatic method, you say you're using the manual method and you've disabled the usbromservice module.

                        Did you mount the USB drive - to /media/usb0 - before moving the files from /home/pi/RetroPie ? Otherwise, even if the USB disc would work with your /etc/fstab, the drive would be empty.

                        1 Reply Last reply Reply Quote 0
                        • C
                          comet424 @comet424
                          last edited by

                          @mitu
                          so drive must be mounted since i can see it right??

                          mc wouldnt let me make a folder and i think its because its really on the drive but you cant see it?

                          pi@retropie:/media/usb0/roms $ cd ..
                          pi@retropie:/media/usb0 $ mkdir retropie-mount
                          mkdir: cannot create directory ‘retropie-mount’: Permission denied
                          pi@retropie:/media/usb0 $ ls
                          BIOS  retropiemenu  roms  splashscreens
                          pi@retropie:/media/usb0 $ mkdir test
                          mkdir: cannot create directory ‘test’: Permission denied
                          pi@retropie:/media/usb0 $ df
                          Filesystem     1K-blocks    Used Available Use% Mounted on
                          /dev/root       30368644 2874152  26218904  10% /
                          devtmpfs         1801484       0   1801484   0% /dev
                          tmpfs            1933580       0   1933580   0% /dev/shm
                          tmpfs            1933580    9600   1923980   1% /run
                          tmpfs               5120       4      5116   1% /run/lock
                          tmpfs            1933580       0   1933580   0% /sys/fs/cgroup
                          /dev/mmcblk0p1    261868   55708    206160  22% /boot
                          tmpfs             386716       0    386716   0% /run/user/1000
                          pi@retropie:/media/usb0 $
                          

                          or its only kinda mounted? as i cant make a directory test but the usb0 is there but the df shows no

                          C 1 Reply Last reply Reply Quote 0
                          • mituM
                            mitu Global Moderator
                            last edited by

                            No, the drive is not mounted. It should show up in a line containing /dev/sda1 on the 1st column, in the df command output.

                            The reason you're getting the errors for mkdir is that /media/usb0 is not writeable by the pi user (which is the default) and it's not on the external USB disc.

                            1 Reply Last reply Reply Quote 0
                            • C
                              comet424 @comet424
                              last edited by

                              @mitu
                              from what i remember
                              when i do the clean install of retropie
                              and when it first boots up then reboots for the file system

                              it fails the usbmount@dev....

                              then takes 2 3 min for emulationstation to finish loading config files
                              then loads up 23 emulatiors i guess.. and then my roms are loaded like nes mame
                              etc

                              then i cant remember i did couple different ways enabling usb and disabling etc

                              but what i remember is all the roms are in retropie-mount folder on the SSD
                              then i installed vice and dosbox last time i tried i didnt install samba shares

                              then i edited the fstab file and added the
                              UUID=4A099D4A0F439B23 /home/pi/RetroPie vfat nofail,user,uid=pi,gid=pi 0 2
                              because when i did the exec rw line version thats when it really ruined it and locked me out

                              then i ran
                              sudo mv -v /home/pi/RetroPie/* /media/usb0/

                              then i ran the retro-setup i disabled usb mount service
                              and did a perform a reboot.
                              and when going through the checks it still fail the usbmount@dev...
                              and then says emulation is gone
                              and then i get the command prompt

                              so ok i ran the sudo

                              pi@retropie:/media/usb0 $ sudo mount -a
                              mount: /home/pi/RetroPie: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
                              pi@retropie:/media/usb0 $
                              

                              guess i really buggered it up.. didnt i

                              so if the drive isnt mount then why is it showing up under usb0 as being mounted under /media/usb0
                              shouldnt it not show up anything

                              but ya i went into the /media/usb0/roms/nes and it shows nothing but how is it possible for a usb0 drive when its not there shouldnt it be nothing

                              do i delete usb0 w folder and reboot and will that let the drive remount?

                              mituM C 2 Replies Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @comet424
                                last edited by

                                pi@retropie:/media/usb0 $ sudo mount -a
                                mount: /home/pi/RetroPie: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.

                                This looks like an un-formatted drive or - as the error says - wrong file system. Make sure the drive is properly formatted, then mount it first, before copying/moving the files from /home/pi/RetroPie/ to it.

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  comet424 @comet424
                                  last edited by

                                  so i used mc
                                  and i copied /media/usb0/ to /home/pi/Retropie

                                  and thats brought back the retropie gui

                                  just not the roms so least that part is back

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    comet424 @mitu
                                    last edited by

                                    @mitu ah ok

                                    well the SD card doesnt have any of the roms on it in the first place.. i only did the mv because it was one of the steps

                                    then SSD should probably have 100gb of roms on it
                                    it was formated to Fat32 as thats how this post orginally started

                                    but i wonder if the UUID with the rw,exec and forgetting that 2 at the end correupted it then?

                                    how do i check the FS on the SSD? i only really know windows

                                    how do i do it in linux here

                                    C mituM 2 Replies Last reply Reply Quote 0
                                    • C
                                      comet424 @comet424
                                      last edited by

                                      i tried
                                      pi@retropie:~ $ fdisk /dev/sda1

                                      Welcome to fdisk (util-linux 2.33.1).
                                      Changes will remain in memory only, until you decide to write them.
                                      Be careful before using the write command.

                                      fdisk: cannot open /dev/sda1: Permission denied
                                      pi@retropie:~ $

                                      as i figured may display something... i least have my roms on the server.... i guess ill pull the hard drive and test it in windows or unraid to see if it has a file system

                                      i guess that executable fstab had to do it as it really fell apart after that ill test the ssd now in windows

                                      1 Reply Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @comet424
                                        last edited by

                                        @comet424 said in how do you empty deleted files with MC:

                                        but i wonder if the UUID with the rw,exec and forgetting that 2 at the end correupted it then?

                                        No, that would not corrupt the filesystem/disc.

                                        how do i check the FS on the SSD? i only really know windows

                                        Run sudo fdisk -l /dev/sda and it should list the partitions on the disc. Try to mount it using the mount command and see if you can read what's on it.

                                        sudo mount /dev/sda1 /media/usb0 -t vfat
                                        

                                        Check /media/usb0 for the ROM files.

                                        how do i do it in linux here

                                        I suggest you use the automatic mounting method, if you're not familiar with the Linux commands.

                                        C 1 Reply Last reply Reply Quote 0
                                        • C
                                          comet424 @mitu
                                          last edited by

                                          @mitu
                                          ok ill try that.

                                          and reason i went with the manual mode is the slow problems Nespi4 and that it unmounts on its own when you do a reboot or emulation reboot
                                          or like how emulation config files hangs for 2 min.. so had to do the manual mode

                                          but i chose that exec rw version in the fstab and thats when things just gone really crazy

                                          i had this issue 6 months ago with the 1TB SSD WD and i got help but i found the steps we did then didnt 100% work with the 250GB this time.. and last time was NTFS and this is fat32 so i tried to follow that then

                                          but ill give those a try and see what happens..

                                          C 1 Reply Last reply Reply Quote 0
                                          • C
                                            comet424 @comet424
                                            last edited by

                                            @mitu

                                            guess the file system just corrupted.. ill pop it out and shove in windows or unraid and erase the SSD and just copy over
                                            probably unraid to format it since it can do bigger where windows cant
                                            ill re copy things over and ill get back to you later.. ill retry the UUID in fstab after a clean format
                                            as this frustrating

                                            pi@retropie:~ $ sudo fdisk -l /dev/sda
                                            fdisk: cannot open /dev/sda: Input/output error
                                            pi@retropie:~ $ sudo fdisk -l /dev/sda1
                                            fdisk: cannot open /dev/sda1: Input/output error
                                            pi@retropie:~ $ sudo mount /dev/sda1 /media/usb0 -t vfat
                                            mount: /media/usb0: can't read superblock on /dev/sda1.
                                            pi@retropie:~ $
                                            

                                            a

                                            C 1 Reply Last reply Reply Quote 0
                                            • First post
                                              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.