Page 1 of 1

how to show ntfs pardition in centos 5.4

Posted: Thu Dec 31, 2009 10:46 am
by mynetcsp
AOA dear all members plzz ansers i am install centos 5.4 and attach 2 hard drive with nfts pardition how i am view i am new to linux

mount NTFS

Posted: Thu Dec 31, 2009 3:04 pm
by saifkhan123
if you want to view ntfs partitions in linux....then you have to mount them in linux.....for example if you are using ubuntu, You can mount NTFS or FAT windows partition with mount command.
=> Click on Applications
=> Select Accessories
=> Select Terminal
=> Now terminal window will be on screen.

First you need to create directory where you can attach windows partition using mount command (for example /media/c for C:):

Code: Select all

# mkdir -p /media/c
Now find out list of partition (click on System > Administration > Disks ) or use following command:

Code: Select all

# fdisk -l
Output:

Code: Select all

Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        2432    19535008+  86  NTFS
/dev/hdb2            2433        2554      979965   82  Linux swap / Solaris
/dev/hdb3            2555        6202    29302560   83  Linux
As you see /dev/hdb1 is NTFS partition. Now type following command:

Code: Select all

# mount -t ntfs -o nls=utf8,umask=0222 /dev/hdb1 /media/c
To unmount Windows NTFS partition type command:

Code: Select all

# umount /media/c
Where,

* -t : Specify file system type (such as NTFS or FAT)
* umask=VALUE: Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.
* iocharset=VALUE: Character set to use for converting between 8 bit characters and 16 bit Unicode characters. The default is iso8859-1. Long filenames are stored on disk in Unicode format.