Wednesday, November 24, 2010

Mounting NTFS file system

In order to mount NTFS file system automatically everytime you log in into your system we have to do the following:
1.Install ntfs-3g in terminal or Synaptic Package Manager

#aptitude install ntfs-3g

2. Check the device for NTFS

#fdisk -l
# Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 6630 9728 24892717+ f W95 Ext'd (LBA)
/dev/sda3 3825 6629 22531162+ 83 Linux
/dev/sda5 6757 9728 23872558+ b W95 FAT32
/dev/sda6 6630 6756 1020064+ 82 Linux swap / Solaris


3. Add NTFS in static file system information and do the following:

#gedit(vim) /etc/fstab
# /etc/fstab: static file system information.
file system | mount point | type | options | dump | pass
proc /proc proc defaults 0 0
/dev/sda3 / ext3 errors=remount-ro 0 1
/dev/sda5 /media/common vfat user,rw,noauto 0 0
/dev/sda6 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda1 /media/WINDOWS ntfs-3g rw,user,uid=1000 0 0
~
~

4. Finally, run in terminal:

#mkdir /media/WINDOWS or any name
#mount -t ntfs-3g /dev/sda1 /media/WINDOWS/


Hope it will work!

No comments:

Post a Comment