From nobody Sat Jun 4 16:14:16 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 564321BDA042 for ; Sat, 4 Jun 2022 16:14:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LFlF470p7z3RH0 for ; Sat, 4 Jun 2022 16:14:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AA20721016 for ; Sat, 4 Jun 2022 16:14:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 254GEG7g018422 for ; Sat, 4 Jun 2022 16:14:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 254GEGMb018421 for bugs@FreeBSD.org; Sat, 4 Jun 2022 16:14:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264450] ufs "Cannot find file system superblock" on main 2573e6ced99616f2edccf97fb0f9283a84148246, perfectly usable on 12.3 Date: Sat, 04 Jun 2022 16:14:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 attachments.created 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654359257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wgA2/zrdtzrEL5/zZ7Cw/3RCyXOHigGcDigrdLmFqgY=; b=Mn+uL/E8qAnoKEYFaVc88+2NHYdudACNZSSjk0wA4zK+Vr7/cfGOHW7juolQW+vR+CICYn U6G5TnDzPLByIm3llbLs1Y1Fin28RfFevN5uMGJ7N+QgOwk0vDKD/tFJw2PeSmGUdRRfyU xVWW5cvZr1Mj2b2ic2IeKxcb4NP9KywVmD/n/0ovV9Xo0/V4ZUkD7IC0nMePkld4qBBLgO LzRkhZfaSqi1c2Vk0v+wvSGvb48RJYRomyqM1Xit5dRK7s6q38yVyn26R5mFlx27IEOkIE rTcpMOKNrwv9CNNPL7wVkJpud7nOzBgLJ83PsUvNNRb4VcFSacAFcz4KGA53Dw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654359257; a=rsa-sha256; cv=none; b=OkaX3f/XjqVpouAH/ujkfq7BeHv+GJNU9u2hqzjbiIzKR3DJTTmQ/90xvJOZPljtwm4y6M Qb6/m7r0ha2HSdJOUbzBwqTXPApqP04tWEDn18KkL8txwO3H54covCFb2PhkxEcFLRvDqh 5Gkg+ZUgJITILWLjigJwnJuI6sg9QwBf8xbQUob21zzoNWBITtDPvpp5P15VDLp491QKpm sjKR7Q7NDC8djXIsmZjm+oUTuQ/WelmVIViPvqIiBSwtJFiAgkFsgIcN31F9vCyWYpqFoR 1NCCQKTq5HlVn5b+LNzvfsWMyFRyBkM/Pn0oyBPeG5eYWFtx3DoP+TAOtv086Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264450 Bug ID: 264450 Summary: ufs "Cannot find file system superblock" on main 2573e6ced99616f2edccf97fb0f9283a84148246, perfectly usable on 12.3 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: d8zNeCFG@aon.at Created attachment 234446 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234446&action= =3Dedit First megabyte of da0s4d Scenario: - A disk which, if attached to a 12.3 system, shows up as: [0]# ll /dev/da0* crw-r----- 1 root operator 0x75 Jun 4 17:39 /dev/da0 crw-r----- 1 root operator 0x79 Jun 4 17:39 /dev/da0s1 crw-r----- 1 root operator 0x7b Jun 4 17:39 /dev/da0s4 crw-r----- 1 root operator 0x83 Jun 4 17:39 /dev/da0s4a crw-r----- 1 root operator 0x84 Jun 4 17:39 /dev/da0s4b crw-r----- 1 root operator 0x85 Jun 4 17:39 /dev/da0s4d [0]# gpart show da0 =3D> 63 976773105 da0 MBR (466G) 63 1985 - free - (993K) 2048 761726968 1 ntfs (363G) 761729016 215044152 4 freebsd [active] (103G) [0]# gpart show da0s4 =3D> 0 215044152 da0s4 BSD (103G) 0 16 - free - (8.0K) 16 4194304 1 freebsd-ufs (2.0G) 4194320 10485760 2 freebsd-swap (5.0G) 14680080 200364072 4 freebsd-ufs (96G) [0]#=20 - The two filesystems can be fsck'd o.k.: 0]# fsck /dev/da0s4a ** /dev/da0s4a ** Last Mounted on /d/26s4a ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 3627 files, 131623 used, 376160 free (3256 frags, 46613 blocks, 0.6% fragmentation) ***** FILE SYSTEM IS CLEAN ***** [0]# fsck /dev/da0s4d ** /dev/da0s4d ** Last Mounted on /d/26s4a/usr ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 1269131 files, 10661916 used, 13593544 free (15728 frags, 1697227 blocks, 0= .1% fragmentation) ***** FILE SYSTEM IS CLEAN ***** [0]#=20 - And they can be mounted: [0]# mount /dev/da0s4a /mnt [0]# mount /dev/da0s4d /mnt/usr [0]# umount /mnt/usr [0]# umount /mnt=20=20=20=20 [0]#=20 - Now connecting this same disk to a system running main 2573e6ced99616f2edccf97fb0f9283a84148246 Result: - Now the da0s4d partition is not recognized as a UFS filesystem. - The partitions do show up: [0]# ll /dev/da* crw-r----- 1 root operator 0x7b Jun 4 17:08 /dev/da0 crw-r----- 1 root operator 0x5d Jun 4 18:11 /dev/da0s1 crw-r----- 1 root operator 0x5f Jun 4 18:11 /dev/da0s4 crw-r----- 1 root operator 0x7d Jun 4 18:11 /dev/da0s4a crw-r----- 1 root operator 0x7e Jun 4 18:11 /dev/da0s4b crw-r----- 1 root operator 0x7f Jun 4 18:11 /dev/da0s4d [0]# gpart show da0 =3D> 63 976773105 da0 MBR (466G) 63 1985 - free - (993K) 2048 761726968 1 ntfs (363G) 761729016 215044152 4 freebsd [active] (103G) [0]# gpart show da0s4 =3D> 0 215044152 da0s4 BSD (103G) 0 16 - free - (8.0K) 16 4194304 1 freebsd-ufs (2.0G) 4194320 10485760 2 freebsd-swap (5.0G) 14680080 200364072 4 freebsd-ufs (96G) [0]#=20 - But fsck'ing yields: [0]# fsck /dev/da0s4a ** /dev/da0s4a ADD SUPERBLOCK CHECK-HASH PROTECTION? [yn] n ADD INODE CHECK-HASH PROTECTION? [yn] n ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 3627 files, 131623 used, 376160 free (3256 frags, 46613 blocks, 0.6% fragmentation) ***** FILE SYSTEM IS CLEAN ***** [0]# fsck /dev/da0s4d Cannot find file system superblock Cannot find file system superblock LOOK FOR ALTERNATE SUPERBLOCKS? no [8]#=20 - And trying to mount yields: [8]# mount /dev/da0s4a /mnt [0]# mount /dev/da0s4d /mnt/usr mount: /dev/da0s4d: Invalid fstype: Invalid argument [1]# umount /mnt=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 [0]#=20 Expected result: - da0s4d should be usable under main as well. Note: - The first megabyte of da0s4d is attached. It hopefully suffices to find o= ut why the superblock is not accepted on main. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=