NMT:NTFS: Difference between revisions

From Lundman Wiki
No edit summary
No edit summary
Line 1: Line 1:
== NTFS-3G ==
== NTFS-3G ==


When I get time this needs to be cleaned up, all required files should be places in one tarball, and using the NMT installer script to install. A little helper program that listens for remote-control command Eject to umount would be nice as well.
I compiled FUSE and NTFS-3G for NMT platform and wrapped it in a shell script that waits for Eject button to be pushed on the remote control. It will then swap between NTFS (read-only)9 and NTFS-3G (read/write), and back again if you push Eject again.


Also, real life examples instead of my guessed text output is needed.
To manually try it, follow these steps:


  1) Enable telnetd http://lundman.net/wiki/index.php/NMT:telnetd
  cd /tmp  (or /share/Apps for HDDs)
  2) Get ldvd package and untar http://www.lundman.net/ftp/nmt/ldvd-1.2.tar.gz
  wget lundman.net/ftp/nmt/nmt_ntfs3g.tar.gz
  3) Get ntfs-3g binary: http://www.lundman.net/ftp/nmt/ntfs-3g-1.2506-nmt
  tar -zxvf nmt_ntfs3g.tar.gz
4) Run "mount" or "df" to see current mount point, for example:
  cd nmt_ntfs3g
/dev/hda3 on /opt/sybhttpd/localhost.drives/USB_DRIVE_A type ntfs (ro)
  ./ntfs_helper &
5) Make sure your PATH has "fusermount" on it.
# export PATH=$PATH:/opt/sybhttpd/localhost.drives/HARD_DISK/Apps/ldvd
# fusermount
fusermount: missing mountpoint argument
(good, it finds it)
'''6) load kernel module (only once each boot needed)'''
'''# insmod fuse.ko'''
7) Unmount the old ntfs:
# umount /opt/sybhttpd/localhost.drives/USB_DRIVE_A
  8) Mount it read/write:
# ntfs-3g /dev/hda3 /opt/sybhttpd/localhost.drives/USB_DRIVE_A
  If it was not-clean, you can use # ntfs-3g -o force /dev/hda3 /opt/sybhttpd/localhost.drives/USB_DRIVE_A


But this is important when you use it read/write. You must unmount it cleanly when you are finished.
The mount type should be indicated on the name. Currently it only changes USB_DRIVE_ names to NTFS, if you are using other attached storage in NTFS, please let me know of the names to modify.
 
9) unmount
umount /opt/sybhttpd/localhost.drives/USB_DRIVE_A

Revision as of 06:41, 12 April 2009

NTFS-3G

I compiled FUSE and NTFS-3G for NMT platform and wrapped it in a shell script that waits for Eject button to be pushed on the remote control. It will then swap between NTFS (read-only)9 and NTFS-3G (read/write), and back again if you push Eject again.

To manually try it, follow these steps:

cd /tmp   (or /share/Apps for HDDs)
wget lundman.net/ftp/nmt/nmt_ntfs3g.tar.gz
tar -zxvf nmt_ntfs3g.tar.gz
cd nmt_ntfs3g
./ntfs_helper &

The mount type should be indicated on the name. Currently it only changes USB_DRIVE_ names to NTFS, if you are using other attached storage in NTFS, please let me know of the names to modify.