DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th February 2014
divel divel is offline
Port Guard
 
Join Date: Nov 2013
Location: Madrid, Spain
Posts: 14
Thanked 0 Times in 0 Posts
Default Automounting USB storage devices for desktop

Is there any way to automount USB storage devices to use FreeBSD as a desktop system?

I tried the automount, automounter and volman sysutils/ports. I configured /usr/local/etc and ran services. I just got the manual mount with vmount(volman) through the console.
Reply With Quote
  #2   (View Single Post)  
Old 7th February 2014
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 376
Thanked 13 Times in 13 Posts
Default

Is there some specific issue you have with any of those? People seem to use them effectively.

I prefer to write my own devd script.

Maybe this links will help:

devd automounting
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #3   (View Single Post)  
Old 8th February 2014
divel divel is offline
Port Guard
 
Join Date: Nov 2013
Location: Madrid, Spain
Posts: 14
Thanked 0 Times in 0 Posts
Default As example

Code:
# automount --version
automount 1.4.3 2013/03/13

# cat /var/log/automount.log
2014-02-09 00:15:24 /dev/da4: attach
2014-02-09 00:15:24 /dev/da4: filesystem not supported or no filesystem

# fdisk /dev/da4
******* Working on device /dev/da4 *******
parameters extracted from in-core disklabel are:
cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
    start 63, size 625137282 (305242 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

# file -b -L -s /dev/da4
x86 boot sector, Microsoft Windows XP MBR, Serial 0x74362755; partition 1: ID=0x7, active, starthead 1, startsector 63, 625137282 sectors, code offset 0xc0

# file -b -L -s /dev/da4s1
x86 boot sector, Microsoft Windows XP Bootloader NTFS, code offset 0x5b, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)

---

# uname -a
FreeBSD MYHOST 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

# pkg info | grep -i ntfs
fusefs-ntfs-2012.1.15          Mount NTFS partitions (read/write) and disk images

# dmesg | tail -10
ugen1.6: <Iomega> at usbus1
umass1: <Iomega External HD, class 0/0, rev 2.00/0.00, addr 6> on usbus1
umass1:  SCSI over Bulk-Only; quirks = 0x4100
umass1:5:1:-1: Attached to scbus5
da4 at umass-sim1 bus 1 scbus5 target 0 lun 0
da4: <ST332082 0A 3.AA> Fixed Direct Access SCSI-0 device 
da4: 40.000MB/s transfers
da4: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C)
da4: quirks=0x2<NO_6_BYTE>

# grep devd /var/log/messages
Feb  9 00:15:24 MYHOST devd: Executing '/usr/local/sbin/automount da4 attach'

# kldstat -m fuse
Id  Refs Name
  3    1 fuse

Last edited by divel; 8th February 2014 at 10:41 PM. Reason: Adding kldstat
Reply With Quote
  #4   (View Single Post)  
Old 8th February 2014
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 593
Thanked 9 Times in 9 Posts
Default

This FreeBSD thread may be of some help. The first partition looks to be NTFS and it appears the
# ntfs-3g /dev/ntfs/disklabelgoeshere /mnt/mountpoint works albeit with a decrement in performance.
Reply With Quote
  #5   (View Single Post)  
Old 10th February 2014
divel divel is offline
Port Guard
 
Join Date: Nov 2013
Location: Madrid, Spain
Posts: 14
Thanked 0 Times in 0 Posts
Default Automatic?

According to the script, seems to use the label for the type of file system to mount. In my opinion, this is impractical because it requires manual intervention. This is not automatic, do I need to run glabel?. I do not make a script for over a decade and could be wrong.

Automount.sh:
Code:
Line 264: echo $(file -b -L -s ${DEV} | sed -E 's/label:\ \".*\"//g')
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
automounting devices on Xfce4 with hotplugd does not work harishankar OpenBSD Packages and Ports 13 17th December 2013 03:57 PM
Other Host storage devices vulnerable with KVM Linux virtualisation J65nko News 0 31st December 2011 04:55 PM
Automounting DVD/USB rex FreeBSD General 2 4th September 2008 08:03 PM
Automounting USB devices with HAL/KDE vinegaroon FreeBSD General 1 13th June 2008 02:16 PM
Automounting drives jwhal OpenBSD General 4 12th June 2008 05:00 PM


All times are GMT. The time now is 05:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick