LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 01-27-2012, 08:05 PM   #1
Gullible Jones
LQ Newbie
 
Registered: Apr 2011
Posts: 29

Rep: Reputation: 5
pmount equivalent?


Is there anything like pmount for Free/Net/OpenBSD? Not automounting, but e.g. a wrapper for the mount command that (with vfs.usermount enabled) can create a directory in /media or wherever, mount the device to it, and later unmount it and delete the directory, as pmount would do.

(I have looked into FreeBSD's amd-based automatic mounting system... It seems a bit overkill. As for HAL based automount, last I checked it was a complete mess on *BSD. Likewise, OpenBSD's hotplugd requires too much configuration for my liking.)
 
Old 01-28-2012, 06:17 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,292

Rep: Reputation: 67
Hya

The Penguin world may survive with udisks.
How about cheerful-looking daemon with sneakers and a pitchfork world?

cheers
 
Old 01-28-2012, 09:39 AM   #3
Gullible Jones
LQ Newbie
 
Registered: Apr 2011
Posts: 29

Original Poster
Rep: Reputation: 5
Pardon?
 
Old 02-04-2012, 02:25 PM   #4
Gullible Jones
LQ Newbie
 
Registered: Apr 2011
Posts: 29

Original Poster
Rep: Reputation: 5
Turns out pmount or equivalents are not needed at all. User mounting in *BSD is much simpler and easier than in Linux.

It works like this:

- You set kern.usermount to 1 in sysctl.conf
- You make sure your user is in the group that owns the device nodes you want to mount (usually "operator")
- You run dmesg to find what the disk you plugged in is detected as, then disklabel on the disk to find the partitions
- You mount the partition you want somewhere in your home directory, like so:

Code:
$ mount /dev/sd1a ~/mnt
sd1a will now be mounted to ~/mnt, and you can access whatever's on it. As long as you don't change the partition layout, you can mount the partition again whenever using the same command.

Edit: umm right, you also have to chmod the relevant nodes to get read/write access. But after that it will work.

Last edited by Gullible Jones; 02-04-2012 at 03:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB tab not displayed by pmount with Puppy 4.3.1 fatmystic Puppy 7 11-30-2009 03:41 PM
pmount fails in 12.2 Joe 6 Pack Slackware 6 12-13-2008 01:22 PM
mount cd audio with pmount and cdfs nicostcado Linux - Newbie 0 12-12-2008 09:44 PM
ivman -> pmount problem deadlinx Ubuntu 6 12-10-2008 12:10 PM
pmount not working linuxmandrake Ubuntu 1 04-08-2006 10:27 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration