5
4
Note: TL;DR, scroll to bottom for summary. I recently set up my computer for a dual boot between Ubuntu 9.10 and Windows 7. My current drive setup is as follows.
| A1 | A2 |
| B1 | B2 | B3 |
A1: 100 mb, windows 7 "System Reserved" boot partition
A2: 230 gb, data section, this one needs to be shared between the operating systems
B1: 125 gb, windows 7 OS
B2: 123 gb, ubuntu OS
B3: 2gb, linux swap space
Pretty much I want to have my documents, music, pictures, videos, etc accessible from both operating systems. My first attempt involved making the data (a2) partition NTFS, and moving my home folder from ubuntu to the data partition. However, as I read NTFS does not work nice with permission, and it messed up my home folder. My next idea is one of the following: 1) format the data partition to ext2/3/4 and move my home folder from linux there, and get a driver to read ext partitions in windows 7. The problem with that is that most of the ext drivers/software are not compatible with windows 7 or do not integrate with windows explorer (I really don't want to open a separate software window just to access my data, plus it's probably not compatible with other software.) Ext2 IFS looks promising, but I'm not sure how it works with ext4 and windows 7 (not officially supported, when trying in Vista Compatibility Mode, it tells me I need to format the ext drive to use it). My next idea, 2) keep the home folder in ubuntu where it is, but create symlinks for the Documents, Music, etc folders to an NTFS formatted Data (A2) partition, and add those locations to the windows 7 libraries. I'm not totally sure how the permissions would work out, but it should be fine since it's only the documents, music, etc and not the important config files in the rest of /home/user/
. Correct me if I'm wrong. Currently, symlinks is my best idea, although i'm not sure how it will work.
Any suggestions, additions to my ideas, links, pointers, whatever would be greatly appreciated. Even if it means I should reformat both my drives and repartition (2 250gb drives if you want to suggest a setup for that), I won't be too opposed if that's the best suggestion (I've gone through the format/install/format/reinstall process 5 times over the past 3 days, once more won't hurt me).
TL;DR, summary:
I have two hard drives. One is partitioned for Ubuntu and Windows 7, the second one I want accessible to both operating systems to store documents, music, pictures, videos, etc. Suggestions on how to set up the data drive.
P.S. bonus if I can get an apache server document root folder working between the two OS's as well (permissions could become very complicated, so don't worry too much about that)
P.P.S. Related question, but data viewing is one way: Partition scheme and size for dual boot Windows 7 and Ubuntu 9.10 with separate partitions for data and /home
Ooh very nice. Thanks for this, exactly what i need. I'm going to bring my boot partition next to my windows partition and see how that works. also if you have the symlinks setup working, I'll try that as well. Going to upvote for now and wait if anything else pops up. – wizjany – 2010-04-20T02:57:45.727
Thanks, it worked out great! I moved my windows 7 boot partition to the OS disk and made sure the booting still worked, then created symlinks from my Ubuntu and Windows data folders to the folders on the data drive, and everything is working great. – wizjany – 2010-04-21T01:15:15.033
@wizjany Good to hear! – Sathyajith Bhat – 2010-04-21T11:19:34.483
I'm planning a dual boot too and your way of doing things looks like the best 1. I have queries though: why do we need such a large partition for linux swap space? – vedant – 2013-01-05T08:41:59.677
and I had big problems using the default windows formatted shared NTFS partition. Files/Folders created in Linux were not showing in Windows Explorer. Don't you face a similar problem? or you are using some software to create/manage the NTFS partition – vedant – 2013-01-05T08:53:38.320
@vedant1811 2GB of swap space should be sufficient.With large amounts of RAM, the swap file shouldn't be hitting that much. Haven't run into the other problem you mention. No extra software was used – Sathyajith Bhat – 2013-01-05T19:09:27.003
I left 100GB of "unallocated space" in my HDD and let fedora manage the space on its own (using "üse unallocated space" during fedora installation). I'm still not sure of the break-up of that space. As for my problem, it was probably caused by using fedora while windows was in hibernatinon. BIG MISTAKE! Led to data loss – vedant – 2013-01-07T08:11:30.120