Page 1 of 9 123 ... LastLast
Results 1 to 10 of 193

Thread: HOWTO: Mount NTFS volumes with write support

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Brasil
    Beans
    244
    Distro
    Xubuntu 7.04 Feisty Fawn

    Exclamation HOWTO: Mount NTFS volumes with write support

    Please refer to this thread now: http://www.ubuntuforums.org/showthread.php?t=217009

    This guide is outdated since there is a new and better ntfs supporting driver now.

    ======================

    ATTENTION, OLD INSTRUCTIONS FOLLOW BELOW FOR REFERENCE ONLY! PREFER THE INSTRUCTIONS FOUND ON THE NEW THREAD:
    http://www.ubuntuforums.org/showthread.php?t=217009


    ======================


    As initially posted on the Wiki: https://wiki.ubuntu.com/Lkraider/NtfsFuse

    Initial Remark:
    Warning! Ntfs writing support is still experimental! You should not enable it on production machines and/or volumes you don't have backups of. Proceed at your own risk!
    End of Initial Remark.

    That being said, it is quite safe and if it fails to write something, will not corrupt your disk (unless there's a bug somewhere).

    This initial part is for Breezy only, Dapper users already have the required packages
    ----
    I - Install the necessary dependencies

    Code:
    bash:~$ sudo apt-get install libfuse2 fuse-utils

    II - Get the latest ntfsprogs package

    Note: You will be downloading these directly from the Dapper repositories, so they are safe to install.

    III - Install the downloaded packages

    Code:
    bash:~$ sudo dpkg -i libfuse2_*.deb fuse-utils_*.deb ntfsprogs_*.deb libntfs8_*.deb
    ----

    Dapper and Breezy instructions from here on:
    Note: you can replace the "gksudo gedit" commands with your preferred editor (ex: "sudo nano", for instance)

    1 - Add fuse to the list of modules to load

    Code:
    bash:~$ echo fuse | sudo tee -a /etc/modules

    2 - Create a user group to access the ntfs disks

    Code:
    bash:~$ sudo addgroup ntfs
    The output should look something like this:
    Code:
    Adding group `ntfs' (1002)...
    Done.
    Take notice of your group GID (the number printed after the group name), as it can differ for you and we will need it.

    3 - Edit the fstab file to mount the disks

    Make a backup of your current settings:
    Code:
    bash:~$ sudo cp /etc/fstab /etc/fstab.bak
    Edit the fstab file:
    Code:
    bash:~$ gksudo gedit /etc/fstab
    Find the line that currently mounts your ntfs partitons, and change them to look like this:
    Code:
    /dev/hda1    /media/hda1    ntfs-fuse    auto,gid=1002,umask=0002    0    0
    Notice the use of the group's GID from before, and the umask to allow write access just to owner (root) and group (ntfs), and read access to everyone.
    You could also use an umask=0007 to block all access for users not on the ntfs group.

    4 - Add users to the ntfs group

    Code:
    bash:~$ sudo adduser username ntfs
    Where username stands for the user you whish to add (replace it with a real username). Do this for all the users you want to be able to write to ntfs disks.

    5 - Fix Dapper bug #29865 of the linux-ntfs package:

    Code:
    bash:~$ sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse

    ----

    If you reboot now, the disk will be writable to the selected users when they logon.

    If you want the changes to take effect immediately without rebooting, execute these commands:
    Code:
    bash:~$ sudo modprobe fuse && sudo umount -a && sudo mount -a
    (Ignore errors about "/" and others not being unmounted, it doesn't matter)
    You'll have to logout from all your user sessions for the new group to be acknowledged (usually a logout from your graphical session and login back again will do it).

    TROUBLESHOOT
    1) If you get this error:
    Code:
    Couldn't mount device '/dev/hda1': Operation not supported
    Windows did not shut down properly.  Try to mount volume in windows, shut down and try again.
    Mount failed.
    You will have to boot into your Windows OS and do a "chkdsk /f" (aka. scandisk) on the partiton that you are trying to mount. Currently, ntfsprogs can't check/fix the integrity of the partitions and will refuse to mount them if they are marked as dirty (ie. needing to be checked), so you'll have to do it from Windows.

    2) You can't access the ntfs partitions from Nautilus anymore from the computer:/// places. This is a bug of Nautilus I think. You'll get an error like this:
    Code:
    Unable to mount the selected volume mount: according to mtab, /dev/hda1 is already mounted on /media/hda1
    A workaround is manually creating a link from the mountpoint to your desktop for easy access.


    3) If you want to check whether you are in the ntfs group, type:
    Code:
    bash:~$ groups
    it will output all groups the current user is in. Example:
    Code:
    username adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin ntfs
    4) If you partition/format the NTFS drive in Linux then the System Volume Information folder is not created and you must run chkdsk on it in order for it to work correctly. (as reported by glycerin)
    Last edited by LKRaider; September 16th, 2007 at 10:19 PM. Reason: Minor changes and added troubleshooting tips

  2. #2
    Join Date
    Jul 2005
    Location
    Jevnaker, Norge
    Beans
    74

    Re: HOWTO: Mount NTFS volumes with write support

    Hit a snag when trying to mount a NTFS disk...

    ntfsmount: error while loading shared libraries: libntfs.so.9: cannot open shared object file: No such file or directory


  3. #3
    Join Date
    Mar 2006
    Location
    Cambodia
    Beans
    88
    Distro
    Ubuntu 6.06 Dapper

    Question Re: HOWTO: Mount NTFS volumes with write support

    Quote Originally Posted by SSamiK
    Hit a snag when trying to mount a NTFS disk...

    ntfsmount: error while loading shared libraries: libntfs.so.9: cannot open shared object file: No such file or directory

    Same for me. I must add that anyway, I cannot even read hda1.

    Nor can I change read permissions or ownership: readonly file.

    Hamlet - O, from this time forth, my thoughts be bloody, or be nothing worth !
    Shakespeare "Hamlet" Act IV, Scene 4
    Registered Linux user number 418565

  4. #4
    Join Date
    Feb 2006
    Beans
    195

    Re: HOWTO: Mount NTFS volumes with write support

    Quote Originally Posted by SSamiK
    Hit a snag when trying to mount a NTFS disk...

    ntfsmount: error while loading shared libraries: libntfs.so.9: cannot open shared object file: No such file or directory

    Unfortunately I hit the same snag.
    I'm running Breezy too.

  5. #5
    Join Date
    Aug 2005
    Location
    Berkley / Marquette, MI
    Beans
    71
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: HOWTO: Mount NTFS volumes with write support

    Ok, the fstab entry is where it's all going awry. When I use the ntfs mount command with my uid or the NTFS gid it'll mount. I just can't get it to mount read/write.

  6. #6
    Join Date
    Feb 2006
    Location
    Brasil
    Beans
    244
    Distro
    Xubuntu 7.04 Feisty Fawn

    Lightbulb Re: HOWTO: Mount NTFS volumes with write support

    missing libntfs.so.9 errors
    Okay, there's a solution for that, and I will update the HowTo so people don't run into it again.

    First, the Cause: the ntfsprogs-fuse package people were downloading require a ntfs library higher ( v.9 ) than the one avaiable for breezy ( v.5 ) or dapper ( v.8 ).

    Now, the Solution: Get the Dapper packages:
    libntfs8
    ntfsprogs

    Before installing those, you'll want to remove the non-working one:
    Code:
    dpkg --remove ntfsprogs-fuse
    Then, install the two Dapper packages:
    Code:
    dpkg -i libntfs8_1.12.1-1_i386.deb ntfsprogs_1.12.1-1_i386.deb

    fstab issues
    Please, post your fstab contents, an output of "ls -l /media" (or where the mountpoint is, so we can see the current permissions), and the output of running the command "groups" as your regular user so we can try do identify the issues better.
    Last edited by LKRaider; March 13th, 2006 at 04:07 PM.

  7. #7
    Join Date
    Aug 2005
    Location
    Berkley / Marquette, MI
    Beans
    71
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: HOWTO: Mount NTFS volumes with write support

    I'm stuck booting into windows for a class, but when I get back on ubuntu I'll try to post all that. Another big thanks for this howto, even if I have to sudo into it, I've been messing with tons of files on my windows partition and it's still running fine.

  8. #8
    Join Date
    Aug 2005
    Location
    Berkley / Marquette, MI
    Beans
    71
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: HOWTO: Mount NTFS volumes with write support

    Here's what ya asked for, hope it can help.

    stephen@ubuntu:~$ ls -l /media
    total 12
    lrwxrwxrwx 1 root root 6 2006-02-25 19:12 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2006-02-25 19:12 cdrom0
    drwxrwx--- 1 stephen root 8192 2006-03-13 22:25 hda1
    stephen@ubuntu:~$ groups
    stephen adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin nvram ntfs

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda3 / ext3 noatime,sync,errors=remount-ro,data=writeback 0 1
    /dev/hda4 /home ext3 noatime,sync,data=writeback 0 2
    /dev/hda1 /media/hda1 ntfs-fuse auto,gid=1001,umask=0007 0 0
    /dev/hda2 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

  9. #9
    Join Date
    Mar 2006
    Beans
    60
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Mount NTFS volumes with write support

    I wasn't quite able to get my Windows (C drive to mount. I'll post my fstab and the error later.

  10. #10
    Join Date
    Jul 2005
    Location
    Waikerie, South Australia
    Beans
    217
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Mount NTFS volumes with write support

    I can mount fine as root using ntfsmount but when I try to mount from fstab I get 'mount: unknown filesystem type 'ntfs-fuse''.

    any ideas?

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •