Welcome Guest [Log In] [Register]
Welcome to Linuxfameforum. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
How to Auto mount ntfs drive in Ubuntu?; Automount ntfs drivers at startup.
Topic Started: May 9 2009, 11:25 PM (1,555 Views)
sam

How to Auto mount ntfs drive in Ubuntu?

Here i will tell you how to mount ntfs(windows) drivers at startup. There are 2 ways to do things. One is easy for beginners and other is for advanced users. You are free to use anyone as you like.

Method 1:

To auto mount drives on start up you need software called pysdm .

Software : pysdm
Description: PySDM is a PyGTK Storage Device Manager that allows full customization of hard disk mountpoints whitout manually access to fstab.
It also allows the creation of udev rules for dynamic configuration of storage devices.

It is available in repositories.

1: Now you need to open synaptic package manager. (System-> Administration-> Synaptic package manager)

Enter your Root password.

2: Now Enter in quick search 'pysdm' (without quotation mark).

Now select the package and install.

3: After installing open the program open Terminal and become root.
Code:
 
samrat@samrat-desktop:~$ sudo -s
[sudo] password for samrat:
root@samrat-desktop:~# pysdm


Now mount drives that you want to mount at startup. Apply the changes and close. Then check drives are mounting on startup.

Method 2:

1: Open up Terminal (Applications - Accessories - Terminal) and type the following:
Code:
 
sudo fdisk -l


You will be asked for the root password (password you chose at setup) and will be presented with a list that looks similar to this:

Code:
 
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e4abf

Device Boot Start End Blocks Id System
/dev/sdb2 * 1 38913 312568641 7 HPFS/NTFS


2: In terminal again, type
Code:
 
sudo gedit /etc/fstab


You will be presented with your fstab file, which basically tells Ubuntu where to mount the drives listed.

3: At the bottom of the fstab file paste the following:

Code:
 
/dev/sdb2 /media/sam ntfs-3g defaults 0 0


You will need to adjust 2 things: the name /dev/sdb2 to the drive that is specific to your computer, and the name /media/sam. The name I chose "sam" the directory where the drive will be mounted. Save the file

4: to create the mount point, open Terminal and type:

Code:
 
sudo mkdir /media/sam


where "sam" matches the name you used in the fstab file.

5. To test that it works, type:

Code:
 
sudo mount -a


This will mount all the drives listed in the fstab file.
I think that you will then need to do a restart to notice the changes if you add more drives.

You can also change the drive name using:

Code:
 
sudo ntfslabel /dev/sdb3 sam


Although the drive has to be unmounted first.

This will do :P . Feel free to comment if you have queries.
Edited by sam, May 9 2009, 11:48 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Ubuntu · Next Topic »
Add Reply