LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to mount ntfs partition in linux ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-mount-ntfs-partition-in-linux-709928/)

manick_20 03-07-2009 08:19 PM

how to mount ntfs partition in linux ?
 
can anyone tell me how to mount ntfs volume in red hat 5.1

AsusDave 03-07-2009 08:45 PM

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

harsha101087 03-07-2009 08:59 PM

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


adam2508 03-07-2009 09:43 PM

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.

PTrenholme 03-07-2009 10:21 PM

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.

surinder 03-08-2009 03:32 AM

Thank You Very Much..........

manick_20 03-09-2009 04:21 AM

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' "

ganesh35 03-09-2009 04:25 AM

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.


All times are GMT -5. The time now is 08:15 AM.