# What device names amountd must look for.
# What label names amountd must look for.
# Base directory into which volumes will be mounted.
# If YES, subdirectories below MNTPREFIX will always match the device name.
# Otherwise the volume's label will be used if it exists.
# Where amount keeps all its working data and FIFOs.
Nov 5 00:11:13 OLD-BSD volmand: CREATE da1
Nov 5 00:11:13 OLD-BSD kernel: ugen0.5: <vendor 0x13fe> at usbus0
Nov 5 00:11:13 OLD-BSD kernel: umass1: <vendor 0x13fe USB DISK 2.0, class 0/0, rev 2.00/1.00, addr 5> on usbus0
Nov 5 00:11:13 OLD-BSD kernel: da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
Nov 5 00:11:13 OLD-BSD kernel: da1: < USB DISK 2.0 PMAP> Removable Direct Access SCSI-0 device
Nov 5 00:11:13 OLD-BSD kernel: da1: 1.000MB/s transfers
Nov 5 00:11:13 OLD-BSD kernel: da1: 3825MB (7834944 512 byte sectors: 255H 63S/T 487C)
Nov 5 00:11:14 OLD-BSD volmand: CREATE da1s1
G_Nerc wrote:I have a
- Code: Select all
G_Nerc wrote:what i do wrong?
G_Nerc wrote:Maybe problem in that my flash disk uses FAT32 with locale CP1251, or it LABEL have cyrillic symbols in that codepage?
My OS is [FILE]FreeBSD 9.0 RC1[/FILE]
G_Nerc wrote:Yes it works! Thanks a lot!
- Maybe add in conf file option with ability to automount devices?
- And add options like mount_script [script to execute when mounts new device] (for example with that script will be easy integrate [FILE]volman[/FILE] with [FILE]idesk[/FILE] & [FILE]fluxbox[/FILE]. Insert flash and icons for it appears), similar with umount_script
G_Nerc wrote:And option to set prefered codepage. Because my flash disk after [CMD="$"]vmount da1s1[/CMD] shows files in russian like [FILE]???????.pdf[/FILE] Without volman i use for mounting such command [CMD="#"]mount_msdosfs -L ru_RU.UTF-8 -D CP866 /dev/da0s1 /mnt/flash[/CMD]
aragon wrote:I'll try hoof that into the API in the next version, but the client implementation I'm not sure about. How would you want to specify the code page?
LOCAL_CODEPAGE=ru_RU.UTF-8 ([I]codepage for local system UTF-8 by default[/I])
FAT32_CODEPAGE=CP866 ([I]preferred codepage for mounted FAT32 disks[/I])
NTFS_CODEPAGE=CP1251 ([I]preferred codepage for mounted NTFS disks[/I])
and etc for other supported FS
A while ago I wrote [thread=23105]an elaborate shell script[/thread]
XMNTCMD_msdosfs="mount_msdosfs -m 666 -M 777"
XMNTCMD_ext2fs="mount -t ext2fs"
XMNTCMD_ufs="mount -t ufs"
plamaiziere wrote:You should auto-mount external storages with nosuid at least.
plamaiziere wrote:I don't think it's safe to auto-mount without checking that the user is able to do this (may be via a group ?)
bigtoque wrote:I assume this is due to there not being an event for attaching a device because the device is already attached at boot.
Users browsing this forum: No registered users and 0 guests