USB boot stick died, how to recover from backup with bad ownerships and permissions?


Recommended Posts

Hi all,

 

when I powered my unraid server up after a 2 week absence, the USB boot stick was dead.

I tried to look at the stick on my mac, but it did not recognize the USB stick at all.

 

I found this to re-build my flash drive:

https://wiki.unraid.net/UnRAID_6/Changing_The_Flash_Device

There they need a backup as a ZIP file.

 

I do have a backup of the flash drive, but as it is with backups, I did not test them.

So what is the actual problem:

 

The backup is created using the Backup plugin and written to a local share.

This share is synchonized to a Synology DSM share using Syncthing on unraid and the Synology DiskStation.

On the Synology DiskStation, all files written by Syncthing have the ownership "sc-syncthing:syncthing" and permissions look like 644 for files or 755 for folders.

 

May I use the above cited procedure using my backup with quirky owenerships and permissions?

What whould be the best / safest way to proceed now?

 

Your help is appreciated!

 

 

 

 

 

 

Link to comment

The stick is dead. But I have another stick, which in need to register for the unraid license.

So the permissions and ownerships are not of importance??

 

Shoudl I just format the stick FAT32 and copy the files onto it, or shoudl I ZIP the files and use the unraid falsh drive installer to create the stick?

 

Link to comment

Thanks for the info.

 

I formatted as FAT32 with a Master Boot Record and copied the files from the backup to the flash drive.

Then I ran "make_bootable_mac" and it asks whether UEFI boot should be enabled.

I responded "N", but the server does not boot from the USB flash drive.

Note: UEFI boot and legacy boot are enabled in BIOS.

 

This brings up a few questions:

 

(1) Does a Master Boot Record actually support UEFI boot? Or does UEFI require a GUID boot record?

(2) Can a GUID boot record be used with FAT32?

(3) Why is the system not booting from the flash drive?

 

Could I alternatively prepare a flash drive using the Limetech Unraid USB Creator and copy the crucial config files from the backup to the flash drive? If so, which files should I copy?

 

Edited by jus7incase
correction of technical detail
Link to comment
8 hours ago, Squid said:

As a sanity check, have you checked the boot order in the BIOS and made sure that the BBS order is set for the replacement flashdrive first?

I will do. I have not changed the boot order since the time when it worked, though.

I do not expect any new information from this and would only post a result if there was a misconfig.

 

Could I alternatively prepare a flash drive using the Limetech Unraid USB Creator and copy the crucial config files from the backup to the flash drive? If so, which files should I copy?

Link to comment
11 hours ago, jus7incase said:

1) Does a Master Boot Record actually support UEFI boot? Or does UEFI require a GUID boot record?

(2) Can a GUID boot record be used with FAT32?

Basically, Yes to both questions.  Both of my servers are booting using the UEFI mode and the boot drives are FAT32.  

 

If I remember correctly, if there is a folder in root named     EFI     the boot will be in the UEFI mode.   In the early releases when UEFI was being introduced, the default naming of that folder was    EFI-     which then allowed legacy boot mode as the default.   I am not sure what the default mode is with the current releases if you just copy over the files out of the distribution file and make the flash drive bootable.  

Link to comment

I just formatted as FAT32 with GPT and went into the boot options of the BIOS and now have:

1) flash drive UEFI

2) flash drive

3) UEFI boot shell

 

and the machine boots.

I am not sure though what path it used to boot UEFI or legacy, since I have enabled it to use either UEFI or legacy.

At least it proves that FAT32 works with GPT boot record.

 

Of course my license needs to be replaced, the software says "too many devices". I am sure the support will solve it like a breeze.

 

 

Link to comment

I received the license key for the flash drive and now unraid tells me "stale configuration" and none of the drives are assigned to any slot.

Is there a way to make unraid accept the config files from the backup to assign the drives? Just seems the safer option compared to

the exercise of looking up the serial numbers to assign the drives...

 

Link to comment

Found the problem with some help of Tom of LimeTech.

 

CA_BACKUP renames super.dat into super.dat_CA_BACKUP. Thus the drives are not assigned.

after renaming it back up super.dat the server would start ok and config is not reported as stale any more.

the array started and parity was reported valid, so I canceled the parity check that was kicking in.

 

Edited by jus7incase
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.