Jump to content

I moved wrong folder and lost access to unraid


Go to solution Solved by Braulio Dias Ribeiro,

Recommended Posts

Hi Braulio,

 

The easiest way is to recreate your USB drive. Your array will be recognized once you plug the disks into the "new" system without losing the files. The only thing you must ensure is to keep the same drives "positions" - do not switch parity and data files.

Link to comment

Try this command:

pwd

that will show you what the Present Working Directory is.

 

Next:

cd /

Then the  pwd  again and the return should be:

image.png.f7c3f53f9647378768c9ce60302a4594.png

 

If you get that, then try the   ls   command.

 

(By the way, that   mv   command is one of the most dangerous commands in Unix/Linux in that it never gives you a warning about what is going to do.  It was written by the original Unix developers who assumed that anyone who was going  to be using 'their' OS should be as smart and knowledgeable as they were!!!)

Link to comment
On 8/27/2024 at 10:45 AM, Frank1940 said:

Try this command:

pwd

that will show you what the Present Working Directory is.

 

Next:

cd /

Then the  pwd  again and the return should be:

image.png.f7c3f53f9647378768c9ce60302a4594.png

 

If you get that, then try the   ls   command.

 

(By the way, that   mv   command is one of the most dangerous commands in Unix/Linux in that it never gives you a warning about what is going to do.  It was written by the original Unix developers who assumed that anyone who was going  to be using 'their' OS should be as smart and knowledgeable as they were!!!)

I no longer have access to the promoter because i closed it that day.
I'll try garkauskas' solution.
Tks for your help.

Link to comment
On 8/27/2024 at 9:58 AM, agarkauskas said:

Hi Braulio,

 

The easiest way is to recreate your USB drive. Your array will be recognized once you plug the disks into the "new" system without losing the files. The only thing you must ensure is to keep the same drives "positions" - do not switch parity and data files.

I was away for 2 days.
I'll try this solution tomorrow....TKs my friend.

Link to comment
2 hours ago, Braulio Dias Ribeiro said:

@Frank1940@agarkauskas
I restarted the server and it worked again.
I didn't have to do anything.
Maybe the files were not moved from the pendrive due to permissions or maybe only what was in the memory was moved.
Tks for your help

 

Probably a critical OS folder such as /bin was deleted first and that took down the server before more damage was done.  Rebooting would reload the OS into RAM from the archives on the flash drive thus re-instating /bin.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...