If you have setup a Microsoft Windows and Linux dual boot system you may want to mount the windows partition automatically when you boot into GNU/Linux. As usual I don't suggest using any special scripts or packages for this. We will use the standard *nix files system table (fstab for short) file which stores all the entries about all known filesystems on the system and place an entry for our partition.
Lets get started,Just place the following line into your /etc/fstab (filesystem table) file and you are done.
/dev/hdaX /mnt/C vfat defaults,auto 0 0
- /dev/hdaX if you are using a IDE harddrive, X is the number of the partition (use fdisk -l to list your partition info)
- /mnt/C the mount point, where the windows partition is attached
- vfat - vfat for 98x or ntfs for NTFS partition
- auto - Mount the partition at boot time
Other possible parameters you can use uid/gid , showexec, umask etc.. the fstab manual page (man fstab) has detailed information about all the options.
Also if you want your windows partition to check for errors with fsck.vfat at boot time check the last entry in the line from 0 0 to 0 1 .
No comments:
Post a Comment
You can leave a comment here using your Google account, OpenID or as an anonymous user.