# Removed storage-dir-verification - How to recover?

**URL:** <https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995>\
**Category:** troubleshooting\
**Tags:** windows-gui\
**Created:** [July 8, 2022, 8:08pm UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995 "2022-07-08T20:08:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vovannovig](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/vovannovig/32/60_2.png) [@vovannovig](https://forum.storj.io/u/vovannovig)\
**Post date:** [July 8, 2022, 8:08pm UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/1 "2022-07-08T20:08:15Z")

</div>

Good afternoon.  
The node is running on Windows and when doing maintenance I deleted the storage-dir-verification.  
Now the node won’t start.  
Can you please tell me how to generate a new file? before that everything worked.  
Thanks

---

<div class="post-metadata">

**Author:** ![thepaul](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/thepaul/32/65_2.png) [@thepaul](https://forum.storj.io/u/thepaul)\
**Post date:** [July 9, 2022, 12:58am UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/2 "2022-07-09T00:58:25Z")

</div>

The file needs to contain your node ID, in binary form. I don’t know a trivial way to do that, but it can be done.

Do you have a hex editor you can use?

---

<div class="post-metadata">

**Author:** ![jammerdan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jammerdan/32/1121_2.png) [@jammerdan](https://forum.storj.io/u/jammerdan)\
**Post date:** [July 9, 2022, 4:03am UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/3 "2022-07-09T04:03:26Z")

</div>

Storage-dir-verification creation happens on node setup.  
I don’t know how to do it on Windows, but on Linux, if you run the initial setup command the file gets created along with all the initial config files and directory:

> [@Recreation config file](https://forum.storj.io/t/recreation-config-file/12967/2):
>
> This command will fail, if there would be a config.yaml. So, you need to rename or delete it first. This is done to protect from second (unintended) run of the setup, because it’s very important for protection. So you would need to do it only when you are sure what are you doing. This command also will create all needed/missed folders structure and storage-dir-verification file containing your NodeID in binary form. This file is used to check if the current NodeID matches the stored in file …

Just make sure that you don’t overwrite your existing node. I would suggest to create a temporary directory, copy your identity in there and run the setup command pointing all paths into this temporary location as all initial files and folders will be created.

---

<div class="post-metadata">

**Author:** ![vovannovig](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/vovannovig/32/60_2.png) [@vovannovig](https://forum.storj.io/u/vovannovig)\
**Post date:** [July 9, 2022, 5:27am UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/4 "2022-07-09T05:27:31Z")

</div>

Good afternoon. It is necessary that in the official instruction there were answers to such questions.

I made a backup copy of the settings file and then ran:

storagenode.exe setup

I created a structure and a storage-dir-verification file in a new folder.  
After that, I restored the configuration file, moved the storage-dir-verification file itself to the location where it should be, and launched the node.  
Everything worked.

Thanks to all

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 9, 2022, 12:42pm UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/5 "2022-07-09T12:42:05Z")

</div>

For Windows node it’s happening during install. So the easy method - uninstall the node, remove `c:\Program Files\Storj` folder and install node back.

The more complex - use `storagenode.exe setup` command, but you need to specify the identity location, config location and data location.

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/6_449c533f586939b6e5f246632a46421f.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [February 16, 2025, 9:18pm UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/6 "2025-02-16T21:18:01Z")

</div>

Can someone put some instructions of how to create the file from Node ID with an hex editor?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [February 17, 2025, 5:46am UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/7 "2025-02-17T05:46:14Z")

</div>

No, but you may execute a setup command with the correct identity but with temporary directory as a data location, then took the file from there and put it to the correct data location.

---

<div class="post-metadata">

**Author:** ![Mark](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mark/32/1128_2.png) [@Mark](https://forum.storj.io/u/Mark)\
**Post date:** [February 17, 2025, 11:31pm UTC](https://forum.storj.io/t/removed-storage-dir-verification-how-to-recover/18995/8 "2025-02-17T23:31:39Z")

</div>

It’s not a hex editor but if your on linux and you have base58 installed (sudo apt install base58 ) You could try something like this from the command line:

```auto
echo YourID | base58 -d | dd bs=1 skip=1 count=32 > New-storage-dir-verification

```

Just replace “YourID” with your actual node id. It will generate a file called: New-storage-dir-verification, just rename it to storage-dir-verification
