Home | About | Help Center | Privacy Policy

April 12th, 2007

how to mount drives in Ubuntu [Linux]


This tutorial will show you how to mount NTFS and FAT partitions in ubuntu
(1) How To mount a NTFS partion in ubuntu ?
For mounting NTFS we are going to use one small tool called NTFS-3G this is very powerfull and
simple tool.
The NTFS-3G driver is an open source, freely available NTFS driver for Linux with read and write
support. It provides safe and fast handling of the Windows XP file systems.
You need to edit the sources.list file using the following command
sudo gedit /etc/apt/sources.list
and add the following repositories which is suitable for you
If you are running Ubuntu Dapper enter the following lines save and exit the file
deb http://givre.cabspace.com/ubuntu/ dapper main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ dapper main main-all
deb http://flomertens.keo.in/ubuntu/ dapper main main-all
If you are running Ubuntu Edgy replace dapper with edgy
Go to senaptic package manager and reload the repos and install ntfs-3g
Configuring ntfs-3g
Now you need to use the following command to determine all the available partitions
sudo fdisk -l
Now you need to configure your NTFS partitions in /etc/fstab file before doing any changes in
/etc/fstab file we will take a backup of this file using the following command (Highly Recommended)
sudo cp /etc/fstab /etc/fstab.bak
Now you need to create a directory where do you mount your windows partitions in this example i ma
creating windows directory
sudo mkdir /media/windows
If you want to mount /dev/hda1 is your windows partition you need to enter the following line in
/etc/fstab file
Page 2
/dev/ /media/ ntfs-3g defaults,locale=en_US.utf8 0 0
You need to replace your partition and mount point with your details
Example
/dev/hda3 /media/windows ntfs-3g defaults,locale=en_US.utf8 0 0
save and exit the file
If you want to mount as read only you need to enter the following line in /etc/fstabfile
/dev/hda3 /media/windows ntfs-3g ro,locale=en_US.utf8,uid=1000 0 0
If You want to change your locale option you need to run the following command in a terminal to
know which one is supported by your system.
locale -a
Now if you want these new chnages to take effect there are two options one is you can simply reboot

your machine and the second one is without rebooting you need to run the following commands

To unmount
sudo umount -a partition-name

Mounting Fat Partition
1) Create a folder on the desktop suppose fatdrive (this is just a foldeer name )
2) Open the terminal type the following command
3) sudo -s
4) give the password
5) mount -a /dev/< fat partition to be mounted > <desktop folder name> -t vfat umask 0022
6) fat drive would be mounted

For more mounting details contact < rkglug@googlegroups.com>



You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackbackfrom your own site.

Subscribe to our FREE Rss Feed

Hot in Social Media


10 Ways Social Media Can Help Your Business

10 Best Social Media Case Studies

10 Tips To Become Social Without Using Social Media

Top 10 Tips To Enhance Personal Branding

What's Hot

Similar Interesting Posts

Tutorials On

8 Responses to “how to mount drives in Ubuntu [Linux]”

  1. Hi honey!

    I would like to know the monunting method for hoary version ( I guess its 5.01} of Ubuntu. The method u mentioned doesnt work for that version. The dependencies doesnt suit and the apt-get doesnt accept the ntfs-3g thing over hoary ubuntu.

    Please let me know an easier methoid that suits my version of ubuntu to mount windows drives.
    thanx!

  2. try this code……..
    sudo mkdir /media/windows
    sudo mount /dev/hda1 /media/windows/ -t ntfs -o umask=0222
    sudo umount /media/windows/

    it will b better if u upgrade ur Ubuntu…………becoz many more things are restrictd in these old versions.
    for upgradation …..system–>administration–>update manager

  3. Update manager somehow doesn’t upgrade successfully from my new Ubuntu 0.01 ETS CD ! It says all the packages couldn’t be upgraded and tries to connect to some web server and then finally specifies that some 273 Mb data is to be downloaded and the download starts. I would like to know Incase I begin a fresh installation using the new CD by booting my PC from CD-ROM, will it over write the current Hoary hedge Ubuntu Installation?

    Kindly specify the installation of new version over the old version of Ubuntu in detal. Thanks!

  4. @Gaurav : Thanx brother! The drives got successfully mounted using the command u mentioned.

    But, the mounting is only valid for session. Kindly help me to mount the 3 windows partitions c:,d:,e: located at hda1,hda5,hda6 automatically as i log on to the Ubuntu machine.

    I would be thankful for anyone who helps me doing the same.

  5. @ Everyone: Thanx a lot! I have done with the automatic mounting part using gedit fstab ! Just waiting for the final release of Ubuntu’s latest version. :)

  6. Sorry :(

  7. Nice

  8. Cool!

Leave a Reply

CommentLuv Enabled

Additional comments powered by BackType

    Follow @honeytech On Twitter

    @babychen Yeah, One can create Huffingtonpost with the help of WP, twicks, custom plugins &amp; content structuring. ;P
  • Subscribe For Tips


  • Top Fans Of The Day

  • Sponsors Zone

Hot Tags

Web design Linux Designs Firefox iphone free Social media Windows Social google Internet ubuntu open source How to blogging mobile mistakes WordPress Plugin browser tips