Tuesday, 15 January 2008

Mounting ntfs Drives in Kubuntu

Find the device and its partition in a terminal window:
sudo fdisk -l
Bootable devices will be marked. The actual drive used to boot will have partitions split up into swap space. IDE devices often (but not always) start with 'h', SATA devices and USB flash drives start with 's'. fdisk will indicate which file format the drive is formatted in. Hard drive letters indicate a specific device (i.e. a hard drive), numbers represent different partitions used in that device. Subsequent letters indicate addtional devices, and will likely be added incrementally (for example, if you have a SATA hard drive mounted first and then attach a USB flash drive, the hard drive should be sda, and the flash drive should end up being sdb.)

Numbers indicate a partition of that particular mounted device. Linux will reserve room for swap space and a boot sector in addition to the filesystem where you will store your files.

Mount the device to a destination folder. Replace 'hda1' below with the drive you wish to mount, and change the '/home/...' directory to where you want to mount the files to (the directory in this case will act like a link or bookmark). The folder in the home user's directory will be "ubuntu" (not your computer name) if it's running off a live cd.
sudo mount /dev/hda1 /home/ubuntu/Desktop/folder -t ntfs
-o nls=utf8,umask=0222
This is for mounting ntfs drives only!

(I've found other commands to "mount an ntfs drive", but they don't seem to work.)

No comments: