Main Menu
Home
Software
Forum
Search
Links
Contact
Services Store
Guides
Business
Hardware
Linux
Web Development
Myspace Tools
Contact Table Tool
Background Tool
Latest Articles
Statistics
Members: 89
Articles: 130
Visitors: 175590
Login
Mounting an NTFS Partition PDF Print E-mail
If you're using an NTFS partition from a pre-existing Windows installation and you'd like access in Linux.

Ok, first let me say that WRITING to an NTFS partition is considered experimental at best. I take no responsibility for anyone who chooses to do this. The purpose I had in mounting my NTFS was to transfer my library of music and movies from an NTFS drive to my Ext3 Linux drive.

First, we need to list what you have in terms of partitions available. Open up a terminal session and type the following:

sudo fdisk -l

You’re looking for the NTFS partition. The following is my output from the last command:

 Device Boot      Start           End        Blocks           Id       System
/dev/sda1   *           1           30023     241159716    83       Linux
/dev/sda2           30024       30401     3036285        5         Extended
/dev/sda5           30024       30401     3036253+      82       Linux swap / Solaris
/dev/hda1   *           1           2533       20346291      c         W95 FAT32 (LBA)
/dev/hdc1   *           1           9728       78140128+    7         HPFS/NTFS

From this we can tell I have 3 hard drives installed: sda with 3 partitions, hda with 1 partition and hdc with one partition. As you can see, hdc1 is the partition we want to mount, so we'll focus on that.

Now, let's ensure that we have all the needed packages before we process. In the console, execute the following:

sudo apt-get install libfuse2 fuse-utils libntfs8 ntfsprogs

Let's add FUSE to the list Linux will use at boot:

echo fuse | sudo tee -a /etc/modules

Now, we need to create the group who can access NTFS. Write down the GUID as you will need it later:

sudo addgroup ntfs

Now, let's create the mountpoint then change the fstab (backing it up, of course:

sudo mkdir /windows_drive

sudo cp /etc/fstab /etc/fstab.bak

gksudo gedit /etc/fstab

You should see something like this:

<file system> <mount point>   <type>           <options>       <dump>  <pass>
proc               /proc                   proc               defaults           0             0
/dev/sda1       /                          ext3               defaults,errors=remount-ro  0       1
/dev/sda5       none                   swap             sw                   0            0
/dev/hdd        /media/cdrom0    udf,iso9660   user,noauto    0             0
/dev/hda1       /windows vfat     iocharset=utf8,umask=000 0              0

I need to add this to that list to get my NTFS partition working. In the entry 'gid=1001', Please insert the GID you got earlier when creating the group. Also, this is my addition, as I mounting hdc1, you will want to change that for your partition:

/dev/hdc1 /windows_drive ntfs-fuse auto,gid=1001,umask=0002 0 0

Now, add yourself to the group you created earlier, please insert your username in the spot where 'USERNAME' is, as I'm sure that isn't your actual username:

sudo adduser USERNAME ntfs

Now, let's fix a known bug:

sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse

Reboot. Voila!

 

©2008 Cody-Snider.com


SEO Consultation - By Codesource-seo.com