Blog Archive

In the "Ubuntu 10.04 First Time Use Script 0.2 Released: It Now Comes With A GUI" post, it has been suggested in the comments to add an option to automatically mount NTFS drives on startup. The problem was that I didn't know how to do this using the command line, but I finally figured how to do it so I decided to release this as a separate script first. I will of course also add it to the "Ubuntu First Time Use Script" (a new version is coming very soon!).

A few explanations on what the script does:

The Automatically Mount NTFS Drives script installs ntfs-3g, then looks up all the NTFS drives on your computer. Once it finds all of them, it creates a folder in /media for each of the NTFS drives, like: sda1, sda5, and so on. The script then writes a line in your /etc/fstab file for each of your NTFS drives so that each NTFS drive is mounted in it's corresponding folder. If you already have some lines containing "ntfs-3g" in your /etc/fstab file, the script skips all of this (in case someone runs it twice).

Warning: use this script at your own risk.

Instructions to use this script have been temporarily removed. I've only tested it in Karmic but some users are using it in other Ubuntu versions and experience some issues with it so until the script will be updated, the script has been removed. See this post instead: How To Mount Partitions Automatically On Startup In Linux

Note: for now I've only tested it on Ubuntu Karmic, but I'll also test it on Lucid in a few hours. But it should work just fine anyway.