Does sysutils/automount (not sysutils/automounter) work as expected? *Need fix for head, though. The fix itself is easy, but I've stuck with version check to create extra patch for ports.
Attached patch for head. If you want to use sysutils/automount on head, apply it as root AFTER install for now. On Mon, 9 Oct 2017 21:07:29 +0200 Tomasz CEDRO <to...@cedro.info> wrote: > On Mon, Oct 9, 2017 at 8:59 PM, Scott Bennett <benn...@sdf.org> wrote: > > Tomasz CEDRO <to...@cedro.info> wrote: > >> i cannot format that device, as its the "firmware feature" that it has no > >> partition table.. i would have to fix the firmware.. but it would be nice > >> to automount it anyway as macos, linux and windoze can :-) > > Well, put a partition table onto it, then. You can use either gpart(8) > > or fdisk(8) to do that and to create a slice, and then use newfs_msdos(8) to > > create the file system. > > I understood from your previous message that you wanted to create a > > FAT32 > > file system on /dev/da0 rather than on /dev/da0s1, which meant on the bare > > device rather than on a slice. Otherwise, create the partition table, > > create > > a slice, and proceed. > > The problem is device has hardcoded filesystem, with no partition > table, all this is created by firmware on device boot, cannot get > formatted nor partitioned.. I can mount it by hand.. but it does not > get automounted.. and exactly this part is the problem and quest here > :-) :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" > -- Tomoaki AOKI <junch...@dec.sakura.ne.jp>
--- /usr/local/sbin/automount.orig 2015-09-21 16:10:07.114602000 +0900 +++ /usr/local/sbin/automount 2017-09-30 00:23:51.855577000 +0900 @@ -423,12 +423,12 @@ case ${2} in __log "${DEV}: fsck_msdosfs ${LINE}" done __wait_for_device ${DEV} - if mount_msdosfs ${OPTS} -o large -o longnames -m 644 -M 755 \ + if mount_msdosfs ${OPTS} -o longnames -m 644 -M 755 \ -D ${CODEPAGE} -L ${ENCODING} ${DEV} ${MNT} then ADD=1 else - __log "${DEV}: mount failed (fat) 'mount_msdosfs ${OPTS} -o large -o longnames -D ${CODEPAGE} -L ${ENCODING} -m 644 -M 755 ${DEV} ${MNT}'" + __log "${DEV}: mount failed (fat) 'mount_msdosfs ${OPTS} -o longnames -D ${CODEPAGE} -L ${ENCODING} -m 644 -M 755 ${DEV} ${MNT}'" exit 1 fi __log "${DEV}: mount (fat)"
_______________________________________________ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"