Empty USB stick


Recommended Posts

Just returned from a couple of days away and turned on my Unraid machine only to find I can't connect to it or even see it on the network.  I connected a display to it to see what is going on and it's not even booting into Unraid.  It's set to boot from the USB but not doing so.   I've just connected the USB to my machine to find that it looks like the drive is empty!

 

Here's some screenshots:

 

What I THINK COULD have happened is that I noticed that as I shut down the machine before going away, the script to backup the USB drive just started.   I'm 100% sure but could this have caused it?

 

Either way, any idea how I can get my machine back up and running?

Screen Shot 2018-08-01 at 21.21.33.png

Screen Shot 2018-08-01 at 21.21.20.png

 

Screen Shot 2018-08-01 at 21.21.14.png

Edited by rctneil
Link to comment
13 minutes ago, trurl said:

If you have a backup of the config folder you can just prepare as a new install and copy the config back.

 

Well I should have as the backup location of the USB drive backup I configured was to a drive outside the array on an external disk with Unassigned Devices. I ahve just plugged that disk into my Macbook but it's unable to read it and asks me if I want to initialize it.

 

How can I get access to that data on the drive so I can grab the backup?

Link to comment
25 minutes ago, rctneil said:

 

That's the problem, i'm not 100% sure.  Would it have been xfs?  I precleared it and formatted it as the default filesystem to use it as an external drive.

If you want to use a drive on another system you are better off formatting it on that system in the first place to ensure it is a format compatible with that system.   The default unRAID format of XFS is only readable in general on Linux systems - Mac and Windows do not have suitable drivers by default.

Link to comment
6 minutes ago, rctneil said:

Ok,   Will have a go using FUSE-XFS to see if I can get it to read the drive and grab the backup of the config folder from it.  Otherise i'll try setting up a simple Linux VM to do the same, else i'll come back here!

 

Will report back. Thanks

Alot of work to just access the drive if FUSE-XFS dont work, just run ubuntu or any other linux from a usb pen (no need to install it) and then copy the backup to another drive ;)

Link to comment

I think i've managed to get a copy of the drive contents from my backup but it looks like it has totally killed my USB drive.  My Mac can detect the drive when it's connected but it totally fails to repair or format it.   Super annoying.  Didn't expect to have to replace the drive after only two months.

Link to comment

Just managed to get the server back up by downloading a fresh copy of unraid and putting it on a spare USB drive until my brand new replacement arrives.  I copied the config folder from the backup onto the drive too. It's booted up but my drive assignments are all gone. Not sure if the Shares are still available as the array isn;t started and it's pointless starting if the drive assignments are gone.

 

Any ideas on how I can fix this?

 

Thanks,

Neil

Link to comment
15 minutes ago, rctneil said:

Not sure if the Shares are still available as the array isn;t started and it's pointless starting if the drive assignments are gone

 

On your flash drive look in config/shares.  You should see a [share name].cfg file for each of your shares.  If those are there (you can open them as they are just text files), your share definition are intact.

 

On the root of the flash drive, is there a disk_assignments.txt file?  If so, you can use that information to recreate your disk assignments as they were before.

Link to comment
1 hour ago, rctneil said:

If super.dat is there then why don't they all get reassigned automatically?

 

That's why I mentioned the disk_assignments.txt file.  I assumed from your description that super.dat was either corrupt or missing from your backup since you said you had no disk assignments. However, it appears you copied only the config folder from the backup.  Super.dat is stored at the root of the flash drive.  See if it is there (and anything else you may want from the root) in your backup.  DISK_ASSIGNMENTS.TXT, if you have one, is also stored at the root.

 

Of course, with a fresh downloaded copy of unRAID OS,  super.dat won't have much in it until disk assignments are made.

Edited by Hoopster
Link to comment
3 minutes ago, trurl said:

 

No, super.dat is in the config folder just like all of the rest of your configuration.

 

Oops, yes, you are correct.  Thanks for the correction.  I did not check to verify and mis-stated the location from my faulty memory. 

 

Since he copied the config folder, super.dat must be missing or corrupt.

Edited by Hoopster
Link to comment

Right, quick update.   Got everything back up and running.   Whatever happened totally killed my USB stick. It was brand new 3 months ago!  Not very happy at having to buy a new stick and waste my license transfer this early on. Not happy at all.   Anyway, the super.dat file was there but had .backup appended to the end so once I renamed that it all worked fine.   Appreciate your help!

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.