shared partition with a windows install - modifying directories while hibernated
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
Yes I mean hibernate. The reason for hibernation is because I only use windows for things I can't do with linux (mostly to run certain proprietary software I need for school which is too buggy to be used in Wine). It can be somewhat inconvienent to have to shut down linux completely and have everything I may be working on interrupted.
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.
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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.
Hopefully it may also solve the problem caused by hibernation.
I don't see why changing the file system to ext3 would solve my issue...
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:
Originally Posted by 273
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.
I think this should work. I'll give it a shot and report back. In the meantime, can anyone see why this shouldn't work?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.