If you're interested in mounting your NTFS partition(s) every time you boot your Linux system, you should add the mount instructions to the file
/etc/fstab. As a possible model, here's a copy of the
/etc/fstab I use for my Ubuntu system:
Code:
$ cat /Jaunty/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda6
UUID=78b0b290-2ee7-46b1-a6b5-6eae61531fec / ext3 relatime,errors=remount-ro 0 1
# /dev/sda7
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
# Ubuntu 8.10
/dev/sda7 /Ubuntu ext3 defaults 0 2
# /dev/Fedora/Base
/dev/Fedora/Base /Fedora ext3 defaults 0 2
/dev/sdb1 /Fedora/boot ext3 defaults 0 2
# Vista
/dev/sda1 /Vista ntfs-3g defaults 0 0
/dev/sda2 /Vista/Recovery ntfs-3g defaults 0 0
Note that the mount points listed in the second column must be created before
fstab is used.
In the above example, the last two entries are NTFS partitions. So, in order to set up the automatic mounting of the two partitions, I opened a terminal window and entered the following commands (Comments indicated by a bang (!) in the line):
Code:
$ sudo su - ! Switch to running as root
Password: ! Enter the password for "root"
# mkdir /Vista ! Create the mount point
# mkdir /Vista/Recovery ! Create the second mount point
# nano /etc/fstab ! Use the nano editor to add the two lines from the example (or whatever you're using) to /etc/fstab
# mount /Vista ! To verify that the /Vista entry is correct
# mount /Vista/Recovery ! To verify that the second entry is correct
# ls /Vista ! To look at the C:\ drive's contents
# exit ! To get out of "root" mode
$ exit ! To close the terminal session
Note:
nano is not a fancy editor, but it works even when the window system is not available, so it's worth using just in case you need it some time. But you can substitute any editor you wish to use whet I suggested
nano.
Warning: Some system will fail to boot if there are errors in
/etc/fstab so you should always be sure to test your changes before you reboot.
Note 2: If you're running a Ubuntu distribution, the
sudo su - command may not work because Ubuntu disables root logon. So, on a Ubuntu system, you may need to precede
mkdir,
nano and
mount commands by a
sudo.