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 FeedWhat's Hot
Similar Interesting Posts
- How to restore Linux Grub
- How to connect broadband in Ubuntu
- Ubuntu 8.10 in Windows
- Whats new In Ubuntu 7.10
- Release Candidate Ubuntu 9.04 Available For Download
- How to install Adobe AIR on Linux
- Ubuntu 8.10 comes with Mobility – Get Free CD’s and Downloads
- Running Windows Applications on Linux Ubuntu with Wine
- “APTonCD”-No problem Ubuntu
- How to run Linux directly from Windows
- Configuring Airtel Beetel 220BX in Ubuntu
- Ubuntu 8.04 Finally Released
- Mistake in ubuntu.com website
- Google-Linux Software Repositories
- How To Reset / Retrieve Linux Root Forgotten Passwords
Tutorials On









April 14th, 2007 at 9:23 pm
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!
April 14th, 2007 at 10:14 pm
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
April 17th, 2007 at 11:19 pm
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!
April 18th, 2007 at 1:43 am
@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.
April 19th, 2007 at 1:32 pm
@ 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.
July 15th, 2007 at 8:55 pm
Sorry
July 27th, 2007 at 11:05 am
Nice
August 9th, 2007 at 1:45 pm
Cool!