-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Drive_Manager | Support "vboxsf" mounts (VirtualBox shared folder) #2202
Comments
Hi, We added filesystem permissions support for NTFS in v6.15/16 I believe. Check if following commands gives results:
Should get
If not, try unmount + mount the drive again in |
@Phil1988 When you set up a samba/NFS/whatever server, this will not show up in drive manager. Only when you mount an external network drive, this can be done via drive manager and shows up there as well. Our VirtualBox images come with vmdk disk image file jep, but this does not influence the contained file system nor the permissions you can set. You can create an additional virtual disk, attach it to the VM and format it as NTFS. It should be possible to set up this NTFS drive as network (e.g. samba for Windows access) share and move dietpi_userdata to this drive. Then mount it on the Windows host. Doing it the other way round, adding a shared folder from host system to mount on guest should be not the preferred way, since the directory is mainly used by the guest, or at least should be when containing it's dietpi_userdata. |
Currently I have no samba/NFS running. The "problem" of these vmdk is, that it is a contained file where I have no direct access to the data (only at running the VM) and therefore a backup if something happens (vmdk currupted, VM destroyed...) is not possible. The goal I am trying to reach is, to have a windows accessable folder (a real one where I can see the files, not a virtual container) that is the storage of the cloud. The only thing I can tell is that the shared folders are mounted in the /media directory. So what would be your advice for a solution? Thanks for you response and help! |
@Phil1988 You have several options to achieve your need:
So yeah it depends a bid on what exactly you want to backup and how current the files need to be. |
Thanks @MichaIng for your answer.
So the best solution so far is to "mirror" the data beween the VM and the host by using the nextcloud client. But this is not really a long term solution as it doubles the data or better: it cuts the usable storage to 50%. Have you had any success with the investigations on shared folders for the drive manager? So far this is the only really usable solution I see because it has the following benefits: For the complete "bullet proof" I will consider a backup to an external drive so the files are also accessable it the HDD breaks :D |
Checked a bid:
So currently it is okay. At least drive manager does not destroy the mount of somehow adds it (wrong) to fstab. Next tests, to check if userdata or at least backups will work, fully preserving all file types and attributes:
@Phil1988 I add to "Planned" milestone, although not yet sure how/if possible. At least it should be assured, that drive manager does not break this mounts. Auto-mount can be done via VBox software settings (no fstab entry) and via fstab entry as well. In latter case it's of course possible to correctly recognize due to |
POSIX permissions and symlink not supported, or, it depends on host OS and the related file system of the shared folder. In my case Windows (NTFS => no permissions support). However we handle it similar to bind mounts:
PR up: #2729
|
In the past I used Raspbian on a Raspberry Pi (2,3) to run Nextcloud.
I had an external USB HDD attached to it where all data was stored.
This was very handy as my Raspberry once got a corrupted filesystem and couldnt boot and I was able to restore all the media in a few seconds by attaching this HDD to my (Windows) PC.
Now I wanted something more powerfull and using an MiniPC (i5 3570) running Windows 10 and VirtualBox - and of couse dietpi ;)
I tried to use a similar setup with an attached HDD to store all the data to it and included it as shared folder.
In the dietpi-software I wanted to change the "User Data Location" and chose my HDD on the "List" but I get the error, that the filesystem doesnt support permissions (which is correct and I know that but I want to have the benefits of using an NTFS HDD).
The error I get is this
which was included in this enhancement:
https://github.com/Fourdee/DietPi/issues/1846
I know the resons for implementing this but is there a way that I can use a windows readable storage as data storage for my nextcloud data?
Might be a very special question but maybe also a usefull one for the non linux users (I know... kinda weird to write this on the dietpi github :D )
Thanks!
The text was updated successfully, but these errors were encountered: