Sign In

    Enjoy FOSSwire's content? Have it delivered! Subscribe

    Write to NTFS partitions on Fedora

    Writing to NTFS partitions under Linux has been a real pain, if possible at all, for quite a long time. With a dual-boot Linux and Windows system, you can end up not being able to exchange files without a lot of trickery and special programs.

    Thankfully, things have moved on since then and with the help of a couple of bits of software, it's now really easy to install FUSE (Filesystem in User Space) and the new NTFS 3G driver and write (safely and quickly) to NTFS partitions.

    I reported on this a while back when the drivers for NTFS were still in beta, and in this tutorial I'm going to show you how to get up and running on Fedora Core (but the instructions should be fairly generic). Whereas last time we used a GUI application, today I'm going to use the geekier and more difficult, but more universal, command-line way.

    On my Fedora Core 6 system, installing the needed software is as simple as heading to a terminal and doing the following:

    $ su -
    [[enter password when prompted]]
    # yum install fuse ntfs-3g

    If you're not using Fedora, however, you should be able to use your distribution's package management tool to do exactly the same (with any luck, you might even be able to use a graphical tool too).

    Once you've got FUSE and NTFS-3G all installed, you need to mount your partitions in a special way. Sadly, at the moment I can't see any graphical way to do this, so you'll have to be comfortable using the terminal. Still, it's not too hard.

    First of all, as with any mount, we need to make ourselves a folder in which the contents of our NTFS partition will be dropped into. You can create this anywhere you want (and the advantage of FUSE is that you don't have to have administrator privileges to do it either).

    $ mkdir myntfs

    Now we need to actually mount the partition. You'll need to know the device string for your partition (check out Identifying Partitions in this tutorial for more info). Once you've got this (mine is sda5), then use it in the following:

    $ ntfsmount /dev/sda5 myntfs

    After a couple of seconds, you'll return back to the terminal. Check your folder - inside it should be the contents of that partition and you should be able to write to it!

    Once you're done, you need to remember to unmount the partition:

    $ fusermount -u myntfs

    Now you're finished up. You can safely delete the myntfs folder if you want to, but you might want to keep it if you'll be remounting the NTFS partition again soon.


    NTFS 3G - first experiences

    Dual boot interoperability is an important issue when you're running a Linux OS alongside Windows. It's also quite a tricky one - we all know Microsoft aren't exactly very helpful at making it easy for dual boot users to experience the best of both worlds.

    One of the problems dual booters face is trying to share files between the Windows and Linux portions of their hard drive, as Linux's support for NTFS, Windows' default filesystem, has always been limited to read only, if any support at all.

    I reported a while back on our sister site Gizbuzz that the Linux NTFS project aimed to put a stop to that, and build a fully-working read and write driver for NTFS, so that Linux can write natively to Windows partitions.

    The NTFS-3G driver is one attempt at doing this, and I thought it was about time I tried it out and shared my experiences with it. As the driver is still pre-release, I wasn't brave enough this time round to try it out on my main system, but in this article, I've been using Ubuntu Edgy to write to a Windows Vista RC1 NTFS partition.

    To get it installed, I followed this tutorial on the Ubuntu Wiki (using the automatic option). Install was really straight forward, it was literally just a case of following the instructions exactly. Once I'd got to the end, I just double-clicked the Vista partition already on my desktop, and started writing files to the partition.

    This particular version of the driver also implements another promising technology, FUSE (filesystem in userspace) which means that there's no need to elevate to root privileges to mount and unmount filesystems.

    No restarts, no configuration other than ticking a couple of boxes in a GUI app and I could just start writing stuff to the NTFS drive. It certainly was an impressively simple process for what I expected to be a lot harder.

    Copying files to NTFS

    I copied my entire home folder over onto the Windows partition, then rebooted into Vista to see if it had worked.

    It did work, and all my data appeared to have been written properly. Unfortuantely, the current version of the NTFS-3G driver doesn't support NTFS file permissions, so Vista stamped an annoying 'public' icon on everything, as the permissions had automatically been set to allow everyone to do everything.

    Linux files under Vista

    This also means that when you're in Linux, you can bypass any file permissions set on files on the NTFS partition (meaning you could access other people's home folders under Windows marked as private).

    That left aside, it was very successful and other than a symbolic link turning into an unreadable 'system file' over on Windows, the transfer went very well.

    This is extremely promising news for dual booters and new Linux users alike, as if this technology is integrated into new releases of distributions, read/write support out of the box for NTFS will make for a much improved dual boot (or even Live CD) experience.

    If you do run a dual boot system, I'd strongly recommend giving the new NTFS driver a try, but bear in mind that it still is only beta quality and has the potential to corrupt your drives. Having said that, I didn't experience any loss of files in this quick test, but you should be aware of the risks of running a beta quality filesystem driver.


    1. 1
    2. 2