Saturday, 12 March 2011

Mounting a NTFS partition or drive to Linux

Steps to mount a NTFS drive to SUSE. For SUSE, the driver to access the ntfs in SUSE is already available when SUSE is install on the computer.

List out all the file systems on the hard drive
# df -h
# dmesg
# dmesg |grep hda


Create a directory to allow the ntfs partition to mount into
# mkdir /mnt/win

Mount the ntfs partition to /mnt/win
# mount -t ntfs /dev/sda2 /mnt/win

Check if windows partition is registered.
# cat /etc/fstab

To access the ntfs partition, simply access the directory i created
# cd /mnt/win

For slackware, driver to access the ntfs partition is not installed. For me, i installed the ntfs-3g to help me to mount ntfs partition to linux directory. The ntfs-3g package is available at the SlackBuilds webpage,

After installing, use this command to mount:
# ntfs-3g -o uid=chongming /dev/sdv1 /media/hd

/dev/sdv1 is the drive partition detect by linux system. Use df -h to detect the drives.

No comments:

Post a Comment

Cash flow Forecasting

Why cash forecasting? A cash forecasting model is an essential tool for treasuer to manage working capital. Forecasting preempt treasurer ...