From owner-freebsd-amd64@freebsd.org Sun Nov 13 16:13:00 2016 Return-Path: Delivered-To: freebsd-amd64@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 A23F5C3FFB1 for ; Sun, 13 Nov 2016 16:13:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 91DE719CC for ; Sun, 13 Nov 2016 16:13:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uADGD0d8052341 for ; Sun, 13 Nov 2016 16:13:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 214479] Cannot create or mount ext2 file system on a USB external drive Date: Sun, 13 Nov 2016 16:13:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: giorgioxyzb@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2016 16:13:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214479 Bug ID: 214479 Summary: Cannot create or mount ext2 file system on a USB external drive Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: giorgioxyzb@hotmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org I have two external 1T USB drives which I use for backups. Both contain one= MBR partition which is formatted with ext2fs. I can mount and use the first dri= ve under FreeBSD without any problems. On the second drive, I cannot mount the ext2fs. Here is the model of the drive: # smartctl -i /dev/da1 smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-RELEASE-p1 amd64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org =3D=3D=3D START OF INFORMATION SECTION =3D=3D=3D Model Family: Western Digital Blue Mobile Device Model: WDC WD10JPVX-00JC3T0 Serial Number: WD-WXQ1E945D4NJ LU WWN Device Id: 5 0014ee 65add21b2 Firmware Version: 01.01A01 User Capacity: 1,000,204,886,016 bytes [1.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 5400 rpm Device is: In smartctl database [for details use: -P show] ATA Version is: ACS-2 (minor revision not indicated) SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Sat Nov 12 11:53:56 2016 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled I have scanned the drive for bad sectors and nothing was found. I have partitioned and formatted with ext2fs under GNU/Linux: GNU/Linux can mount and use the drive. Under FreeBSD I get the following errors: # mount -t ext2fs /dev/da1s1 mnt mount: /dev/da1s1: Invalid argument If I try to check the file system I get the following error: # fsck_ext2fs -f -n -v /dev/da1s1 e2fsck 1.42.13 (17-May-2015) /sbin/e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/da1s1 Could this be a zero-length partition? I have also partitioned the drive under FreeBSD using gpart and formatted w= ith ufs, and everything seems to work OK: I can mount, write files, read files. I have tried formatting with ext2fs from FreeBSD and got warnings: # mke2fs /dev/da1s1 mke2fs 1.42.13 (17-May-2015) /dev/da1s1 contains a ext2 file system Proceed anyway? (y,n) y Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write Creating filesystem with 244188598 4k blocks and 61054976 inodes Filesystem UUID: 22101a6d-fda0-4bfb-98a2-353b27953c13 Superblock backups stored on blocks:=20 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654= 208,=20 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,= =20 102400000, 214990848 Allocating group tables: done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 Warning: could not read block 0: Attempt to read block from filesystem resu= lted in short read Warning: could not erase sector 0: Attempt to write block to filesystem resulted in short write Writing inode tables: done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 Writing superblocks and filesystem accounting information: 0/7453 If I check the filesystem from FreeBSD I get the same errors: /sbin/e2fsck -f -n /dev/da1s1=20 e2fsck 1.42.13 (17-May-2015) /sbin/e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/da1s1 Could this be a zero-length partition? So, I have these problems only with this disk and only with ext2fs. One thi= ng that occurred to me, is that GNU/Linux reports a physical sector size of 20= 48 bytes while for the other working disk it reports a physical sector size of 512. --=20 You are receiving this mail because: You are on the CC list for the bug.=