Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Desktop Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th May 2008, 16:45
dalekleader dalekleader is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Shared NTFS Partition Between Windows and Linx

Hello,

I am running Ubuntu Hardy Heron (Released) with the following file system:

sda3 - Linux
sdb1 - Windows XP
sdb2 - NTFS - Share

I have installed Linux and VirtualBox. I took the existing Windows drive and added it to the system. VirtualBox is setup to writethrough (RAW) to Windows. I mounted sdb2 into Linux. The intent is to have a "shared" partition to access files simultaneously between Linux and Windows.

My Quesiton:
Why is it when I create a new file in Windows I cannot see it in Linux? Also, if I move a file in Linux the change is not reflected within Windows?
Reply With Quote
Sponsored Links
  #2  
Old 7th May 2008, 23:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

That's strange. It should work without problems...
Maybe the files are hidden (beginning with a .)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th May 2008, 02:31
dalekleader dalekleader is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, they are not hidden. Interesting enough, since the original post I saved a file from an email in Windows to the shared partition. Again, I could not see the file from Linux. When I reboot the computer Linux can now see the file.
Reply With Quote
  #4  
Old 28th August 2009, 09:17
mechrekt mechrekt is offline
Junior Member
 
Join Date: Aug 2009
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

dalekleader, I've the same configuration as you... and the same problems
I googled for it but nothing..

Can anyone help us?

Last edited by mechrekt; 28th August 2009 at 11:21.
Reply With Quote
  #5  
Old 28th August 2009, 09:38
bad_crow bad_crow is offline
Member
 
Join Date: Jul 2009
Location: France
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default

On my debian I have :
windows (NTFS) : sda1
data (NTFS) : sda2
linux : sda3

Everything is working properly.

So I think the problem comes from Vbox, maybe the ressource is reserved by vbox so linux can't update it (quite note sure but I think it's possible).
What happens when you quit Vbox (shutting down properly, not sleeping) ?
If this doesn't work, what if you unmount/remount ?

Have you tried to create a share on your windows and to access it via mount -t cifs ? Doing this, your linux would be considered as a normal remote computer and may be able to list your windows files properly.
That's not the cleanest way but that's the one I have in mind for now.
Reply With Quote
  #6  
Old 28th August 2009, 09:59
mechrekt mechrekt is offline
Junior Member
 
Join Date: Aug 2009
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

- With Vbox running my xp guest I can read the ntfs data partition
- If I create (for example) a folder in the ntfs data partition from Vbox I can see the folder in the host ubuntu system, but after some seconds.
- If I create a folder in the ntfs data partition from the host ubuntu system, I can't see it from the Vbox.
- When I close Vbox, the changes made from Vbox in that partition remains, but changes made from the host are lost.
Reply With Quote
  #7  
Old 28th August 2009, 10:00
mechrekt mechrekt is offline
Junior Member
 
Join Date: Aug 2009
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bad_crow View Post
Have you tried to create a share on your windows and to access it via mount -t cifs ? Doing this, your linux would be considered as a normal remote computer and may be able to list your windows files properly.
Sorry but I didn't understand. I'm new in linux...
Reply With Quote
  #8  
Old 28th August 2009, 10:11
bad_crow bad_crow is offline
Member
 
Join Date: Jul 2009
Location: France
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Alright, I'll try to sum this up :
changes from Vbox are not comitted, changes from linux are effective.

Creating a windows share is sharing a folder of windows over the network.
From linux, to access this folder you need to use a command looking like this :
mount -t cifs -o username="YYY" //Windows-IP-Address/share-name /mount/point

so let's say that username is "user", windows has 192.168.0.2 IP-address and the mount point (folder where you will go to see the files in linux) is /mnt/win
The share is named "Wshare" on the windows

you'll have to type :
mount -t cifs -o username="user" //192.168.0.2/Wshare /mnt/win
then you go to the /mnt/win folder an you should see the contents of the windows Wshare folder.
This system is totally independent from VBox, so it should work.

To create the share on windows, I think this is un properties of a folder.
The user name and password will be windows' ones.
Reply With Quote
  #9  
Old 28th August 2009, 10:27
mechrekt mechrekt is offline
Junior Member
 
Join Date: Aug 2009
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bad_crow View Post
Alright, I'll try to sum this up :
changes from Vbox are not comitted, changes from linux are effective.
Not exact: changes from Vbox are committed, but changes from linux are not effective.

Quote:
Originally Posted by bad_crow View Post
Creating a windows share is sharing a folder of windows over the network.
From linux, to access this folder you need to use a command looking like this :
mount -t cifs -o username="YYY" //Windows-IP-Address/share-name /mount/point

so let's say that username is "user", windows has 192.168.0.2 IP-address and the mount point (folder where you will go to see the files in linux) is /mnt/win
The share is named "Wshare" on the windows

you'll have to type :
mount -t cifs -o username="user" //192.168.0.2/Wshare /mnt/win
then you go to the /mnt/win folder an you should see the contents of the windows Wshare folder.
This system is totally independent from VBox, so it should work.

To create the share on windows, I think this is un properties of a folder.
The user name and password will be windows' ones.
Thank you for these suggestion, but I have 2 questions:
1) can I use the data partition also in native XP mode?
2) the only way to share this data partition is running XP from Vbox?

Last edited by mechrekt; 28th August 2009 at 10:30.
Reply With Quote
  #10  
Old 28th August 2009, 10:50
bad_crow bad_crow is offline
Member
 
Join Date: Jul 2009
Location: France
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

As long as you have an XP running, with network card activated and share configured this will work, no matter if it is native or vi

To connect to a windows share from another windows juste use this command in the execute menu : \\IP\share-name

The shared folder will be accessible in XP like if it wasn't shared (the XP which host the share).

The share is just another way to access the folder, you can still access mounting it through linux like you actually do but this will prevent conflicts because the linux will request a change, the XP will accept and execute the change so that only the XP will write even if you'll have the feeling that linux wrote the file.

The major drawback is that the password is sent in clear over network, but since you are in a virtualised environnement you can use a host-only mode by adding another card.

The share will act like an FTP server, maybe you are more familiar with this. you can access it over network but you can also access in local.



I don't know why this doesn't work via linux for you, maybe you should ask directly in a VBox forum if there's any kind of lock.

Last edited by bad_crow; 28th August 2009 at 10:52.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.