Jump to content

Restoring HexOS from a dead boot drive


Recommended Posts

Posted
Mobius
This post was recognized by Mobius!

ychro was awarded the badge 'Helpful' and 50 points.

I ran into the issue that my boot drive was corrupted and I had to restore my HexOS install from scratch. I found posts that said basically just reinstall it but nothing that explained the process. I had several issues, when I reinstalled HexOS it wanted to wipe my raid, once i disconnected the raid and went through the initial setup, I had no shares.

So I wanted to document this so that others with this issue find a solution instead trying to rename and recreate shares and move data between datasets.

This was done after I figured out a process for doing this so sorry if I missed any steps.

Step 1. Remove the bad boot drive.
Step 2: Disconnect the Raid drives.
Step 3: Install your new boot drive and usb HexOS install media.
Step 4: Follow the standard install process, including setting your admin account and claiming your server. When you finish the setup you will not have any disks so you will name your server and just continue.
Step 5: Shutdown the system.
Step 6: Reconnect your raid drives and boot up.


Step 7: Log in to the TrueNAS gui by going to the IP address of your server in the browser and using the credentials you set up during install Username: truenas_admin Password: <whatever you entered at install>.
image.thumb.png.4de5abc54b2adb847cb7fa8eb4a5874f.png


Step 8: Go to Storage Tab and select Import Pool.
image.thumb.png.22e471644dbf81b91ae9407835007e9d.png


9: Select your pool from the drop down it should be named 'HDDs' and select Import. It will take a few minutes to import and complete.
image.thumb.png.4e777fc03fc384f93494f36f6f15869b.png

At this point the storage should be detected in HexOS and you should be able to start creating shares, but your existing folders and shares will not have returned. To get your shares back you must recreate them by renaming your datasets and naming them back as follows:

Step 1: Under Datasets you can find all of your existing data on the RAID. Find the Dataset you want to restore in HEXOS and note the name.
image.thumb.png.921af6dbc9d35ca288fa9ee418e449a4.png


Step 2: Back in HexOS go to the Folder tab and select 'New Folder'
Note: you may want to recreate your old users manually or create your folders with public access and recreate the users and add permissions later.
Step 3: Create a new folder with the same name as the Dataset but add a 1 (In this case 'Plex1'). Make sure to keep the array the same 'HDDs; and give it the permissions you want (this can be adjusted later).


Step 4: Back in TrueNAS go to Shares and select the edit button on the  'Plex1' share, depending on screen resolution you may need to scroll the horizontal scroll bar to the right.
image.thumb.png.959a0469254d70795c7e2b006aea2584.png


Step 5: In the side bar remove the '1' from the Path or use the drop down to select the original shared folder, then click into the Name field which should auto update and remove the 1.
Step 6 Scroll down and click 'Save' and you will be prompted to restart the SMB service, do this and your share should be updated.


Step 7: Navigate to the dataset tab select the 'Plex1' dataset and click delete on the right side. It will make you confirm by typing the whole dataset path.
image.thumb.png.3e369e63f499b30c9101474fce6f3331.png

Step 8: When this is done you should be able to refresh the folders tab on the HexOS page and see the updated folder name (it took a minute to refresh for me).

Redo this for each share that you wish to recreate.

Once I did this and set up the users and permissions correctly, other servers I used to connect to my shares started working seamlessly.

I didn't experience this but I can imagine you may run into some permissions issues since the new users in HexOS could have different IDs than before. Unfortunately you would need to manually adjust permissions on the files and folders.

P.S. I imagine minutes after posting this someone will tell me I am dumb and should have done it this way, or someone else posted better over here. If that's the case let me know and Ill point to a better example, but when I needed help I couldn't find it.

 

image.png

image.png

image.png

Posted

Great write up.

I'd do it the same way

Steps 1-6 is all that's needed (at this time) to reclaim a disconnected server using the same boot drive for anyone with that problem

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.   Paste as plain text instead

  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...