Page 1 of 1

Renaming folders within share corrupts contents

Posted: 21. Aug 2012, 10:00
by Byron Hawkins
I'm running an Ubuntu guest on Windows 7, and there is something wrong with renaming folders in the shared part of the filesystem. My shared folders are mounted via fstab:

Code: Select all

urba      /mnt/urba      vboxsf  uid=b,gid=b 0 0
downtown  /mnt/downtown  vboxsf  uid=b,gid=b 0 0
backup    /mnt/backup    vboxsf  uid=b,gid=b 0 0
Here's what happens when I go into the shared folder "downtown" (which is the C: drive in Windows) and try to rename a folder:

Code: Select all

b@jungle:~/downtown/temp$ mkdir something 
b@jungle:~/downtown/temp$ cd something/
b@jungle:~/downtown/temp/something$ touch anything
b@jungle:~/downtown/temp/something$ ls -l
total 0
-rwxrwxrwx 1 b b 0 Aug 21 00:45 anything
b@jungle:~/downtown/temp/something$ cd ..
b@jungle:~/downtown/temp$ mv something/ something1
b@jungle:~/downtown/temp$ ls -l something1/
ls: cannot access something1/anything: No such file or directory
?????????? ? ? ? ?            ? anything
b@jungle:~/downtown/temp$

I have another guest running Debian, and it has no problems renaming in the "downtown" share. Also, if I go into Windows Explorer and rename the directory, my Ubuntu guest can see the rename as if everything is fine:

Code: Select all

b@jungle:~/downtown/temp$ ls something1/
-rwxrwxrwx 1 b b 0 Aug 21 00:45 anything
Let me know if anyone has an idea about this. Thanks!

Byron

Re: Renaming folders within share corrupts contents

Posted: 23. Aug 2012, 03:16
by Byron Hawkins
Fixed it! Apparently I installed the guest additions in the wrong way, because when I tried to uninstall them from the ISO at a terminal inside the guest, it complained that it didn't recognize the existing guest additions. Uninstalling worked--a subsequent run of the installer (also from the ISO at a guest terminal) didn't complain about any existing guest additions, and completed successfully. Now I can `mv` folders without any strange problems accessing the files in them :D