From owner-freebsd-questions@freebsd.org Fri Jul 28 19:14:27 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 AA72BDCC94A for ; Fri, 28 Jul 2017 19:14:27 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B6C56D102 for ; Fri, 28 Jul 2017 19:14:27 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 033A2622BE; Fri, 28 Jul 2017 15:14:26 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SagYt_TJWw79; Fri, 28 Jul 2017 15:14:22 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 27125622B6; Fri, 28 Jul 2017 15:14:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1501269261; bh=cIuUijE/wdPxnAWDF6C+UGccfeLq5p4q80K69HUcSlQ=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=eM1qEQ2nYMXsN0gRaPCyy3hshEiYvIFtTjIWo/dBeErnOoyO01bryraJpmreKZ3dg 9yk1qjrlWpuXxFradrVDIDmOEO02pXd1cDgxr+pBXqCgh0+9nfwrYEfU6yhEH4FAOu pyLe1B1pv3kzITdoxBwpwQ2n4VJCwlNUwQZp5eIhsNmd1QuXWtotZsWIVBxpZQBdwe Z3beDSG34PlxU/tSEyyR5LqxpobYaFMeZoG9OxXr1YCGwqHZwETrWL2AEOOLkE8y4S Wbeltd0xwl0eTQiiE6jzn7fpLsd6wob3yE2ZKPJY/ucxKEze3YPNh6b/gJsyUpgMq/ erIxZq+8uPMMA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 28 Jul 2017 15:14:21 -0400 Message-ID: <4a5c3fd942ff8566eefaaf9c990abba0.squirrel@webmail.harte-lyne.ca> In-Reply-To: <20170728205144.c1fc18df.freebsd@edvax.de> References: <20170728205144.c1fc18df.freebsd@edvax.de> Date: Fri, 28 Jul 2017 15:14:21 -0400 Subject: Re: Unable to mount USB Flash memory created on CentOS From: "James B. Byrne" To: "Polytropon" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Fri, 28 Jul 2017 19:14:27 -0000 On Fri, July 28, 2017 14:51, Polytropon wrote: > On Fri, 28 Jul 2017 13:22:06 -0400, James B. Byrne via > freebsd-questions wrote: >> On my new FreeBSD workstation I am trying to read data off of a USB >> 'key' flash memory stick recorded using rsync on a CentOS-6 system. >> I was able to do this successfully up until the point that I inserted >> another usb stick. Now I cannot mount or read either. > > Did you unmount the previous stick correctly? Yes. > > When you say it was "recorded" with CentOS, which file system > has been used? Or is it a "raw" file (no file system at all, > output written directly to the device)? > ext2fs. I was formerly able to read these usb sticks on the new FreeBSD based workstation. The problem only surfaced when I inserted a second usb flash drive. > > >> I probably made things worse by first removing both keys from the >> host and then deleting the contents of /media. However, that is >> done. > > That should not be a big problem, as /media is usually populated > automatically by a desktop environment's automounter, or manually > by the system administrator (which implies that you can easily > recreate required mountpoints under /media if you use /etc/fstab > as a template). This is what I have in /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ada0p2.eli none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 fdesc /dev/fd fdescfs rw 0 0 proc /proc procfs rw 0 0 > > > >> At the moment what happens is that upon insertion the 'computer' >> browser pane will display a filesystem labelled 'USB Drive' but I >> cannot open it for viewing. > > Is it empty? When you say it's being opened, I assume this is a > file browser - but from which desktop? They are quite different! I am using the Mate desktop and the file browser application shown as 'Computer' on the desktop. > > Check things easily: Open a terminal and check the outpuf of > > % mount -v > # mount -v zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls, fsid 3356d1ddde69c9ae) devfs on /dev (devfs, local, multilabel, fsid 00ff007171000000) fdescfs on /dev/fd (fdescfs, fsid 01ff005959000000) procfs on /proc (procfs, local, fsid 02ff000202000000) zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls, fsid 44b2b23bdea4cfa8) zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls, fsid b8bec644de6cc50d) zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls, fsid c3353930de6b28f5) zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls, fsid 9cf37fdcde6acc4c) zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls, fsid 0dde5904de17aec3) zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls, fsid bd542313de5b6740) zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls, fsid cc095ee9de26f4fd) zroot/var/mail on /var/mail (zfs, local, nfsv4acls, fsid 43ce3675dedf12d5) zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls, fsid 1c322eeade9a7a06) zroot on /zroot (zfs, local, noatime, nfsv4acls, fsid 521cbba2def75276) > Is the USB stick (usually /dev/da0 or /dev/da0s1 or something > like that) _really_ mounted? Not that I can see. That appears to be the essence of the problem. > > Check what's on the USB stick, using > > % gpart show da0 > # gpart show da0 => 63 122915265 da0 MBR (59G) 63 8001 - free - (3.9M) 8064 122907264 1 !12 [active] (59G) dmesg shows this: ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:5:0: Attached to scbus5 da0 at umass-sim0 bus 0 scbus5 target 0 lun 0 da0: Removable Direct Access SPC-2 SCSI device da0: Serial Number 50E549C20210BF10A9BC4174 da0: 40.000MB/s transfers da0: 60017MB (122915328 512 byte sectors) da0: quirks=0x3 > >> Neither does a mount command show in the >> right-click popup menu. > > So it probably _is_ mounted. Does the menu show a "detach", > "unoumt" or "eject" entry or symbol? No > > As I said, don't rely on distracting pictural elements. Query > the OS directly using the command line. It will tell you what > is _really_ happening. > -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3