Tuesday, March 25, 2014

How to mount NTFS partition on CentOS(6.x)





How to mount NTFS partition on CentOS(6.x) 


 Enter as a root user

 yum install ntfs-3g

fdisk -l /dev/sda                                                                               //Check the partition   //1st HDD

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13       97280    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       10849    87040000    7  HPFS/NTFS
/dev/sda3           10849       24516   109780992    7  HPFS/NTFS
/dev/sda4           24516       60802   291466240    5  Extended
/dev/sda5           42659       60802   145731584    7  HPFS/NTFS
/dev/sda6           24516       24580      512000   83  Linux
/dev/sda7           24580       42658   145214464   8e  Linux LVM



 fdisk -l /dev/sdb                                                                                  //Check the partition   //2nd HDD

Disk identifier: 0xf113c31a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        7650    61440000    7  HPFS/NTFS
/dev/sdb2            7650       33146   204800000    7  HPFS/NTFS
/dev/sdb3           33146       60682   221184000    7  HPFS/NTFS
/dev/sdb4           60682       60802      961560    5  Extended
/dev/sdb5           60682       60802      960512   8e  Linux LVM



  modprobe fuse

Create folder for mounting NTFS partition:

  mkdir /mnt/ntfs1
  mkdir /mnt/ntfs2
  mkdir /mnt/ntfs3   
                                                                                        //As much as your need.


Mount NTFS partition(sda or sdb):

  mount -t ntfs-3g /dev/sda1 /mnt/ntfs1
  mount -t ntfs-3g /dev/sda2 /mnt/ntfs2

  mount -t ntfs-3g /dev/sdb3 /mnt/ntfs3


----So On ---

Enter the NTFS partition:

cd /mnt/ntfs1
cd /mnt/ntfs2


--You will get all content of NTFS pertition


===Unmount==

umount /mnt/ntfs1












No comments:

Post a Comment