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.
Lost files
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Lost files
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Lost files
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)
Re: Lost files
Hi Vincent.
Thanks for that.
Sadly I'm getting an error message:
chown missing operand after 'anthony anthony'
Anthony
Thanks for that.
Sadly I'm getting an error message:
chown missing operand after 'anthony anthony'
Anthony
Re: Lost files
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
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
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
Spin some tunes to celebrate. Party time