I have two NTFS partitions, and I don't want to mount them everytime I start Ubuntu.
- How can I do this ?
- Is there a tool or a code to use?
- If so, is it safe to automount? specially when they are being used by another OS?
The most straight forward way that will work on most Linux systems is to add them to your fstab. But there are others. Each has there own headline in this answer.
If you get an error massage saying something about "root" or "permissions" it is because for most mounting options you will need root privileges. In unity you can achieve that by prepending
Gigolo is self-explanatory. It works hand in hand with nautilus' remote file system and mounting capabilities. You need to add the partitions to your nautilus bookmarks (nautilus is ubuntu's default file manager). After that you will find them in Gigolo. The rest is said another post of mine.
Edit: Since guessing from your comments you are not that acquainted with linux I will explain the procedure in more detail:
The fstab-method is cleaner and more basic than gui-tools or gigolo. It will also work on other systems even those that are text-mode only. In principle you don't need to install anything. For each ntfs-partition you will have to add one line to the file called
The part that says
Note that if this line is at the very end of your file there should be a newline after it. Mount will complain if you don't have it.
finding the uuid:
Open Disk Utility and identify the proper partitions by their size (e.g. 120 GB), file system (e.g. ntfs) and name. Note their "Device:" file (e.g.
You can find out the uuid of your partitions by running
The correct UUID will have the proper device file in front of it and
setting the mount point
Now the mount-point. For each partition this will be different. I chooose
the other parameters in my line
When you added the lines and did all of the stuff I described, save the file and run
finding your user and group id
You can find out your user and group id with the
A graphical tool graphical tool (ntfs-config) is also available but not necessary (and obviously it's current version doesn't work in natty - suppose that will be fixed soon). Besides you might loose old settings in your fstab with this tool (e.g. mounting the cache in the memory), because it overwrites the /etc/fstab file instead of appending things.
This is a solution I originally posted for crunchbang. It seems to work for ubuntu and mint as well. You can add a startup entry with the following command:
Where in this case, /dev/sda3 is Windows' C drive.
To enable or disable automount open a terminal and type dconf-editor followed by the [Enter] key.
The automount key controls whether to automatically mount media. If set to true, then Nautilus will automatically mount media such as user-visible hard disks and removable media on start-up and media insertion.
There is another key
This controls whether to automatically open a folder for automounted media.
If set to true, then Nautilus will automatically open a folder when media is automounted. This only applies to media where no known x-content/* type was detected; for media where a known x-content type is detected, the user configurable action will be taken instead.
Source: Ubuntu Documentation
This program allow you to easily configure all of your NTFS devices to allow write support via a friendly gui. For that use, it will configure them to use the open source ntfs-3g driver. You’ll also be able to easily disable this feature.
Project Home page :- http://flomertens.free.fr/ntfs-config/
This will install all the required packages for ntfs-config including ntfs-3g
If you want to open this application try to find --> NTFS Configuration Tool
Now it will prompt for root password enter root password and click ok
It will show the available NTFS partition.
You need to select the partitions you want to configure,add the name of the mount point and click on apply.
Select the NTFS Write support which is suitable for you i.e internal or external
if you want to unmount you should be root to unmount and then right click on mount point select Unmount Volume
As you can see, mounting NTFS partitions in Linux can be a breeze. If you don't like or fear the command line, you can achieve a lot with just a few mouse clicks. Truth to be told, this is much simpler than mounting strange, new, unknown partitions in Windows.
Well, that's it. Happy Linuxing!
P.D : Update for Natty user
If you upgraded to Ubuntu Natty you will notice that NTFS configuration tool is not working even though it prompts you for root privileges.
The problem is that when you open the tool nothing happens. Well it’s due to a missing folder and in order to fix this you should enter the following command:
Now you have the tool working just select the partitions you want to automatically mount on boot and if you want WRITE access just TICK the corresponding check boxes.
Easy enough :P
You may try to solve this problem by mounting the HD at boot time and probably one of the easiest way to do it is by using pysdm.
Once installed you can follow the steps included in this post
You might use this simple and small software:
This tiny software will mount all your
Hope this will help.
This is a safe way of going about things. I don't think it's particular risky having a purely data Windows partition auto-mounting at boot. But I would leave the partition the OS is installed on in a
You'll need the
First find the UUIDs of the partitions in question by doing in a terminal:
Now you need to edit your /etc/fstab to configure whether these two partitions will auto-mount or not. In a terminal do:
You may already have a couple of lines for the NTFS partitions. If not you'll need to make some. They'll look something like this (depending on mount points and UUIDs):
Look at the community documentation on fstab. Also try searching for NTFS Configuration Tool in the Ubuntu Software Center