shared partition with a windows install - modifying directories while hibernated
Hi, I dual boot windows 7 and linux mint (though I rarely have occasion to boot into windows) and have a partition named 'data' that I use to share files between the two installs. I put all my documents/photos/school stuff etc... on that parition.
I have run into problems with this set-up though. If I hibernate linux, boot into windows and make any modifications to the 'data' partition such as adding new files or directories, or modifying existing ones, and then shut down windows and boot back into linux, linux does not recoginze the changes to the partition - it still "sees" what the partition looked like before, and if I access any directories which were modified while linux was hibernated, disk errors occur and I have to repair the parition with fdisk using windows (because it is an ntfs file system). I'm guessing this is because linux has not unmounted the data partition while it went down for hibernation, but I'm not entirely sure. How can I fix this such that the parition can be properly shared between both operating systems? Thanks! |
If you really mean you hibernate Linux as opposed to shutting it down, it might(?) the problem; hibernate tries to maintain the image.
You should always shutdown an OS properly/completely if intending to access disks from another OS. |
Quote:
Are you saying there's no way to safely do what I would like to do? What if I manually unmount the shared parition, hibernate, and the re-mount it? |
|
If Linux is the main OS you spend most of the time and windows is used only for window’s specific job like office/games etc, then why not make shared partition as ext3 type.
I have same scenario. I use CentOS & Windows 8, where CentOS is my main OS. I have one shared partition called DC of type ext3, which is fully compatible in linux. I have installed 'Ext2Fsd' in windows 8 which allows read/write access to ext3 partition and it will also mount and give drive letter to that partition. So while i'm in linux downloading a movie in deluge, when I switch to windows, I can still continue to download that torrent file in BitTorrent. Since Ext2Fsd gives partition a drive letter, for all practical purpose it is considered as windows partition. Take a look at this: 3 Ways to Access Your Linux Partitions From Windows A Comprehensive Guide to Sharing Your Data Across Multi-Booting Windows, Mac, and Linux PCs Hopefully it may also solve the problem caused by hibernation. |
You would have to have the hibernated OS double check data on wake and I am not sure windows can do that. I have not heard of Linux doing it exactly either. Depending on the filesystem would be the only solution. Open files on the target might spell disaster.
Windows tends to be a hybrid sleep and not a true hibernate that confounds the issue more. |
Could a script be added to etc/pm/sleep.d/ or similar to unmount the shared partition before the system hibernates?
Edit: There's an explanation here http://wiki.debian.org/Hibernation Instead of the bluetooth and wireless commands given in their example you could issue umount and mount for your data partition. |
Quote:
Are you sure the same thing doesn't affect you? Try hibernating linux, booting windows, creating some new folder in the shared parition with a testfile in it, then shut down windows and resume linux and see if it recognizes the new folder. If you haven't done any specific configuration to address this, I don't see how you won't have the same problem. Quote:
|
Seems like the scripts are working! If I run into additional problems I'll report back.
|
All times are GMT -5. The time now is 04:52 PM. |