#! /bin/bash # In my fedora 16, i have a windows 7 sitting in the same hard disk. # To check the windows' partition info, issue sudo fdisk -l | grep dev # From the grep out, I found the partition for the Windows 7: /dev/sda3. In addition, in my acer aspire, the Windows7 is mounted as /media/ACER. Hence, the line to be added in /etc/fstab to automount the windows on booting fedora is # '/dev/sda3 /media/ACER ntfs-3g defaults,exec,fmask=023 0 0' # Executing this shell script as root shall add this line automatically into /etc/fstab. echo '/dev/sda3 /media/ACER ntfs-3g defaults,exec,fmask=023 0 0' >> /etc/fstab # Reboot is required. # This info is based on http://askubuntu.com/questions/5069/cant-set-permissions-for-files-on-an-ntfs-partition