User avatar
Jarlexx
Posts: 4
Joined: Fri Dec 25, 2015 11:54 am

Folder stuck in void?

Mon Jan 04, 2016 11:07 pm

I was going to move a ~20gb Plex folder from my SD-card to an external hard drive by doing

Code: Select all

sudo mv ~/Plex/ /media/USBHDD1
However, the folder disappeared from my home folder, and did never appear on the hard drive :? I've been waiting for some hours now because I thought the transfer would take some time, but the folder seem to be gone? I've tried to do a search through the desktop File Manager, but without any result. When I look at the free space on my SD-card, it seems like the folder still is on the card.

Any ideas how I could find my folder?

User avatar
karrika
Posts: 1125
Joined: Mon Oct 19, 2015 6:21 am
Location: Finland

Re: Folder stuck in void?

Mon Jan 04, 2016 11:15 pm

What about

find / -name Plex -print

or

find /media -name Plex -print

You could also look what folders take up the space by the command du

du --max-depth=2 /media

User avatar
Jarlexx
Posts: 4
Joined: Fri Dec 25, 2015 11:54 am

Re: Folder stuck in void?

Mon Jan 04, 2016 11:48 pm

karrika wrote:What about

find / -name Plex -print

or

find /media -name Plex -print

You could also look what folders take up the space by the command du

du --max-depth=2 /media

Thank you for your reply. I checked which folder that takes up space on my SD-card and got this output

Code: Select all

0	proc
0	sys
4.0K	dev
4.0K	mnt
4.0K	root
4.0K	srv
16K	lost+found
16K	~
29K	media
68K	tmp
868K	run
5.6M	etc
7.6M	sbin
7.9M	bin
18M	home
20M	boot
20M	boot.bak
283M	lib
635M	opt
800M	var
2.5G	usr
So there are no folders which takes up all the space on the card (The SD-card is 32gb with only 2 gb of free space left).

When I search for Plex with 'find', there is a Plex folder in '/~/', but the content is just empty folders.

EDIT: I solved this problem by following this thread viewtopic.php?t=71520&p=521414

It seems like there was a problem with the mounting of the external hard drive, so all the files were placed in /mnt/media instead. These files were not visible without using sudo mount --bind / /mnt and sudo ncdu -x /mnt. I am now moving the files back to where they belong :D Thanks!

Return to “Beginners”