So if your like me your dual booting and for what ever reason you need or want to work on both OS's on your project. Well dont fear (much) i have found a easy simple way of doing it.
WARNING USE AT YOUR OWN RISK! OD NOT USE ON A WEB SERVER (Obvious reasons)
Also back up your XAMPP i am not liable if you dont!
First you need the following:
- NTFS partition
- A 512+MB Memory card or partition (tell you why later)
- XAMPP installed on Ubuntu and XP prefer same versions for compatibility lol... well MySQL anyways...
- Ability to mess with NTFS AKA "sudo apt-get ntfsprogs" also Gparted might be a good idea.
After installing on both OS's (or on the mem card for windows) boot into Ubuntu.
Note: Reason for the memory card is to minimize possible damage that can happen to your windows install but tell you the truth it should not matter since all thats required is one line of code to fix it all up.Go to the NTFS config tool if it pops up with auto configure hit cancel trust me lol. (Main Menu > System > Admin)
Note: If you hit auto configure are you will probably have to chown all your NTFS partitions back to normal... so dont!Now if your doing it from your windows partition you need to select internal and external if your using a Memory card or USB drive (which needs to be formated to NTFS to work, back up all data use gparted to create a NFTS partition on it) BUT before you do, make sure all drives/partitions are unselected! Not making sure will throw all partitions into roots care... then you will need to do the following to fix it:
sudo chown -R user:user <location to partition or HDD> Obviously replace user with your usernames group and username.
Note: you will need to do the above with the partition you choose anyways... Unless your using a USB/Mem cardAfter fixing all that you will need to enter "gksudo nautilus" just to make things faster

once nautilus loads head to /opt/lampp/var and rename mysql to what ever you wish (for back up reasons tho you could just install XAMPP again if its a fresh install to fix anything you have done). after that do the same to htdocs in /opt/lampp.
Warning: I have not tried htdocs yet! till i have, edit it (forget how to do it right now as in which index.php to edit) the index.php file that is the main page of xxamp and redirect it to the windows xampp. (a make link to the windows index.php might suffice) Works for me!
after renaming one or both folders go to the windows install (still in nautilus) and the directories are different. for htdocs its "/xampp/htdocs" and for the mysql it is "/xampp/mysql/data" Now make a link using "make link" in your right click option menu.
Note: I gave you the actual folders. if you copied and pasted the above quotes you will need to go up one dir.Cut and paste these links into their respective directories (htdocs goes where the renamed htdocs on your Ubuntu is same with the mysql).
Rename these from "link to data" to "mysql" and rename "Link to htdocs" to "htdocs".
Note: maybe different but will or should have data/htdocs at the end unless you renamed itYou can now close nautilus (gksudo/for now may wish to keep it open in case but throw it out of your way) open up terminal unless you never closed it if you even had one open.
type in:
sudo chown -R nobody:root /opt/lampp/var/mysql
sudo chown -R nobody:root /opt/lampp/htdocs
This will make both folders go to user root group root (oddly even tho you said nobody... no matter it should all work the same)
Note: you will need to sudo chown the folders back to your user that you wish to edit (like your site) if your using the main index as your site then i suggest throwing it all into a folder using "gksudo nautilus".now you should be able to run XAMPP on windows and Ubuntu as tho nothing ever changed
Warnings:
If your not careful you can mess up not only XAMPP but your whole install of Ubuntu and possibly windows.
Only been tested on XP!
I also have not tried editing a page yet but i dont see it will cause a issue as long as you chown the files back to your user.
using phpmyadmin works on input and no errors, I have not tried to edit any database yet but accessing the DBs seem to work flawlessly. I'll Throw up pics later... if someone tries this and cares to make pics on the way I'd be happy to add them. If not i will add pics when i install Ubuntu to try out 10.10.