From owner-freebsd-stable@freebsd.org Tue Oct 10 13:10:03 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79F65E31067 for ; Tue, 10 Oct 2017 13:10:03 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 481FC814D3 for ; Tue, 10 Oct 2017 13:10:03 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (124-18-21-125.dz.commufa.jp [124.18.21.125]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id v9AD9qpC057245; Tue, 10 Oct 2017 22:09:52 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Tue, 10 Oct 2017 22:09:51 +0900 From: Tomoaki AOKI To: freebsd-stable@freebsd.org Cc: Tomasz CEDRO Subject: Re: automount usb msdosfs no partition table Message-Id: <20171010220951.d6038ffd0b9b12bca95891a3@dec.sakura.ne.jp> In-Reply-To: References: <201710091830.v99IU4Bd013697@sdf.org> <201710091859.v99IxvK3008553@sdf.org> Organization: Junchoon corps X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__10_Oct_2017_22_09_51_+0900_3hg/WMH.3zqovM6p" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 13:10:03 -0000 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 wrote: > On Mon, Oct 9, 2017 at 8:59 PM, Scott Bennett wrote: > > Tomasz CEDRO 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 --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--