Freely Scripted Soul

May 30, 2007

Mounting Drives in Ubuntu

Filed under: Ubuntu — Roshan @ 2:13 am

All local drives including NTFS and FAT32 partitions(Windows partitions) will be mounted automatcially as the user logs in. Any removable media like CD/DVD/pendrive will also be mounted automatically when it is inserted into the drive.


All the drives will be mounted onto the drive “/media” i.e. if say your pendrive name is “Roshan”, then it’s path would be “/media/Roshan”. You can browse all your drives from the Desktop or from the (Places) Menu.





When you want unmount(or eject) it, right-click on that drive in the Desktop or the File Browser and click “Unmount volume”.



If you unmount local drives including NTFS and FAT32 partitions(Windows partitions) , they will be unmounted only for that particular session. If you want to “hide” a particular drive i.e. Suppose you don’t want a drive to be mounted when you are in Ubuntu permanently, give this command at the terminal:

sudo gedit /etc/fstab

A window will be opened. “fstab” is a file which contains the static file system information.



You can observe the code, understand it and change/customize it as you want; precisely the advantage of FREE SOFTWARE. However, unless you are an expert programmer/developer, don’t go too much into meddling with it.


Now, to “hide” a drive, first learn its path from the File Browser. Consider the drive named “DRV1VOL5”.



Its path is “/media/sda6”. Then, just comment that line in the “fstab” file which contains information about that drive. Observe that in the “fstab” file, “/media/sda6” is present in the line no. 22. So comment that line. To comment a line, add a “#” at the start of the line.



If you observe you see that there are 2 paths associated with a particular drive say “DRV1VOL5”, one is “/dev/sda6” which contains the DEVICE file for that drive and the other is “/media/sda6” which is where actually that drive will be mounted.


By default, all local drives including NTFS and FAT32 partitions(Windows partitions) will be READ-ONLY, that is you won’t be able to write any file into it. To make these drives WRITABLE, install “Automatix read/write NTFS and FAT32 Mounter” using “Automatix2”.


1 Comment »

  1. hello all
    what sport is the best for health
    greetings for all

    Comment by drirwayeffend — May 13, 2009 @ 11:24 am | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: