Sunday, November 29, 2009

Mount NTFS-partition in Ubuntu Karmic x64

Do all as the superuser.
  • Get location of the ntfs partition
    fdisk -l
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x14311431
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       29089   233657361    7  HPFS/NTFS
    /dev/sda2           29090       32129    24418800   83  Linux
    /dev/sda3           60304       60801     4000185   82  Linux swap / Solaris
    /dev/sda4           32130       60303   226307655   83  Linux
    
    Partition table entries are not in disk order
    OK, /dev/sda1 is the desired location.

  • Create folder in which you want partition will be mounted. E.g.
    mkdir /media/windows
  • Add this line to your /etc/fstab file, and save it after editing. Note, you should input your locale if it's differs from this.
    /dev/sda1       /media/windows    ntfs-3g defaults,locale=en_EN.UTF-8 0 0
  • Test with command
    mount -a

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.