Opened 12 years ago

Closed 7 years ago

#10061 closed defect (obsolete)

Samba server in guest cannot access files via shared folders

Reported by: Jürgen Schaumlöffel Owned by:
Component: shared folders Version: VirtualBox 4.1.6
Keywords: arch samba Cc: 4.0.12
Guest type: Linux Host type: Windows

Description (last modified by aeichner)

I want to operate a Linux Samba server(guest) on Win7 (host), in which the Samba share point-to sharedFolder (vboxsf) on the host NTFS-Filesystem.

Win7Host: C:\myShare <-- vboxsf auto-mount --> LinuxGuest: /media/sf_myShare, Samba: [MYSHARE] path = /media/sf_myShare

If folder/files are copied under Win7 into C:\myShare, it happens, that copied folders/ files aren't visible thru Samba access. On the other hand - if I make the copy via Samba-share, it happens sometimes that particular files couldn't written to the share. In both cases on Linux command line a 'ls' shows folder/ file name(s), but no attributes, only ?????????????. Reason unknown.

Oracle VBox 4.1.6, host: Windows 7 SP1, guest: 3.5.1-1-ARCH Linux, Samba 3.6.1 Because of similar bug tickets (#9952, #9789, #9887) I tested too with VBox 4.0.12, negativ - same error.

I find a way to reproduce this behavior anytime:
1. Win7 robocopy: C:\folderX to C:\myShare
2. windiff: compare C:\folderX with \linuxguest\MYSHARE\folderX --- OKAY
3. rename \linuxguest\MYSHARE\folderX to folderY
4. robocopy again C:\folderX to C:\myShare
5. windiff: compare source\folderX with \linuxguest\MYSHARE\folderX --- ERROR
6. linux, ls shows /media/sf_myShare/folderX ????????????

I don't see this problem, when I rename the folder under Win7 directly - only by renaming over Samba.

Attachments (3)

virtNAS_W7_RenameFolder CopyNew but not accessible_3__[VBox+GuestAdd_4.0.12].jpg (219.8 KB ) - added by Jürgen Schaumlöffel 12 years ago.
VBox_4.0.12_hostWin7.log (52.4 KB ) - added by Jürgen Schaumlöffel 12 years ago.
virtNAS_vboxGuestAdd_4.1.9_rename_delete_problem.JPG (151.8 KB ) - added by Jürgen Schaumlöffel 12 years ago.

Download all attachments as: .zip

Change History (7)

by Jürgen Schaumlöffel, 12 years ago

Attachment: VBox_4.0.12_hostWin7.log added

comment:1 by Michael Thayer, 12 years ago

This might be a duplicate of #9878. I won't mark it as such yet though.

comment:2 by Michael Thayer, 12 years ago

You might want to give this pre-release 4.1 Additions build (usual disclaimer applies) a try:

by Jürgen Schaumlöffel, 12 years ago

comment:3 by Jürgen Schaumlöffel, 12 years ago

I tested VBoxGuestAdditions_r75555(=4.1.9) with

host:Win7SP1(host)--VBox4.0.12-GuestAdd-4.1.9--guest:3.5.1-1-ARCH Linux
host:WinXPSp3(host)--VBox4.1.6-GuestAdd-4.1.9--guest:3.5.1-1-ARCH Linux

I have deactivated the samba server on linux guest, to consider only the vbox sharedfolder behavior.
In both environments, I can reproduce the ??????????? situation via:

  1. on Windows-host: Copy folderX (with subfolders) to C:\myShare
  2. on Windows-host: rename folderX to folderY
  3. on Linux-guest: ls -lisa /media/sf_myShare/folderY --- OKAY
  4. on Linux-guest: rename (~ mv) folderY to folderZ
  5. on Windows-host: working on folderZ and subfolders --- OKAY
  6. on linux-guest: ls -lisa /media/sf_myShare/folderZ --- Error

Subfolder is not accessible, its Attributes shown as ???????????

(see attached screenshot)

comment:4 by aeichner, 7 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use