# Assume you have a dual boot hardisk containing a linux and a Windows. This script is meant for mouting the Windows partition in the linux so that you can read, write to the Windows partition from the linux. This script is proven to work on my ubuntu 11. Theoretically it should also work for other linux. Run this script as root in your linux terminal. In the next reboot you shall be able to have your Windows mounted automatically in your linux. # Prerequisite: You may need to install ntsf or ntsf-3g before the windows can be accessed with rw from linux, e.g. (in ubuntu) #sudo apt-get install ntfs-config # 1. Use the following to check the info of partitions and mount points in your harddisk. # df -l # 2. Use the following to get obtain the uui for the partition # sudo blkid # ls -l /dev/disk/by-uuid # For example, after 1 and 2, you will found the windows is mounted as /dev/sda3 with an uuid of D036338536336B9A. # 3. Edit the /etc/fstab to put in a line to permanently mount the windows: # /media/ ntfs-3g defaults,user,locale=en_US.utf8 0 0 # Backup the original one before modification. sudo cp /etc/fstab /etc/fstab.orig #To do the editing, use gkduso (this is optional. If gksudo is not installed in your linux, just edit the fstab file using any other text-editing mean). #gksudo gedit /etc/fstab #For example, in my ubuntu 11.10, the entry for /dev/sda3 looks like #UUID=D036338536336B9A /media/ACER ntfs-3g defaults,user,locale=en_US.utf8 0 0 #The above procedures and info allow me to mount the windows, allowing rw permission, upon booting my ubuntu. #4. One may install psdym, a gui to configure fstab to ease the configuration. Once installed, it can be launched via #sudo psdym #Reference: https://help.ubuntu.com/community/MountingWindowsPartitions # Executing this shell script as root shall add the above line in /etc/fstab automatically. # Running this scrip shall automatically modify the /etc/fstab content. If you want to use this script, make sure that you have modified the UUID in the following line #echo '/dev/sda3 /media/ACER ntfs-3g defaults,exec,fmask=023 0 0' >> /etc/fstab echo 'UUID=D036338536336B9A /media/ACER ntfs-3g defaults,user,locale=en_US.utf8 0 0' >> /etc/fstab # Reboot is required