March 22, 2010

mount

how to mount ntfs file system in linux?

Remote ?For example use a command like this:...

Remote ?
For example use a command like this:

mount -t cifs //fileserver/yourremotestorage /mnt/where.you.want.it.locally -o noauto,user,sync,username=youruser,password=yourpasswd,uid=ntuseryouneed,gid=ntgroupyouneed,dir_mode=0775,file_mode=077

Like  (0 likes)

You may also want to look into the automounter. automount kind of makes the...

You may also want to look into the automounter. automount kind of makes the whole thing a lot simpler, but there is good kernel support for NTFS, now, not like a few years ago.

Also, if for some reason none of the afore mentioned techniques work for you, you could always try to mount it in user-space using fuse. Some of the "features" of the NTFS partition will not be available or not be implmented correctly because of the abstraction being done by fuse, but it should be sufficient to read files and place files on a disk.

Like  (0 likes)

This also depends on whether you are mounting an NTFS filesystem located on...

This also depends on whether you are mounting an NTFS filesystem located on your system, or one over the network.

For network, use:

mount -t cifs //ntfs/share /mount/point

you will also have to include username and password if required by the remote system.

Depending on your distro, there are also GUI based ntfs-3g wrappers that can help in the process.

Like  (0 likes)

In most distros today the -t would be ntfs-3g. That's why I asked which distro.

In most distros today the -t would be ntfs-3g. That's why I asked which distro.

Like  (0 likes)

From within a terminal as root:...

From within a terminal as root:

mount -t ntfs /dev/yourdevice /mountpoint

You can identify 'yourdevice' with:

fdisk -l

See the sizes of the drives and then corresponding name in that info, like /dev/sda, /dev/hda and put that instead of the above 'yourdevice'.(maybe you also need the specify the partition with /dev/sda1, /dev/hda2 etc.)

A mountpoint is just a directory on the system, you can take any.

The "-t ntfs" is just to specify the filesystem type.(for ext3 filesystem you should use "-t ext3")

Like  (0 likes)

That depends on the distro. Most of them have ntfs-3g installed by default....

That depends on the distro. Most of them have ntfs-3g installed by default. What disro are you using?

Like  (0 likes)