Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

zfs convert folder to dataset - files in folder disppeared-erased ?

Featured Replies

Hi everybody, 

First, sorry for my probably bad English . i have my array with 3 disks in it. My file system is ZFS.  I converted manually folder (existing share folder) to dataset but with files in it.  I believe it was an error because all files in it disappeared. Did i make a mistake ? All the files were erased ? Can I do something to reverse to the initial state ? or is it possible to find again my files ? I hope i was enough clear. Thanks to all of you who could help me. 

Solved by JorgeB

  • Community Expert

It creates empty datasets, you have to move the files off first. Do you have backups?

 

I made the same mistake with my appdata, but was able to restore from Appdata Backup plugin.

  • Author

Thank trurl for your answer. I fortunately have backup for most of the files but not all . But do you know if those files were really erased ? Do you know if I can recover them ? 

 

  • Community Expert

I just started using ZFS myself.

  • Community Expert
  • Solution

If you created a dataset on top of an existing folder, that original data will still be there but hidden while the dataset is mounted, you can unmount the dataset or just destroy it, assuming it's still empty, and it doesn't have any child datasets:

 

zfs unmount <pool name>/<dataset>

or

zfs destroy <pool name>/<dataset>

 

You can use the first option to confirm the data is all there, then destroy.

 

 

  • Author

Thanks a lot JorgeB it works. I used zfs unmount <pool name>/<dataset>. I did not recover all the files but most of them. I still do not really understand what the difference between mount and unmount. Again, thank you, you were very helpful.

  • Community Expert
10 hours ago, spourt38 said:

I did not recover all the files but most of them

They should have been all there, but glad most were at least.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.