Page 1 of 1
Lost files
Posted: Thu Oct 18, 2012 9:44 am
by anthony2010
Hi all.
Music Mayday! Music Mayday!
I think I just lost all my music which has cost me a fortune.
I transferred all my music from one hard drive to another and now find that I cant open the files to play them because I dont have permission. Its 'root only'.
Does anyone have a suggestion as to how I can get my music back?
Ant.
Re: Lost files
Posted: Thu Oct 18, 2012 10:29 am
by xenopeek
Open a terminal on the directory where you have all your music files (or the directories with the music files). You can do so from your file manager, browse to the directory and from the file manager's File menu choose Open In Terminal. Then run the following command to transfer ownership of all the files and directories to you. That should fix it.
Re: Lost files
Posted: Thu Oct 18, 2012 12:49 pm
by anthony2010
Hi Vincent.
Thanks for that.
Sadly I'm getting an error message:
chown missing operand after 'anthony anthony'
Anthony
Re: Lost files
Posted: Thu Oct 18, 2012 12:53 pm
by xenopeek
Dôh, I forgot the *... This is the correct command (be sure to copy it as noted; the : is important):
Code: Select all
sudo chown -R $(id -un):$(id -gn) *
Re: Lost files
Posted: Thu Oct 18, 2012 12:59 pm
by anthony2010
Vincent.
I salute your genius! It worked
Hundreds of pounds worth of music salvaged.
One day, I might even get to know just what on earth these commands mean!
Thank you so very much!
Anthony.
SOLVED
Re: Lost files
Posted: Thu Oct 18, 2012 1:06 pm
by xenopeek
Spin some tunes to celebrate. Party time