From owner-freebsd-questions@freebsd.org Sat Jul 29 09:01:50 2017 Return-Path: Delivered-To: freebsd-questions@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 A4B24DBECA7 for ; Sat, 29 Jul 2017 09:01:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay12.qsc.de (mailrelay12.qsc.de [212.99.163.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 182C864DFE for ; Sat, 29 Jul 2017 09:01:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay12.qsc.de; Sat, 29 Jul 2017 11:01:46 +0200 Received: from r56.edvax.de (port-92-195-203-176.dynamic.qsc.de [92.195.203.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 5F00E3CBF9; Sat, 29 Jul 2017 11:01:45 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v6T91iKm002021; Sat, 29 Jul 2017 11:01:44 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 29 Jul 2017 11:01:44 +0200 From: Polytropon To: byrnejb@harte-lyne.ca Cc: freebsd-questions@freebsd.org Subject: Re: Unable to mount USB Flash memory created on CentOS Message-Id: <20170729110144.1cce7c70.freebsd@edvax.de> In-Reply-To: References: <20170728223744.a94ce254.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay12.qsc.de with 79C386A3791 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1271 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2017 09:01:50 -0000 On Fri, 28 Jul 2017 16:58:15 -0400, James B. Byrne wrote: > This is the second (of three) stick involved. > > ugen3.3: at usbus3 > umass1: > on usbus3 > umass1: SCSI over Bulk-Only; quirks = 0xc100 > umass1:6:1: Attached to scbus6 > da1 at umass-sim1 bus 1 scbus6 target 0 lun 0 > da1: Removable Direct Access SCSI-2 > device > da1: Serial Number 09B17B4031F15E08 > da1: 40.000MB/s transfers > da1: 489MB (1001472 512 byte sectors) > da1: quirks=0x3 > WARNING: R/W mount denied. Filesystem is not clean - run fsck > > # gpart show da1 > => 32 1001440 da1 MBR (489M) > 32 31 - free - (16K) > 63 1001409 1 linux-data [active] (489M) And here you can see the correct identification for the Linux partition (compared to the initial example). > fsck /dev/da1 > fsck: Could not determine filesystem type > > So, what argument to I pass to fsck -t ??? /dev/da1 ? I'd suggest you use the Linux native fsck (e2fsck). If I remember correctly, there is also an "ext2 fsck" in the port e2fsprogs with the same name. Or maybe it came with FUSE? Basically, you'd so something like # fsck -t ext2 /dev/da1 or, as I mentioned, # e2fsck /dev/da1 An automatic file system type detection relies on an entry in /etc/fstab, which you don't have, so you need to specify the FS type manually. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...