Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2017 22:09:51 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        freebsd-stable@freebsd.org
Cc:        Tomasz CEDRO <tomek@cedro.info>
Subject:   Re: automount usb msdosfs no partition table
Message-ID:  <20171010220951.d6038ffd0b9b12bca95891a3@dec.sakura.ne.jp>
In-Reply-To: <CAFYkXjnaLSr=dQFv3rNPv7TQC2zGLZRe6X0Nf-sTe%2B9=aZfJFA@mail.gmail.com>
References:  <mailman.9.1507550400.64362.freebsd-stable@freebsd.org> <201710091830.v99IU4Bd013697@sdf.org> <CAFYkXjmbxceYTBawzDqKWoF5qVLCpxTDPfJrTXkKviEfYLjpCQ@mail.gmail.com> <CAFYkXjnJfjBK7xj-nBCKtZkdFXKFA7wbgMP%2BE5ROpV=yzpp-OA@mail.gmail.com> <CAFYkXjmFgPTz1a5itJrX7_OYmq3Y=KXYUekWCcAsEWZ4ME6FXw@mail.gmail.com> <201710091859.v99IxvK3008553@sdf.org> <CAFYkXjnaLSr=dQFv3rNPv7TQC2zGLZRe6X0Nf-sTe%2B9=aZfJFA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart=_Tue__10_Oct_2017_22_09_51_+0900_3hg/WMH.3zqovM6p
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

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 <tomek@cedro.info> wrote:

> On Mon, Oct 9, 2017 at 8:59 PM, Scott Bennett <bennett@sdf.org> wrote:
> > Tomasz CEDRO <tomek@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-unsubscribe@freebsd.org"
> 


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>

--Multipart=_Tue__10_Oct_2017_22_09_51_+0900_3hg/WMH.3zqovM6p
Content-Type: text/x-diff;
 name="sysutils_automount_head.diff"
Content-Disposition: attachment;
 filename="sysutils_automount_head.diff"
Content-Transfer-Encoding: 7bit

--- /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)"

--Multipart=_Tue__10_Oct_2017_22_09_51_+0900_3hg/WMH.3zqovM6p--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171010220951.d6038ffd0b9b12bca95891a3>