Setting up a windows XP + ubuntu box

10 Oct 2009

I got my netbook with Windows XP preinstalled, and installed ubuntu first thing. It is recommended to create three partitions, and 3 mount points:
I chose to have just the / and swap partitions. The / partition can be anything more than 6-7 GB, mine is a 10 GB allocation. Considering I did not plan to store any media files on this partition and will be restricted to development of applications and test projects.

Installation of ubuntu is getting easier by the days, mainly Jaunty installation is breezy. A few notes:-
Now once you have your ubuntu installed, reboot and login, and enjoy using the beautiful Gnome Desktop Environment.
A few must haves on Jaunty
Once the ubuntu installation is done, and the system is all set up:-

Mounting a partition, means loading a partition into a directory. A partition can be mounted into multiple folders. Note: This does not copy the contents, just 'loads' the drive onto the folder. The default ubuntu mount options are in the /etc/fstab folder.

Create folders in the /mnt directory for all windows drives. Mounting in /mnt is better than mounting in /media as it does not create icons on the desktop when the disks are mounted.

Navigate to Terminal (Accessories > Terminal) and type
cd /mnt

sudo mkdir windows eg: sudo mkdir windowsc

This will create the base folders to mount the C and D drives.

Make note of the device sda numbers by running

sudo fdisk -l

Now run
sudo gedit /etc/fstab
 

Comment out any lines which mount windows partitions.
Add lines to the end of the file, 
/dev/sda1 /mnt/windowsc/ ntfs ro,users,umask=0222 0 0
/dev/ /mnt/windowsd/ vfat users,umask=0,auto


Close the file and mount all partitions
sudo mount -a or sudo mount /mnt/windowsd


For ease of operation, create Music, Pictures etc. folders in the windows partitions.

 Now, all that needs to be done is to create symlink in your /home folder  to the mounted windows Media folder.

Run

cd /home/
rm -r Pictures
ln -s /mnt/windowsc/Music Music


Repeat this for all folders and now your Windows and Linux folders a reprefectly in sync, and easy to operate. Also, you can create favorites in Nautilus to these shortcuts by draggin the mto the favorites sections.