I am doubting they are gone. When I didn't understand the structure, I would derp about thinking I lost media all the time switching back and forth between all public etc... when in reality, I had just accidentally dropped a couple of media rips in the wrong place.
df -h /mnt/device/## will show you the amount of used/available space on the device. That should tell you pretty quick if it is still there... just buried somewhere.
I have never ripped a cd, so I do not know the extension... so for my example I will use .avi. Change that. Also clearly change the ## to the device number we are talking about found in /mnt/device. Run as root.
find /mnt/device/
## -path '/mnt/device/
##/public/data/audio' -prune -o -name '*.
avi*' -exec
echo mv {} /mnt/device/
##/public/data/audio \;
You will notice echo is also in red. This is because I want it to echo on screen what it is going to try to do before ACTUALLY doing it... so you can look and make sure that everything is right. Once you have confirmed that that is what you want it to do, remove the word echo (and one of the two remaining spaces), and it will do its job. Here is an example of the echo on my machine.
root@dcerouter:/# find /mnt/device/37 -path '/mnt/device/37/public/data/audio' -prune -o -name '*.avi*' -exec echo mv {} /mnt/device/37/public/data/audio \;
mv /mnt/device/37/public/data/videos/The Peguins of Madagascar.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/A Christmas Carol.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Bolt.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Igor.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Madagascar.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Planet 51.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Scrat-No Time For Nuts.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/The Incredibles.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Bolt.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Kung Fu Panda-Secrets of the Furious Five.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/History of Harley Davidson.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Planet 51.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/The Peguins of Madagascar.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/The Incredibles.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Igor.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/History of Harley Davidson.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Madagascar Escape 2 Africa.avi /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/A Christmas Carol.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Scrat-No Time For Nuts.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Madagascar.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Madagascar Escape 2 Africa.avi.id3 /mnt/device/37/public/data/audio
mv /mnt/device/37/public/data/videos/Kung Fu Panda-Secrets of the Furious Five.avi.id3 /mnt/device/37/public/data/audio
This is what it looks like without the echo. Tested just to make sure it handled spaces well.
root@dcerouter:/# find /mnt/device/37 -path '/mnt/device/37/public/data/audio' -prune -o -name '*.avi*' -exec mv {} /mnt/device/37/public/data/audio \;
root@dcerouter:/# ls /mnt/device/37/public/data/audio
A Christmas Carol.avi Kung Fu Panda-Secrets of the Furious Five.avi Scrat-No Time For Nuts.avi
A Christmas Carol.avi.id3 Kung Fu Panda-Secrets of the Furious Five.avi.id3 Scrat-No Time For Nuts.avi.id3
Bolt.avi Madagascar.avi The Incredibles.avi
Bolt.avi.id3 Madagascar.avi.id3 The Incredibles.avi.id3
History of Harley Davidson.avi Madagascar Escape 2 Africa.avi The Peguins of Madagascar.avi
History of Harley Davidson.avi.id3 Madagascar Escape 2 Africa.avi.id3 The Peguins of Madagascar.avi.id3
Igor.avi Planet 51.avi
Igor.avi.id3 Planet 51.avi.id3
Because I like explaining things, I will break down what that is doing so it is easier to modify to your purposes.
find /mnt/device/
##This starts the find command and defines the directory parent to begin searching in.
-path '/mnt/device/
##/public/data/audio' -prune -o
This defines a path, and tells it to exclude that path from being found. This is to prevent it finding files we are looking for that are already in the directory we want to move them to.
-name '*.
avi*'
This looks for things with this name. There is a glob in front of the extension because we want any kind of avi, and a glob after to find either just .avi or .avi.id3 etc.
-exec
echo Find will now execute what follows. In the first case, an echo.
mv {} /mnt/device/
##/public/data/audio \;
This tells it to mv everything it found, to the public audio directory, or in the case of our first test echo, to print on screen "mv <found_file> /path/to/public/audio"