Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2024 20:55:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)
Message-ID:  <bug-276571-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276571

            Bug ID: 276571
           Summary: makefs(8) creates broken UFS images with sectorsize
                    option (-S)
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: bsdcode@disroot.org

# freebsd-version
14.0-RELEASE-p4

# makefs -S4096 rescue.img /rescue
Calculated size of `rescue.img': 20054016 bytes, 5 inodes
Extent size set to 32768
rescue.img: 19.1MB (4896 sectors) block size 32768, fragment size 4096
        using 1 cylinder groups of 19.12MB, 612 blks, 256 inodes.
super-block backups (for fsck -b #) at:
 8
Populating `rescue.img'
Image `rescue.img' complete

# mdconfig rescue.img
md0

# mount /dev/md0 /mnt
mount: /dev/md0: Invalid fstype: Invalid argument

# fsck md0
UFS1 superblock failed: fs->fs_old_nspf (1) !=3D fs->fs_fsize / sectorsize =
(8)
UFS1 superblock failed: fs->fs_fsbtodb (0) !=3D ILOG2(fs->fs_fsize / sector=
size)
(3)
Attempted recovery for standard superblock: failed
Attempted extraction of recovery data from standard superblock: failed
Attempt to find boot zone recovery data.
Finding an alternate superblock failed.
Check for only non-critical errors in standard superblock
UFS1 superblock failed: fs->fs_old_nspf (1) !=3D fs->fs_fsize / sectorsize =
(8)
(Ignored)
UFS1 superblock failed: fs->fs_old_spc (4896) !=3D fs->fs_fpg * fs->fs_old_=
nspf
(39168) (Ignored)
UFS1 superblock failed: fs->fs_old_nsect (4896) !=3D fs->fs_old_spc (39168)
(Ignored)
UFS1 superblock failed: fs->fs_old_npsect (4896) !=3D fs->fs_old_spc (39168)
(Ignored)
UFS1 superblock failed: fs->fs_fsbtodb (0) !=3D ILOG2(fs->fs_fsize / sector=
size)
(3)
Failed, superblock has critical errors
SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
-b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck_ffs(8).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276571-227>