I was following this thread to mount ntfs-3g at boot time. The solution involves creating a symlink from ntfs-3g to mount_ntfs which I'm not familiar with.
I'm on FreeBSD 7.1-RELEASE. I'll describe what i did to my system.
I tried creating a symlink by putting
in '/etc/rc.local'. I gotten this error:
at boot.
I read the ln man page some more and tried:
It worked. Now I learn I've gotten the order of the source and target of the linking wrong. I then issued:
which is the correct order I needed.
I issued the following to check the symlink. I got:
Then I checked /usr/local/bin/ntfs-3g and gotten the same error:
It seems I've now linked both files in a circle to each other. So I looked for a tool to unlink them. I issued:
and now it appears I had deleted /sbin/mount_ntfs with unlink. 
Figuring that until I find a way to replace the deleted /sbin/mount_ntfs, I should just remove the broken symlink of /usr/local/bin/ntfs-3g from /sbin/mount_ntfs at this time. I made a backup this time with:
this time in case the symlink remove procedure goes wrong again.
After issuing:
surely not only the symlink but the file 'ntfs-3g' was also gone. I recovered 'ntfs-3g' from the backup to find that the broken symlink from '/sbin/mount_ntfs' has also been restored.
That was what happened. Please teach me how to safely remove symlinks between 2 binary files without removing the file itself and how to replace /sbin/mount_ntfs that I've deleted.
I'm on FreeBSD 7.1-RELEASE. I'll describe what i did to my system.
I tried creating a symlink by putting
Code:
ln -s /sbin/mount_ntfs /usr/local/bin/ntfs-3g
Code:
ln: /usr/local/bin/ntfs-3g: File exists
I read the ln man page some more and tried:
Code:
ln -sf /sbin/mount_ntfs /usr/local/bin/ntfs-3g
Code:
ln -sf /usr/local/bin/ntfs-3g /sbin/mount_ntfs
I issued the following to check the symlink. I got:
Code:
file /sbin/mount_ntfs
/sbin/mount_ntfs: broken symbolic link to `/usr/local/bin/ntfs-3g'
Code:
file /usr/local/bin/ntfs-3g
/usr/local/bin/ntfs-3g: broken symbolic link to `/sbin/mount_ntfs'
It seems I've now linked both files in a circle to each other. So I looked for a tool to unlink them. I issued:
Code:
unlink /sbin/mount_ntfs

Figuring that until I find a way to replace the deleted /sbin/mount_ntfs, I should just remove the broken symlink of /usr/local/bin/ntfs-3g from /sbin/mount_ntfs at this time. I made a backup this time with:
Code:
cp -RP /usr/local/bin/ntfs-3g /usr/local/bin/ntfs-3g_bak
After issuing:
Code:
rm /usr/local/bin/ntfs-3g
That was what happened. Please teach me how to safely remove symlinks between 2 binary files without removing the file itself and how to replace /sbin/mount_ntfs that I've deleted.