Lost files

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

Lost files

Postby anthony2010 on Thu Oct 18, 2012 9:44 am

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.
anthony2010
Level 3
Level 3
 
Posts: 159
Joined: Tue Jul 01, 2008 7:31 pm

Linux Mint is funded by ads and donations.
 

Re: Lost files

Postby xenopeek on Thu Oct 18, 2012 10:29 am

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.
Code: Select all
sudo chown -R $(id -un):$(id -gn)
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14858
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Lost files

Postby anthony2010 on Thu Oct 18, 2012 12:49 pm

Hi Vincent.

Thanks for that.

Sadly I'm getting an error message:

chown missing operand after 'anthony anthony'

Anthony :)
anthony2010
Level 3
Level 3
 
Posts: 159
Joined: Tue Jul 01, 2008 7:31 pm

Re: Lost files

Postby xenopeek on Thu Oct 18, 2012 12:53 pm

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) *
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14858
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Lost files

Postby anthony2010 on Thu Oct 18, 2012 12:59 pm

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
anthony2010
Level 3
Level 3
 
Posts: 159
Joined: Tue Jul 01, 2008 7:31 pm

Re: Lost files

Postby xenopeek on Thu Oct 18, 2012 1:06 pm

Spin some tunes to celebrate. Party time 8)
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14858
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Other topics

Who is online

Users browsing this forum: No registered users and 4 guests