LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2009, 08:19 PM   #1
manick_20
LQ Newbie
 
Registered: Mar 2009
Location: Mysore
Posts: 5

Rep: Reputation: 0
how to mount ntfs partition in linux ?


can anyone tell me how to mount ntfs volume in red hat 5.1
 
Old 03-07-2009, 08:45 PM   #2
AsusDave
Member
 
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151

Rep: Reputation: 34
in a terminal type

man mount

I usually don't tell folks that but there is a ton of good info on that man page.

HTH
dave
 
Old 03-07-2009, 08:59 PM   #3
harsha101087
Member
 
Registered: Nov 2007
Distribution: Opensuse 11.0 , Fedora 9 , Ubuntu 8.04
Posts: 54

Rep: Reputation: 15
Code:
# mount -t ( the device ) ( the mount partition )

find the type of device using fdisk -l and specify the mount point for example /media/windows_C or /mnt/windows_c etc

for more reference refer to the man page of mount
 
Old 03-07-2009, 09:43 PM   #4
adam2508
LQ Newbie
 
Registered: Mar 2009
Location: Downey, ca
Distribution: Debian
Posts: 9

Rep: Reputation: 0
mount /dev/yourdrive /mountpoint

or if your kernel supports write mode

mount -t ntfs-3g /dev/yourdrive /mountpoint

ofcourse you substitute yourdrive with your actual drive ex. hda1 sda1 and so on
and mountpoint to where you want to mount it. you have to do does commands as root, unless
you have an entry for it in fstab.
 
Old 03-07-2009, 10:21 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you're interested in mounting your NTFS partition(s) every time you boot your Linux system, you should add the mount instructions to the file /etc/fstab. As a possible model, here's a copy of the /etc/fstab I use for my Ubuntu system:
Code:
$ cat /Jaunty/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda6
UUID=78b0b290-2ee7-46b1-a6b5-6eae61531fec / ext3    relatime,errors=remount-ro 0       1
# /dev/sda7
/dev/sda5       none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
# Ubuntu 8.10
/dev/sda7       /Ubuntu         ext3    defaults        0       2
# /dev/Fedora/Base
/dev/Fedora/Base /Fedora        ext3    defaults        0       2
/dev/sdb1        /Fedora/boot   ext3    defaults        0       2
# Vista
/dev/sda1       /Vista          ntfs-3g defaults        0       0
/dev/sda2       /Vista/Recovery ntfs-3g defaults        0       0
Note that the mount points listed in the second column must be created before fstab is used.

In the above example, the last two entries are NTFS partitions. So, in order to set up the automatic mounting of the two partitions, I opened a terminal window and entered the following commands (Comments indicated by a bang (!) in the line):
Code:
$ sudo su -              ! Switch to running as root
Password:                ! Enter the password for "root"
# mkdir /Vista           ! Create the mount point
# mkdir /Vista/Recovery  ! Create the second mount point
# nano /etc/fstab        ! Use the nano editor to add the two lines from the example (or whatever you're using) to /etc/fstab
# mount /Vista           ! To verify that the /Vista entry is correct
# mount /Vista/Recovery  ! To verify that the second entry is correct
# ls /Vista              ! To look at the C:\ drive's contents
# exit                   ! To get out of "root" mode
$ exit                   ! To close the terminal session
Note: nano is not a fancy editor, but it works even when the window system is not available, so it's worth using just in case you need it some time. But you can substitute any editor you wish to use whet I suggested nano.

Warning: Some system will fail to boot if there are errors in /etc/fstab so you should always be sure to test your changes before you reboot.

Note 2: If you're running a Ubuntu distribution, the sudo su - command may not work because Ubuntu disables root logon. So, on a Ubuntu system, you may need to precede mkdir, nano and mount commands by a sudo.
 
Old 03-08-2009, 03:32 AM   #6
surinder
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Thank You Very Much..........
 
Old 03-09-2009, 04:21 AM   #7
manick_20
LQ Newbie
 
Registered: Mar 2009
Location: Mysore
Posts: 5

Original Poster
Rep: Reputation: 0
HI,

THANKS FOR THE HELP BUT WHILE RUNNING THE CMD

mount -t ntfs-3g /dev/yourdrive /mountpoint,

GIVING ERR as "unknown filesystem type 'ntfs-3g' "
 
Old 03-09-2009, 04:25 AM   #8
ganesh35
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 1
you are supposed to install ntfs file system support:
so first install ntfs-3g : yum install ntfs-3g
Then go ahead and mount the file system: for eg: mount /dev/sda1 /mountpoint

By default it identifies the FS type. you dont have to explicitly specify.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount Corrupted NTFS Partition Under Linux omega71122 Linux - General 3 05-22-2005 08:55 PM
Can I mount an ntfs partition or read one using linux? r_squared Linux - General 8 11-20-2004 12:18 PM
Can I mount my windows NTFS partition from Linux? jdruin Fedora 14 04-21-2004 11:49 AM
How do I mount my NTFS WinXP partition on Linux? adam88 Linux - Software 6 04-18-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration