vboxvfs file integrity problems?

Nicholas Papadonis nick.papadonis.ml at gmail.com
Wed Mar 25 03:27:30 UTC 2020


I compared the results between configurations of same directory tree.  Using mounted filesystem with vboxvfs, using filesystem directly on Mac, using NFS mounted filesystem.  All of the same data.

It appears the results over the vboxvfs driver mounted filesystem differ in that vboxvfs mount is missing the “nlink=X” field.  size is also missing, but I’m assuming that’s expected as it’s missing on the nfs mount as well.

$ diff mtreenfs-mount.txt mtreeonmac.txt|more
< branches        type=dir nlink=2 time=1547439167.000000000
---
> branches        type=dir nlink=2 size=64 time=1547439167.000000000

diff mtreenfs-mount.txt mtree-fbsd-vboxvfs.txt |less
< branches        type=dir nlink=2 time=1547439167.000000000
---
> branches        type=dir time=1547439167.000000000

Perhaps the missing nlink is the problem?

Thanks

> On Mar 24, 2020, at 1:05 PM, Nicholas Papadonis <nick.papadonis.ml at gmail.com> wrote:
> 
> vboxvfs works to mount the directory.  I can read and write files, however I’m observing integrity issues of the mount point.
> 
> Does anyone know of an application to test file integrity over the mount?
> 
> Files in the mount subpath that are accessible from the host and Debian are not accessible in FreeBSD via vboxvfs.  Oddly, command line completion will show the directory, however the directory is missing from ‘ls -l’.  Appreciate any guidance on how to test the integrity of vboxvfs.
> 
> Thanks
> 
> 
>> On Mar 24, 2020, at 12:34 PM, Nicholas Papadonis <nick.papadonis.ml at gmail.com> wrote:
>> 
>> Solved.
>> 
>> /etc/fstab:
>> Source		/mnt/srcr	vboxvfs rw,uid=1001	0	0
>> 
>>> On Mar 24, 2020, at 12:12 PM, Nicholas Papadonis <nick.papadonis.ml at gmail.com> wrote:
>>> 
>>> I updated to the latest and it works!
>>> 
>>> $ sudo mount -t vboxvfs -o uid=1001 Source /mnt/srcr
>>> 
>>> $ uname -a
>>> FreeBSD fbsd 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
>>> 
>>> The only issue is the mount points are not made permanent according to the Shared Folders dialog in VirtualBox.
>>> 
>>> I tried editing fstab, however the changes were lost.  Does anyone know where to place the mount options?
>>> 
>>> Thanks
>>> 
>>>> On Mar 23, 2020, at 7:33 PM, Manish Jain <bourne.identity at hotmail.com> wrote:
>>>> 
>>>> Another correction : the type should not be vboxvfs, rather vboxsf :
>>>> 
>>>> sudo mount -t vboxsf -o uid=1000 Source /mnt/srcr
>>>> 
>>>> 
>>>> On 24/03/2020 04:54, Manish Jain wrote:
>>>>> On 24/03/2020 03:42, Nicholas Papadonis wrote:
>>>>>> sudo mount -t vboxvfs Source /mnt/srcr
>>>>> I think that command is wrong. Try:
>>>>> sudo mount -t vboxvfs -o uid=1000 Source /mnt/srcr
>>>>> (Presuming your non-root user is UID 1000)
>>>>> Regards,
>>>>> Manish Jain
>>> 
>> 
> 



More information about the freebsd-questions mailing list