Mounting NTFS Partitions (with read/write privileges) on Ubuntu Jaunty (9.04)





Find out the name of your ntfs partition:


$ sudo fdisk -l

Method 1: In this example, the NTFS drive is listed by fdisk as /dev/sda2, but yours may differ.
Make a mount point for the drive:

$ sudo mkdir /media/WindowsNTFS

Edit fstab:

$ sudo nano /etc/fstab

Comment out the automatically added lines by Ubuntu installation:


#/dev/sda2 auto nouser,atime,noauto,rw,nodev,noexec,nosuid 0 0
#/dev/sda2 /mnt auto user,atime,noauto,rw,nodev,noexec,nosuid 0 0

and instead add the line:


/dev/sda2 /mnt/WindowsNTFS ntfs-3g quiet,defaults,rw 0 0


Note: There are many ways to mount the drive, depending on your needs. The fstab file controls this process. See How to edit and understand fstab and Intro to using fstab.
In this example, I indicated that the file system was an ntfs-3g filesystem, so did not use the auto option (which detects the filesystem automatically). I used rw to specify read/write privileges for all users, but umask=0 and umask=000 are accepted by some kernels.

Method 2: Edit fstab:


$ sudo nano /etc/fstab

When Ubuntu installation finishes, it mounts all ntfs partitions automatically with ntfsprogs, adding a line similar to the following to fstab:


UUID=8466268666267956 /media/sda1 ntfs defaults,gid=46 0 1
Change this line to:
UUID=8466268666267956 /media/sda1 ntfs-3g defaults,nls=utf8,locale=zh_CN.UTF-8,rw,gid=46 0 1


In this example, I have a Chinese-language Windows installation on my first partition, so I set the locale parameter (locale=zh_CN.UTF-8) so that my Chinese documents can display correctly. Setting rw (same as umask=0 or umask=000) lets me read/write the partition without sudo. gid=46 specifies that the drive will belong to the group of hot-pluggable devices (plugdev) and is not necessary unless your ntfs drive is a hot-pluggable one (such as an external USB drive). nls=utf8 is the default and is optional for most ntfs users, but there are other options for Chinese (and other specialized character-set users).

Mounting FAT32 Partitions

Follow the above instructions, but use vfat instead of ntfs-3g.
In other words, if you have made a mount point directory /mnt/WindowsFAT32 and your FAT32 drive is /dev/sda3, then edit the /etc/fstab file to include the line:


/dev/sda3 /mnt/WindowsFAT32 vfat quiet,defaults,rw 0 0


Happy Testing...!!!


Sources:


http://ubuntuguide.org/wiki/Ubuntu:Jaunty

8 comments:

  1. What's up to every body, itís my first go to see of this webpage; this web site carries awesome and genuinely good material for readers.

    Check out my website ... www.meterboxcem.com/blogs/entry/Recommendations-And-Tips-For-The-Grocery

    ReplyDelete
  2. Fantastic goods from you, man. I've understand your stuff previous to and you're just too magnificent.
    I actually like what you have acquired here, certainly like what you are
    stating and the way in which you say it. You make it enjoyable and you
    still care for to keep it smart. I can not wait to
    read far more from you. This is actually a terrific web site.


    Also visit my weblog visit the following web page

    ReplyDelete
  3. Helping optimistic people excel - in 7 areas of life
    is her mission. You have to find a way to take the tips you learn and
    make maximum use of them. Having some company can also make the fitness session more fun.


    Here is my web blog ... fitness tips and quotes

    ReplyDelete
  4. Hence, it was all about the biotech resume objectives.

    Maybe it is arrogant to want to become a hero, but I find it
    a noble aspiration. This film has many familiar faces such as
    John Lithgow, Brian Cox and Tom Felton (Draco Malfoy in the Harry Potter films) but
    again we are shown just how advanced CGI is now -especially when combined with the acting
    talents of Andy Serkis- and it's easy to forget that Caesar isn't
    real.

    Also visit my website simply click the up coming website

    ReplyDelete
  5. I've listened to this a dozen or more times and still find it delightful and sooooo original in concept. Both the content and presentation of news are drastically different from what it used to be. Due to the recent horrifying terror attacks and other such couple of events people want to be aware and alerted of the whereabouts of the nation.

    my web-site :: http://futureworkplace.com/network/pg/profile/MarshaCha

    ReplyDelete
  6. Thousands protest in Russia at rallies across the nation.
    He was instrumental in MTV showing African American artists.
    They can also update news on their site as and when the event
    occurs while the newspapers have to wait until the next
    morning.

    Feel free to surf to my page :: Latest Daily News

    ReplyDelete
  7. Your means of explaining the whole thing in this paragraph
    is genuinely good, every one can effortlessly be
    aware of it, Thanks a lot.

    Also visit my web site vitalland.hu

    ReplyDelete
  8. Good day! I just want to give you a huge thumbs up for the great information you have got here on this post.
    I am returning to your site for more soon.

    Look into my blog post - übersetzung englisch deutsch kosten

    ReplyDelete

Please Comment...!!