RSS

Ubuntu Tricks - How to mount your Windows partition and make it read/writable with NTFS-3G

Wed, Nov 1, 2006

ArsGeek, Linux, Ubuntu, Windows

Talk about it in our Forums

vista3.jpg

Previously I looked at mounting your NTFS drive on your Ubuntu box using raw Fuse to do it. Now we’re going to look at what may be a better way to do it. It’s certainly easier and from reports, NTFS-3G is a bit more stable as well. This Howto is written specifically for and from Ubuntu 6.10 - Edgy Eft but should work on any Debian based distro.


It should be noted that NTFS-3G is a BETA project (It’s sinced moved to release 1.0) and as such may contain bugs and issues. Writing to NTFS from Linux may be unstable so you should use this at your own risk.

The first thing you’re going to have to do is install NTFS-3G. Let’s open up a terminal session and do the following:

sudo apt-get update

sudo apt-get install ntfs-3g

You’ll be prompted to install this and several other dependancies as well. If you run into errors where ntfs-3g can’t be found, check out this article about adding extra repositories.

Now that NTFS-3G is installed, it’s time to tell your box to use it to mount your NTFS partition. Let’s find out where exactly that is. Back in your terminal type

sudo fdisk -l

You should get something that looks like this:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20480008+ 7 HPFS/NTFS
/dev/sda2 2550 7493 39707451+ f W95 Ext’d (LBA)
/dev/sda3 7494 9729 17960670 83 Linux
/dev/sda5 2550 7394 38911288+ b W95 FAT32
/dev/sda6 7395 7493 795186 82 Linux swap / Solaris

We’re interested in the partition that says HPFS/NTFS. Notice that on my machine it’s /dev/sda1. You’ll want to keep track of this for yours. I suggest spelling it out in leftover Halloween candy on your desk, or for a spooky effect, use fake blood.

Now that you have your info on the NTFS partition, let’s edit the fstab file in your /etc directory to use NTFS-3G.

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

Always make backups of stuff like this. Really.

Many Ubuntu users will find that the fstab already reflects their NTFS drive as mounted in the /media folder. This is standard but does not allow write access, only read access. We’re going to change this to use NTFS-3G. To see what you have do the following:

cat /etc/fstab

If you have a mount point already for your NTFS partition, it will look something like:

/dev/sda1 /media/sda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1

You’ll want to replace the bit that says ntfs with ntfs-3g, so it looks like this:

gksu gedit /etc/fstab

Now add:

/dev/sda1 /media/sda1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

Replace the /dev/sda1 bit with whatever you wrote down from your fdisk -l output and save the file.

If you don’t have this listed at all, you’ll want to create a mount point in your /media folder. If you want to call it ‘windows‘ then you’d make a directory under /media called windows:

sudo mkdir /media/windows

Then add the below line to your /etc/fstab file:

gksu gedit /etc/fstab

Now add:

/dev/sda1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

Finally, restart your machine. Your Windows partition should now be on your desktop, and you can access it through your terminal by going to /media and then cd into the directory your using.

Thanks go to the folks at ntfs.org who have an excellent Wiki on NTFS-3G that you should check out.

Technorati Tags: , , , , ,

The new web hosting service review states that with new affiliate marketing plans coming up, websites are losing their integrity. This is because people are unaware of the ethics to work about an affiliate marketing program. In such cases, seo demands special considerations and strategies like email marketing or adsense or pay per click cannot be employed freely in such cases. The marketing methods need to be adopted from advertising agencies.

Click the icon, share the link:
  • Digg
  • del.icio.us
  • MisterWong
  • Furl
  • Reddit
  • Technorati
  • BlinkList
  • feedmelinks
  • PopCurrent
  • Blogosphere News
  • Facebook
  • Fark
  • Mixx
  • Slashdot

This post was written by:

arsgeek - who has written 1980 posts on ArsGeek.


Contact the author

53 Comments For This Post

  1. Bob Roskins Says:

    Love the ubuntu, but all this terminal stuff just scares users away… this sort of compatibilty stuff should be at the top of the list of priorities for ubuntu… Focus less on creating a better gtk+ dohick widget and get compatibility sorted!

  2. arsgeek Says:

    Hey Bob,

    NTFS-3G isn’t put together by Ubuntu, but by a third party. I’m sure the whole Linux community would love to work on compatibility with Microsoft and other 3rd party vendors, but they’re all closed source.

    If we can’t see what they’re doing, then it becomes much harder to work on compatibility.

  3. Ed Says:

    This doesn’t seem to work for me. When I right click on a file in the ntfs drive i’m still unable to delete or copy and paste somewhere else in the drive. Do I need to be root?

  4. arsgeek Says:

    Hi Ed,

    That’s odd. Works fine for me. What type of error do you get? Or is it just not letting you do this?

  5. Ed Says:

    Hi

    No error messages. I’m able to follow the steps correctly and opening /etc/fstab I can see the lines added in there. No write access even after a reboot.

  6. arsgeek Says:

    Ed,

    Could you post your /etc/fstab here?

  7. Ed Says:

    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/hdb2
    UUID=f8fd47c8-bf46-4f79-a06e-217f845991af / ext3 defaults,errors=remount-ro 0 1
    # /dev/hda1
    UUID=E2848D3C848D1467 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/hdb1
    UUID=DE44EA6144EA3C41 /media/hdb1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/hdb3
    UUID=55aa2251-1529-4805-be41-127e6ce44751 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
    /dev/ /media/floppy0 auto rw,user,noauto 0 0
    /dev/hda1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
    /dev/hdb1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    I’m seeing different mount points here.. wondering if that has anything to do with it.

  8. arsgeek Says:

    Hey Ed,

    I think the issue is that your fstab is still set to mount your NTFS partitions as ‘ntfs‘ not ‘ntfs-3g‘.

    Your NTFS partitions should look like this:

    UUID=E2848D3C848D1467 /media/hda1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    You can remove the second references that were added for your ntfs partitions and simply change the originals to ntfs-3g.

    Let me know how that works for you.

  9. Ed Says:

    Well.. I changed the ‘ntfs’ to ‘ntfs-3g’ but now it does not mount those partitions at all at startup.

    I might just do a clean install of edgy and try this again. Thanks for the help.

  10. Ahmed Says:

    Ed, the other fstab entries are commented (rightly so) so you don’t have two references to the same partition.
    when you did what arsgeek said though, you removed the mount reference from fstab and you changed a commented reference (which is typically ignored)

  11. Ed Says:

    Hmm.. could someone show what their fstab entries look like after following these steps?

  12. Ben Says:

    Ed, there are a couple problems with the fstab you posted above. First, you _do_ have two entries for your ntfs partitions. The lines you added at the end have the additional problem of telling mount to mount two different partitions in the same place: /media/windows. That’s not right. Take those two lines out. Then change the two instances of ntfs in there to ntfs-3g.

    A reinstall is definatly not required. Also, read the man pages for mount and fstab if you don’t understand what you’re doing and why you’re doing it.

    Here is my fstab after installing ntfs-3g for reference. These lines will probably wrap when I post this. Every mount entry should be one line.

    duke% more /etc/fstab
    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/sdb2 — converted during upgrade to edgy
    UUID=75176e3a-494e-4559-abfc-d2993942b48a / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda1 — converted during upgrade to edgy
    UUID=2EDC6C45DC6C0A03 /media/sda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/sdb1 — converted during upgrade to edgy
    UUID=2CD8ACC0D8AC8A22 /media/sdb1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/sdb3 — converted during upgrade to edgy
    UUID=3438ae1a-f137-45d4-bfb1-bddc7a53bf3e none swap sw 0 0
    /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0

    couple notes about mine. I have sata drives, that’s why mine say sd* instead of hd*. I also don’t want to mount the partition windows is installed on(sda1) as rw, so I left that volume as ntfs.

  13. Manuel Portugal Pires Says:

    I instaled ubuntu 06.10 in an USB external disk.
    It worked well.
    Some days after I have to modify the partitions of the intenal disk.
    Since then, as the fstab have the old UUID, I am not able to modify them to mount the new partitions os my internal disc, because I do not know the new respective UUID of them.
    The UBUNTU 06.06 had the name of the partions (for exemple: /dev/hda5) and not the UUID, and it was easier to modify.

  14. mowdy Says:

    Hello

    i have 3 windows(ntfs) partions(c:\ , d:\ and E:\
    i have 2 harddrives
    harddrive 1 160gb: d:\(ntfs) and z:\(this is linux,ubuntu6.10)
    hardrive 2 80gb:c:\(windows xp sp2) e:(ntfs)

    the d:\ partition i worked fine but i am not getting it to work on e:\, witch is what i want.

    does someone no what to do????

  15. Mony Says:

    I have have recently brought my usb drive to my friend’s house to share some stuff. When I came back, I replugged my usb drive, ubuntu didn’t mount it. Here’s my fstab:

    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/hda2
    UUID=7d01ba37-0279-4e6b-9d32-e5daa5ba0485 / ext3 defaults,errors=remount-ro 0 1
    # /dev/hda6
    UUID=456C-2853 /media/hda6 vfat defaults,utf8,umask=007,gid=46 0 1
    # /dev/hda5
    UUID=d0cef6ad-ddb8-404c-a8df-fd4e39024c8d none swap sw 0 0
    /dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/sda /media/cdrom1 udf,iso9660 user,noauto 0 0
    /dev/ /media/floppy0 auto rw,user,noauto 0 0
    /dev/sda1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    I tried doing the steps on this guide over and over and nothing worked. Before that incident everything was working perfectly. Can anyone help me please?… Don’t want to go back to Windows….

  16. me Says:

    Nice guide worked just fine, except the mounts failed for me because the last time i was in windows it crashed *gasp* so the ntfs journals were not correct. I had to either boot windows again to allow chkdsk to run, or use ntfsfix to reset the journal. Other than that, a-ok.

  17. Trung Says:

    I tried this on Kubuntu Drapper. Everything works fine in console (I can delete file in windows partition). But: Konqueror shows (in system:/media) that the drive is not mounted, eventhough it is actually mounted, and Konqueror insists on mouting it when double-click on the drive icon (and then it get error: “Could not mount device. The reported error was: mount: according to mtab, /dev/hda1 is already mounted on /media/hda1 mount failed”).

    Any help?

  18. Trung Says:

    More on above bug:

    Konqueror can access “/media/hda1″ with no problem!

    But the above problem still persist when accessing: “system:/media/hda1″

  19. arsgeek Says:

    Hey Trung,

    I’m not terribly familiar with KDE so I’m not quite sure what’s going on. If I can track something down for you though, I’ll post it here.

  20. Trung Says:

    It’s ok now, I have not done anything special; after several restart, it looks like some cache was cleared.

  21. Patrick Says:

    Hey I’m having problems getting a second NTFS drive mounted. I think it is called hdb2, but I am brand new to linux / ubuntu, so I have no idea. It is a separate physical drive, so maybe there is something else I have to do here, because it isn’t a partition. Help?
    Note:the first partition hdb1 mounts fine, perfect read write access.

    –fstab–
    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/hdb3
    UUID=da727964-1f30-4c48-818b-0f4394e06d3d / ext3 defaults,errors=remount-ro 0 1
    # /dev/hdb5
    UUID=4dd6b697-9a76-4b07-b36d-a4b6b436f413 none swap sw 0 0
    /dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/ /media/floppy0 auto rw,user,noauto 0 0
    /dev/hdb1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
    /dev/hdb2 /media/WinDrive2 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    –fdisk -l–
    Disk /dev/hdb: 8455 MB, 8455200768 bytes
    255 heads, 63 sectors/track, 1027 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 510 4096543+ 7 HPFS/NTFS
    /dev/hdb2 511 684 1397655 7 HPFS/NTFS
    /dev/hdb3 685 1008 2602530 83 Linux
    /dev/hdb4 1009 1027 152617+ 5 Extended
    /dev/hdb5 1009 1027 152586 82 Linux swap / Solaris

  22. Joe f. Says:

    Thank you!

    I can now use Windows partition and my 250 GB USB drive. This is a giant step forward for me, a UBUNTU newbie, especially since the USB drive does not work well in XP, delivering Delayed Write Errors which neither HP nor Microsoft can fix.

  23. arsgeek Says:

    Nice Joe, glad this works for you!

  24. greywulf Says:

    Worked for me perfectly, first time!

    After being frustrated by fuse occasionally saying it couldn’t write to the drive, this is a HUGE step forward. Thank you :)

  25. dexterelu Says:

    Hi
    After a few weeks of running swimmingly, ubuntu decided to let me down today :(

    Sure, I double checked /etc/fstab, but found nothing wrong with it. SOOO… I just typed sudo ntfs-config and disabled disk writing… checked fstab… ntfs (no -3g). Right… sudo ntfs-config again, enable disk writing.
    Guess what? Error message: Mounting /media/hda1 failed. Volume is scheduled for check. Please boot into Windows TWICE, or use the ‘force’ mount option. And so I did… I let CHKDISK do it’s work for a while, until it began filling the screen with something like ‘Deleting index entry $0 in file 25′. I’d normally let it do it’s stuff for some time, but the thought that the same entry in the same file is being accessed (written to) for so many times makes me wonder whether I’m going to damage my drive by rewriting to the same file one too many times or it’s just something that CHKDSK needs to do to continue. Again, it’s file 25, entry $0. It never changed during scans (I restared a few times, not knowing what to do).

    Long story short: should I let CHKDSK finish or should I just force mount the drive (and how) ?

    Here’s my /etc/fstab:
    # /etc/fstab: static file system information.
    #
    # — This file has been automaticly generated by ntfs-config —
    #
    #

    proc /proc proc defaults 0 0
    # Entry for /dev/hda3 :
    UUID=c77ccb08-c12e-4e35-9364-47f06d818bd0 / ext3 defaults,errors=remount-ro 0 1
    # Entry for /dev/hda1 :
    UUID=58D823F4D823CED6 /media/hda1 ntfs-3g defaults,locale=en_US.UTF-8 0 1
    # Entry for /dev/hda2 :
    UUID=541609ce-d96e-4071-b2f5-5276ef7e24a1 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/ /media/floppy0 auto rw,user,noauto 0 0

    Thank you for your time and hope to get some feedback (any idea might help),

    Paul Raetchi

  26. Ziyad Says:

    Im having the same problem with my second NTFS drive, the 1st one, which is on the same drive, but different partition as Ubuntu mounts, but the other one which is a different drive completely, does not mount.

    my fstab looks like

    # /etc/fstab: static file system information.
    #
    # — This file has been automaticly generated by ntfs-config —
    #
    #

    proc /proc proc defaults 0 0
    # Entry for /dev/sda5 :
    UUID=3335f1ec-1a15-40e3-9607-59de6e768c51 / ext3 defaults,errors=remount-ro 0 1
    # Entry for /dev/sda4 :
    UUID=ce1e2c7a-069e-4d72-8d31-c93849d81302 none swap sw 0 0
    /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
    /dev/sda2 /media/PRESARIO ntfs-3g defaults,locale=en_US.UTF-8 0 0
    /dev/sdb1 /media/sdb1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
    gksu gedit /etc/fstab 0 0
    /dev/sdb1 /media/Ziyad ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    and yes, i’m using the updated NTFS-3G thing.

    Thanks.

  27. Adrian Says:

    Hi there. I followed these instructions, but my Windows (NTFS) disk still isn’t showing at all. Here is my fstab, is there anything obviously wrong here?

    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/sdb2
    UUID=18b9d967-0b3a-400c-a714-5cf127165bd4 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sdb5
    UUID=9e89befc-e440-4789-ab92-cda3be09b72d none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/ /media/floppy0 auto rw,user,noauto 0 0
    # /dev/sda1
    UUID=E0D0B14BD0B128A4 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

  28. arsgeek Says:

    Hey Adrian,

    This one’s your windows tab:

    UUID=E0D0B14BD0B128A4 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    It looks to be mounted under /media/windows.

    If you move to that directory, what do you see? Is it possible that your NTFS drive is mounted but isn’t showing up on your desktop?

    What happens when you type ‘mount’ to see what’s mounted?

  29. Chewy Says:

    Hi ArsGeek,
    Treid this method and it didn’t work.

    After this:
    admin@admin-desktop:~$ gksu gedit /etc/fstab
    (gedit:5726): GnomeUI-WARNING **: While connecting to session manager:
    Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

    My fstab (\etc) looks like this:
    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/sda2 — converted during upgrade to edgy
    UUID=f7d4c838-680e-4b62-a3d1-764af6889409 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda5 — converted during upgrade to edgy
    UUID=d06400ce-f789-46ea-9e60-3b2fd3b5aaf8 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/sda1 /media/sda1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    I notice there is no UUID for sda1. Is this the problem and how can i fix it?

    thanks ;-)

  30. arsgeek Says:

    Hi Chewy,

    Try these two links and see if they help you out.

    http://www.ubuntuforums.org/showthread.php?t=217009

    http://ubuntuforums.org/showthread.php?t=323401

  31. Chewy Says:

    Hi again ArsGeek!
    Thanks to you and the Ubuntu forum people it is now fixed and my Windose everything is now working as it should be.
    Thanks again! ;-)

  32. arsgeek Says:

    Excellent! Glad you got everything working.

  33. Gonarat Says:

    I know I’m late to the party, but I installed ntfs-3g and it did not want to work. I went back to ntfs, and was able to read the Windows partition just fine.

    A little investigation (and a D’oh moment) later — I did not shut down Windows XP properly last time I used it (I suspended the laptop and let the battery run down).

    Booting into Windows and letting it get the NTFS structure into order solved the problem. I shut down Windows correctly, then restarted the machine into Ubuntu, and all was well.

    Just my $0.02.

    Bill

  34. arsgeek Says:

    Hey Bill,

    Great tip! Thanks.

  35. strider Says:

    Disk /dev/hdd: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdd1 1 30401 244196001 42 SFS
    strider@Strider:~$ sudo cp /etc/fstab /etc/fstab.bak
    strider@Strider:~$ cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/hda2
    UUID=72f23c28-31d8-4b10-8b78-1a902275b79f / ext3 defaults,errors=remount-ro 0 1
    # /dev/hda5
    UUID=1c974007-ce29-4960-8c1f-b4b01b40d433 none swap sw 0 0
    /dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
    gksu gedit /etc/fstab
    /dev/hda1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
    strider@Strider:~$ /dev/hdd1 /media/hdd1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1bash: /dev/hdd1: Permission denied
    strider@Strider:~$ /dev/hdd1 /media/sda1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
    bash: /dev/hdd1: Permission denied
    strider@Strider:~$

    what am i doing wrong

  36. Srikar Says:

    i followed all directions to the t and even went to the website that arsgeek provided for chewy. i am including my fstab and also what happens when i do fdisk. i want to be able to read and write to the ntfs partition but it wont mount. someone please help and tell me what is wrong.

    # /etc/fstab: static file system information.
    #
    # — This file has been automaticly generated by ntfs-config —
    #
    #

    proc /proc proc defaults 0 0
    # Entry for /dev/hda1 :
    UUID=16d3e8d4-04a2-4eaa-b59f-bfd59e79e215 / ext3 defaults,errors=remount-ro 0 1
    # Entry for /dev/hda6 :
    UUID=5371f8b2-6277-4493-bfed-8a99f5188986 none swap sw 0 0
    /dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/hdc /media/cdrom1 udf,iso9660 user,noauto 0 0
    /dev/hda5 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

    srikar@Anubis:~$ sudo umount /dev/hda5
    Password:
    umount: /dev/hda5: not mounted
    srikar@Anubis:~$ sudo fdisk -l

    Disk /dev/hda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 1584 12723448+ 83 Linux
    /dev/hda2 1585 19457 143564872+ 5 Extended
    /dev/hda5 1657 19457 142986499+ 7 HPFS/NTFS
    /dev/hda6 1585 1656 578277 82 Linux swap / Solaris

    Partition table entries are not in disk order
    srikar@Anubis:~$ sudo umount /dev/hda2
    umount: /dev/hda2: not mounted

  37. Adrian Says:

    Thanks for the reply arsgeek, but I got it all working in the end.

    It looks like it was mounting, but only root was allowed access, so I added “user” to the options in fstab and it all worked perfectly!

    So the line in my fstab is:

    # /dev/sda1
    /dev/sda1 /media/windows ntfs-3g user,exec,auto

  38. Srikar Says:

    ok so i looked around at other people’s fstab files and noticed they all have uuid’s referencing their partitions so i looked mine up using adrian’s post and added it to my stab file. it still doesnt work. here it is

    # /etc/fstab: static file system information.
    #
    # — This file has been automaticly generated by ntfs-config —
    #
    #

    proc /proc proc defaults 0 0
    # Entry for /dev/hda1 :
    UUID=16d3e8d4-04a2-4eaa-b59f-bfd59e79e215 / ext3 defaults,errors=remount-ro 0 1
    # Entry for /dev/hda6 :
    UUID=5371f8b2-6277-4493-bfed-8a99f5188986 none swap sw 0 0
    /dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/hdc /media/cdrom1 udf,iso9660 user,noauto 0 0
    UUID=1296E0623E6D29DA /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

  39. zargon Says:

    How about this instead…

    Linux Tricks - How to mount your Windows partition and make it read/writable with NTFS-3G?

    I understand Ubuntu is the “hot new” distro, but I am kind of getting sick of all these Ubuntu “only” guides. Why not write them for linux in general and then includes comments like: “To do this in Ubuntu, run this command…”?

    Just a though since not everyone uses Ubuntu…

  40. chrismcollins Says:

    Hi, I followed the instructions and everything seemed to work, but I don’t see a windows partition and i can’t find it in /media/windows either. What did I do wrong? Or am I just missing something obvious?

  41. Richard Says:

    Hello,

    I love to be able to do this but I can’t even download ntfs-3g!

    It says:
    Reading package lists… Done
    Building dependency tree… Done
    E: Couldn’t find package ntfs-3g

  42. arsgeek Says:

    Hey Richard,

    It sounds like you didn’t enable the extra repositories needed to download NTFS-3g.

    Check out the first link in the post, there are instructions there on how to do it, or simply google for Ubuntu extra repositories.

    A

  43. Laurence Says:

    I followed your instructions and can now see and access a second Windows partition. However, files still open in “read only” mode, and I can’t find a way of changing the permissions.

  44. Jason Says:

    Works like a charm for me! Thank you- this makes my life exponentially easier.
    Thanks!!!

    One question I do have though is:
    When I copy files from Ubuntu to Windows that have Chinese characters in the file name, I get a “generic error.” Would you know of a work around for this?

  45. MQ Says:

    Hello. This is working well… except when I try to create a link from my /home/mq directory to /media/windows/Documents\ and\ Settings/mq/My\ Documents - it complains that it is an ‘invalid cross-device link’. Surely there is a way around this?

    Thanks.

  46. Glosser Says:

    My problem is as so…………

    I hibernated Windows one day,went to boot up again and it was stuck on the resuming windows screen and nothing happens.

    So i tried to use this ntfs-3g thing to access my windows files but the problem i had was that when i typed ‘cat /etc/fstab’ i got:

    # /etc/fstab: static file system information.
    #
    #
    proc /proc proc defaults 0 0
    # /dev/hda2
    UUID=91fc783f-fcb0-49b5-8343-2dd91efe2776 / ext3 defaults,errors=remount-ro 0 1
    # /dev/hda3
    UUID=108ee812-15e1-4ead-aff0-d099b117f766 none swap sw 0 0
    /dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0

    It doesnt show my windows partition ……

    Im so lost i duno what to do??????

  47. notHappy Says:

    WTF? I followed the instructions before reading all of the comments, and now my partition is totally screwed up. Why have these instructions remained up here and not corrected? F’ing Ars!!

  48. Dawn Masuoka Says:

    You do realize this was written in 2006… can you provide a little more information about your OS and versions?

    And seriously dude… 2006… do you run a site, and if so- do you go WAY back and change everything that other programmers and developers could have made obsolete over time? Doubtful… especially if you were non-profit.

    I’d love to see if someone can assist you, I just need more to go by.

  49. shaboon Says:

    Hey yo!

    Don’t be overcomplicated with asking them to reboot! why would you reboot when a simple sudo mount -a will auto mount based on the modified /etc/fstab ?

    Most of the peopled do prefer not rebooting.

  50. Joshua Says:

    This is fully implemented in 8.10 by default on install.
    J

  51. StephSD3 Says:

    thank you, this was very helpfull…
    (you wouldn’t happen to have the same sort of help for an usb stick that won’t show [formatted FAT32?...])
    but thank you anyway ;)

  52. Brendan Says:

    I followed all of your instructions to the letter but my windows partition (c:\ drive) will not mount to the ubuntu desktop/file system. I can access the media directory but cannot write to it. I am using Ubuntu 8.x if that helps

  53. Singapore web design Says:

    Thanks for this tutorial on mounting windows share. Am trying to port all our computers to nix plateform.

