View unanswered posts | View active topics | It is currently Sun Apr 12, 2020 01:40
|
Previous topic | Next topic |
Author | Message |
---|
Joined: Sun Jul 08, 2007 17:44 Posts: 11
| New Mac OS X ntfs-3g package I've made available at http://www.daniel-johnson.org/ an Installer package for NTFS-3G. It's based on my Fink package but uses the standard MacFUSE Core package instead of Fink's version. There is, therefore, no need to install Fink or build anything from source. I still recommend using the Fink package, since it's more likely to stay up-to-date, and updates are easier to get.
| Sun Jul 15, 2007 20:52 | Here's some more detailed instructions: To connect to an NTFS volume: First unmount the NTFS disk if currently mounted read-only. You can use Disk Utility to do this and also to get the partition. You can also use the following script to get a list of available NTFS volumes: diskutil list | grep Windows_NTFS The last thing on each line should be something like disk1s1 which is the disk partition. Prefix it with /dev/ to get the value to pass to ntfs-3g. You can use the option -ovolname to specify a name for the Finder to display. Example: mkdir /Volumes/ntfs ntfs-3g /dev/disk1s1 /Volumes/ntfs -ovolname='Windows Disk' Be sure to substitute your disk partition for /dev/disk1s1. Using a mount point of /Volumes/ something allows better integration with the Finder. In this example, I'm using /Volumes/ntfs. To disconnect: umount /Volumes/ntfs or eject from the Finder. See ntfs-3g man page for more options.
| Tue Jul 17, 2007 22:17 | I've made something to make diskutil use ntfs-3g to mount: sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.old sudo cp mount_ntfs /sbin sudo chown root:wheel /sbin/mount_ntfs sudo chmod 555 /sbin/mount_ntfs The first line makes a backup of the system's mount_ntfs. The file mount_ntfs in the second line is a small script I made: #!/bin/sh VOLNAME=`/sw/sbin/ntfslabel -n $1` OPTS='-o default_permissions,locale=pt_PT.UTF-8,volname=$VOLNAME' # Windows system drive as read-only if [ '$VOLNAME' 'Windows' ]; then OPTS='$OPTS,ro' fi /sw/sbin/ntfs-3g $@ $OPTS This gets called by diskutil with the device path and mount path. I use portuguese locale, so change it to your own. I've added a check to prevent mounting the system partition as read/write (for precaution), which I've labeled 'Windows', so feel free to remove that. I'm using the fink path to ntfslabel and ntfs-3g, so to work with the standalone package you just have to change the paths, I guess (does the package have ntfslabel?). BTW, can you take a look at this thread? It's about precomposed characters usage in Windows and decomposed in Mac.
| Tue Jul 17, 2007 23:34 | Neat! It is somewhat risky, though, to replace something in /sbin. And no, the package doesn't contain ntfsprogs. I might do that in a future package.
| Wed Jul 18, 2007 00:30 | Yes, it's risky, and in this case I only tested mounting with diskutil. I don't know of any other case where mount_ntfs is called (other than manually). Anyway, this is cool because partitions get mounted on startup without further effort. Diskutil already gets the volume name somehow, because it creates /Volumes/<volume name> directory before it calls mount_ntfs. So, there's no real need for ntfslabel and VOLNAME can be set like this: VOLNAME=${1%/} VOLNAME=${VOLNAME##*/} It will use the mount directory as the volume name, so it works well with diskutil but it might not use the real volume name if you mount manually after creating the directory using another name. I didn't test a label with spaces, it might need quotes in the OPTS variable.
| Wed Jul 18, 2007 02:27 | I installed the package nicely. Thanks for that. However, when I try to run the ntfs-3g command, I get a 'command not found'. So I suppose I need to run the command from where ntfs-3g is installed. But I can't find it through the finder.. So.. where is ntfs-3g installed? Thanks, Babak Fakhamzadeh
| Wed Jul 18, 2007 23:43 | It's installed in /usr/local/bin/ntfs-3g. You may not have /usr/local/bin in your PATH. Try echo $PATH and see if /usr/local/bin appears. If not, try ls -al ~/.*profile and see if you have a file called .profile and/or .bash_profile. Any shell commands that appear in one of these files will be run when you open a new Terminal window. If have .bash_profile, run this command echo 'export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile otherwise run echo 'export PATH='/usr/local/bin:$PATH' >> ~/.profile then close the Terminal window and open a new one. You can also just use run /usr/local/bin/ntfs-3g directly.
| Thu Jul 19, 2007 00:24 | I still cant write files to any drive thats mounted with ntfs-3g, even though when I look at the drive properties it says read and write. Its that same 'file permission' error. Might you have a work around for this Daniel? or maybe theres someone that can point me to a resources covering the problem. Ive had a difficult time finding any documented and fixed cases of this. Thank you for continuing development on this in ShadowofGeds stead. Darius
| Thu Jul 19, 2007 03:40 | I think '-o default_permissions' solves that. PS: My previous post, instead of using the first parameter, it's supposed to use the second, sorry about that. So, its: VOLNAME=${2%/} VOLNAME=${VOLNAME##*/}
| Fri Jul 20, 2007 01:27 | Hello. I'm New into MAC OSX, and I just installed MacFuse and NTFS-3G. I have tried to mount the drive and I can do successfully using this method: 1) I log in Mac OSX 2) I open Disk Utility and I Unmount the 'Untitled' windows xp volume 3) Open terminal 4)I run echo $PATH and I have this results: /bin:/sbin:/usr/bin:/usr/sbin 5) I run this ls -al ~/.*profile and I have this results -rw-r--r-- 1 Cixi Cixi 35 Jul 27 01:40 /Users/Cixi/.bash_profile -rw-r--r-- 1 Cixi Cixi 35 Jul 27 01:40 /Users/Cixi/.profile since I manually ran this echo 'export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile and also this echo 'export PATH='/usr/local/bin:$PATH' >> ~/.profile 6) I run mkdir /Volumes/ntfs 7) I run /usr/local/bin/ntfs-3g /dev/disk0s3 /Volumes/ntfs -ovolname='Windows XP' and I get: kextload: /System/Library/Filesystems/fusefs.fs/Support/fusefs.kext loaded successfully The problem is: Anytime I reboot I have to do the same! Any reboot I have the NTFS drive read only. how can I get this permanent? Thank You for you help Regards Cixi
| Fri Jul 27, 2007 01:54 | Hi, Thanks for the help, danielj7, but I still don't get the desired result. Now, when running the following commands: mkdir /Volumes/ntfs ntfs-3g /dev/disk1s1 /Volumes/ntfs -ovolname='Windows Disk' I get this: $LogFile indicates unclean shutdown (0, 0) Failed to mount '/dev/disk1s1': Operation not supported Mount is denied because NTFS is marked to be in use. Choose one action: Choice 1: If you have Windows then disconnect the external devices by clicking on the 'Safely Remove Hardware' icon in the Windows taskbar then shutdown Windows cleanly. Choice 2: If you don't have Windows then you can use the 'force' option for your own responsibility. For example type on the command line: mount -t ntfs-3g /dev/disk1s1 /Volumes/ntfs -o force Or add the option to the relevant row in the /etc/fstab file: /dev/disk1s1 /Volumes/ntfs ntfs-3g defaults,force 0 0 Funnily enough, when I try the first suggested commandline option (mount -t ..) I get.. usage: mount [-dfruvw] [-o options] [-t ufs | external_type] special node mount [-adfruvw] [-t ufs | external_type] mount [-dfruvw] special | node With no result.. Any thoughts? Thanks, Babak
| Mon Jul 30, 2007 16:57 | I managed to get the ntfs disk working! I had to force mounting the disk: ntfs-3g /dev/disk1s1 /Volume/ntfs -o volname='Windows Disk',force Woohoo!
| Thu Aug 02, 2007 14:14 | I've updated the website at http://www.daniel-johnson.org/ with some answers to frequently asked questions about the package. This seems to cover most of the questions I've gotten about it.
| Sat Aug 04, 2007 02:57 | Hey, thanks for making such a great and useful piece of software!.. I am a bit of a noob to the Mac OS X Terminal and related information, so bear with me.. I have a Boot Camp (Windows NTFS-formatted) partition on my Mac, and have installed the MacFUSE Core and NTFS-3G package ( as per your instructions at http://www.daniel-johnson.org/ ). I was wondering if there is a way that I can AVOID having to unmount the read-only volume and enter the mkdir /Volumes/ntfs ntfs-3g /dev/disk1s1 /Volumes/ntfs -ovolname='Windows Disk' terminal commands to mount the read/write version every time I boot OS X.. Basically, is there a way I can automate it so that OS X does NOT automatically mount the read-only version of the NTFS volume at startup, but DOES automatically mount the read/write version of the volume at startup ? (or at the very least, a way to compile a script that does it all automatically when executed).. Thanks in advance.
| Mon Aug 06, 2007 10:17 | Sorry, but I don't know an easy way to do this. There's some discussion about this earlier in this thread, but I wouldn't recommend it if you're not comfortable messing with the Terminal.
| Mon Aug 06, 2007 16:04 | Hi Daniel, and thanks for your work at producing an installable package for Mac. Much appreciated! Now, as for the problem discussed above, when I was using Paul Marks (now discontinued) packages, ntfs-3g seemed to be favoured by Mac OS when it mounted a ntfs volume, meaning that after a reboot my windows volumes were always mounted using ntfs-3g. Do you know how he made that happen? Was it perhaps using the 'risky; procedure described above? After all, ntfs-3g is a replacement for the NTFS driver shipped with Mac OS. If there's an easy way to revert back to the original in case of an uninstall, I see no trouble with including this modification in your package. But then I'm not the one who gets the angry e-mail if stuff starts going wrong for people.. Cheers, Patrik PS. I got my 'automounting using ntfs-3g' to work by using the above procedure. I'll just paste my mount_ntfs script in full here, if anyone is hesitant about anything. Note that this does not work with volume names containg spaces, and that I've had some trouble with an external hdd that won't show up using it's proper volume name in Finder (although Disk Utility lists it using the correct name). All credit for this script belongs to 'asstolavista'. mount_ntfs: #!/bin/sh VOLNAME=${2%/} VOLNAME=${VOLNAME##*/} OPTS='-o default_permissions,locale=sv_SE.UTF-8,volname=$VOLNAME' /usr/local/bin/ntfs-3g $@ $OPTS
[/i]
Last edited by kempe on Fri Aug 10, 2007 15:55, edited 3 times in total. Dec 12, 2017 Djay Pro 2 comes with AI that can mix songs together for you. Share All sharing options for: Djay Pro 2 comes with AI that can. It will select the next song from your library that will best. How can I use an external mixer with djay Pro? How do I improve audio and MIDI latency? Pre-cueing does not work with my MIDI controller. What should I do? How can I use my iTunes library with djay Pro for Windows? Where does djay Pro store cue points and other metadata? How can I import cue points from another djay Pro installation? Using 'Open In' to load songs from other apps. Djay for iOS supports playback of tracks via the Open In feature: Navigate to the file you want to play in djay for iOS; Click the open in Icon and select djay for iOS in the pop-up window in order to load the audio file or video directly on one of djay's decks. Djay for ios select all songs. Djay 2 for iPhone - Quick Start Guide (1). You can also manually add songs to the queue. Select Automix Queue and tap “+” to add individual songs, or entire albums, playlists, genre, etc. Songs in the queue will be played in the exact. To delete all songs in the queue, tap Clear. As soon as the queue is empty, djay will automatically.
| Fri Aug 10, 2007 13:28 | Oddly enough, the last two days, my external NTFS disk has automatically been mounted through ntfs-3g on startup. Before, this did not happen and I did not make any changes to the setup.
| Fri Aug 10, 2007 13:32 | Please forgive. I haven't written many shell scripts, but it seems to work and it supports spaces in the volume names too. It also omits options that ntfs-3g might not understand. #!/bin/bash device= mountpoint= while [ '$1' != ' ]; do case $1 in -o ) shift ;; * ) if [ '$device' = ' ]; then device=$1 elif [ '$mountpoint' = ' ]; then mountpoint=$1 fi esac shift done if [ '$device' = ' ]; then echo 'Must specify device and mountpoint!' exit 1 elif [ '$mountpoint' = ' ]; then echo 'Must specify a mountpoint!' exit 1 fi volname=${mountpoint##*/} options='-o default_permissions,locale=en_US.UTF-8,volname='$volname' mountpoint='$mountpoint' echo '/sw/bin/ntfs-3g' $device $mountpoint $options | /bin/bash
Once again, props to asstolavista for the original script. On a side note, can anyone tell me how my email address at techhead.biz got added to the blocked list? I've never been on this forum before, and I'm certainly not a spammer.
| Fri Aug 17, 2007 08:39 | Joined: Tue Nov 21, 2006 23:15 Posts: 1648
| Re: Yet another script.. On a side note, can anyone tell me how my email address at techhead.biz got added to the blocked list? I've never been on this forum before, and I'm certainly not a spammer. We were getting an incredible amount of spam from random *.biz domains and temporarily had to ban the entire top level. Unfortunately we forgot to un-ban the domain after setting up a few good spam filters. Now it's done. Thank you for the note and the script! Szaka
| Fri Aug 17, 2007 19:05 | I've updated my package to 1.826 and also included a removal script and the ntfsprogs utilities. Get it at http://www.daniel-johnson.org/
| Tue Aug 28, 2007 01:05 | I discovered iMountit that mount the disc when I like and I think it is really useful :D Thank You
| Tue Aug 28, 2007 08:45 |
Who is online | Users browsing this forum: No registered users and 12 guests |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Original forum style by Vjacheslav Trushkin. |