From owner-freebsd-questions@freebsd.org Fri Jul 28 19:37:09 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 7C302DCD0F4 for ; Fri, 28 Jul 2017 19:37:09 +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 4C6B66DE40 for ; Fri, 28 Jul 2017 19:37:08 +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 C2A8B621BF; Fri, 28 Jul 2017 15:37:07 -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 VnCOkTYtzZrx; Fri, 28 Jul 2017 15:37:06 -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 7A068622C9; Fri, 28 Jul 2017 15:37:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1501270625; bh=lbSznUGdUYNSg5+CNUIqTpA9dfyCoRykIXgL/I1E5bw=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=bBTNVpoHtuGMc1CAlc9qifMVOOjy8owhZCx8U9s7jJyw4o4jXVXqbRamQ9hM7cnIp c2thGxy8UMR0yiZkGu1Vs/NLRZ3Qd3J/5sOgHKVPNV8+b0SAq2nCgpwxfzJVmW+1B+ 8UO0lWg/OGIPyvLA7aeLgIB7/7nZiWvuZNTV7qCP8FPLbvixZECCY/fWc6TDuRlsDs yCeSz4kyHG4t2Acqa5n+PEz861ZbWpnIQtpNxLOptFh3f3jwaH5c4P1hM4T1kyL1UF GwhPqCJxm10gbsecyeyELAxCEVWW7bF+N+1DDuaTO8xHSg4ITAitzbGKq0z2BHan3I x43hAq/Vx7fOA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 28 Jul 2017 15:37:05 -0400 Message-ID: <32ee693f24a1725290b47822cfd8bc9e.squirrel@webmail.harte-lyne.ca> In-Reply-To: <20170728212432.7be758bc.freebsd@edvax.de> References: <20170728205144.c1fc18df.freebsd@edvax.de> <4a5c3fd942ff8566eefaaf9c990abba0.squirrel@webmail.harte-lyne.ca> <20170728212432.7be758bc.freebsd@edvax.de> Date: Fri, 28 Jul 2017 15:37:05 -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:37:09 -0000 On Fri, July 28, 2017 15:24, Polytropon wrote: >> > 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. > > Can you _manually_ mount the USB stick? For example, with > something like > > % mount -t ext2fs -o ro /dev/da0 /media/da0 > mount -t ext2fs -o ro /dev/da0 /media/da0 mount: /media/da0: No such file or directory > No matter if the file browser will automatically open a window for > /media/da0 (in this example), you can check again the output of > > % mount -v | grep da0 > # mount -v | grep da0 # > and of course > > % ls /media/da0 > > to see if the files you are expecting are really there. > # ls /media/da0 ls: /media/da0: No such file or directory # ls /media/ # > >> > 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) > > Hmmm... that looks really strange... check with "old-fashioned" > fdisk again: > > % fdisk da0 # fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=7651 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=7651 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 8064, size 122907264 (60013 Meg), flag 80 (active) beg: cyl 1/ head 0/ sector 1; end: cyl 905/ head 60/ sector 61 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: > > Is there an ext2 partition? The output you presented looks like > a situation where there's nothing the system can automatically > detect and mount. Well, this exact usb stick was mounted and working up to the point that I inserted a second one. I have moved files from and to the device earlier today. > > (I don't have an ext2 USB stick at hand so I cannot check how > the gpart and fdisk output should look like for a valid TOC with > an ext2 partition.) > > Can you re-initialize the USB stick on the Linux system? Just in > case partitioning data has been damaged... > No, I cannot. The stick contains my backup of the critical data from my original workstation that was dying and has since passed on. The contents were moved to the device using rsync. This USB key was used straight from a sealed package and I did not format it. -- *** 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