View Full Version : fuse devices in fstab?
RJPugh
03-03-2011, 05:03 PM
Greetings. My computer has three hard drives, one of which is being referenced by /dev/fuse# device headings. The disk in question has two primary ntfs partitions, and both of them can be manually mounted. They are appearing as sub-directories in the /media directory, according to their disk label.
I would like these partitions to be mounted automatically on startup, and at a mount point of my own choosing. In the past, I could do this by editing /etc/fstab.
Can I still do this sort of thing with /dev/fuse# strings? More specifically, can I use a fuse string in place of a more traditional slice designation (i.e. /dev/ad0s1 sort of thing) in fstab, and select mounting properties of my own?
Thanks in advance,
RJP
kmoore134
03-03-2011, 05:15 PM
Off the top of my head, I'm not sure if the /dev/fuse devices will be
present when /etc/fstab is first parsed for mounting. If they are, then
sure you can put anything you want in there and have them auto-mount. If
not, then I would put something into /etc/rc.local to init the
/dev/fuse/* devices and then mount it from there.
RJPugh
03-04-2011, 02:45 PM
In general, is rc.conf processed before fstab?
kmoore134
03-04-2011, 03:06 PM
fstab is parsed first, so we can mount /usr, and other file-systems,
then rc.conf, then rc.local.
rc.local is the one I would use to put some shell-commands in place to
auto-mount your drives. But of course, there are many ways to do the
same thing, so you may prefer another method :)
RJPugh
03-31-2011, 01:31 PM
I'm back! Other business detained me for the last few weeks. But anyway...
I've never edited rc.local before; if there a special format that commands should follow? Is this covered in an FAQ or HowTo somewhere?
Currently, all of my internal drives have fuse settings, and can be mounted by "opening" them in Dolphin. But, I would prefer to have them auto-mounted on startup, if only because I don't always use Dolphin as my file cruncher. My external drive needs to be manually mounted the old-fashioned way, but that's easily dealt with.
But getting back, I plan to put three commands in rc.local to mount the partitions on the internal drives. Does the mount command for a fuse device follow the same basic patter as a classic mount? Again, any documents out there?
Thanks again folks!
RJPugh
Fatmice
04-01-2011, 11:51 PM
There is a specific way to do rc scripting. You can refer to this for a tutorial.
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/
As for mounting fuse device, in your case you use ntfs-3g command. The man pages gives all the parameters in its full glory.
The short of it is ntfs-3g /dev/dev_name[slice-number(partition)] /path/to/mount/point
ntfs-3g /dev/sda1a /home/my/home/windows
RJPugh
04-26-2011, 02:35 AM
As for mounting fuse device, in your case you use ntfs-3g command. The man pages gives all the parameters in its full glory.
So in theory, I should be able to enter:
> ntfs-3g /dev/ad1s1 /usr/home/rjp/WXP
...on a command line, and partition ad1s1 (Windows-XP on my machine) would mount normally? If I can do that, then just about everything will clear up.
Still, I ask because when I tried this, I got an "operation not permitted" error for device ad1s1. I had mounted the partition earlier via Dolphin, then dismounted it. Could that have messed things up? Perhaps Dolphin has "dibs" on the partition because it mounted it earlier in the session?
RJPugh
RJPugh
05-25-2011, 02:05 PM
As for mounting fuse device, in your case you use ntfs-3g command. The man pages gives all the parameters in its full glory.
The short of it is ntfs-3g /dev/dev_name[slice-number(partition)] /path/to/mount/point
ntfs-3g /dev/sda1a /home/my/home/windows
This is a boneheaded question, but...
Is that a command-line command, or something to put into a script? I ask because it hasn't worked on the command line. But then, if it isn't supposed to work on a command line, but in a script... well, you know.
:)
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.