9 Trackbacks For This Post

  1. ArsGeek - Free your inner geek » Ubuntu tricks - how to mount your Windows partition and make it read/writable Says:

    [...] Ubuntu Tricks - How to mount your Windows partition and make it read/writable with NTFS-3G [...]

  2. ArsGeek - Free your inner geek » NTFS-3G is out of beta, hits 1.0 - here’s how to use it Says:

    [...] Now go to our instructions for setting up NTFS-3G. [...]

  3. eschew » Blog Archive » links for 2007-03-02 Says:

    [...] Ubuntu Tricks - How to mount your Windows partition and make it read/writable with ntfs-3g (tags: ntfs linux Ubuntu filesystem software howto) [...]

  4. 100 Ubuntu Help Links and Guides « Ubuntu OS Says:

    [...] - Common Questions- Recovering Ubuntu After Installing Windows- Partitions and Booting- Mounting a NTFS partition R/W with NTFS-3G [...]

  5. ArsGeek » Blog Archive » Is imitation the sincerest form of flattery? How about plagerism? Says:

    [...] to this idiot to increase his adword revenues. If you’re really interested in this, go see my original article   You can see the stolen article at http://wwwDOTlinuxtricksDOTnet, along with tons of other [...]

  6. For Instance - Stop mounting hard drive « UbuntuAG Weblog Says:

    [...] everywhere within Ubuntu’s forum etcetera and nothing. Nothing until I happen across this which really wasn’t about what I was after but still reading it I found that a certain helped [...]

  7. ubuntu.linux-hardcore.com » 100 Ubuntu Links Says:

    [...] - Common Questions- Recovering Ubuntu After Installing Windows- Partitions and Booting- Mounting a NTFS partition R/W with NTFS-3G [...]

  8. ubuntu.linux-hardcore.com » 100 Ubuntu Help Links and Guides Says:

    [...] - Common Questions - Recovering Ubuntu After Installing Windows - Partitions and Booting - Mounting a NTFS partition R/W with NTFS-3G [...]

  9. UBUNTU Mini-Workhorse « ModelR Says:

    [...] For the guide to do this check here [...]

Leave a Reply