[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 276571] makefs(8) creates broken UFS images with sectorsize option (-S)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jan 2024 20:55:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276571
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) != fs->fs_fsize / sectorsize (8)
UFS1 superblock failed: fs->fs_fsbtodb (0) != ILOG2(fs->fs_fsize / sectorsize)
(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) != fs->fs_fsize / sectorsize (8)
(Ignored)
UFS1 superblock failed: fs->fs_old_spc (4896) != fs->fs_fpg * fs->fs_old_nspf
(39168) (Ignored)
UFS1 superblock failed: fs->fs_old_nsect (4896) != fs->fs_old_spc (39168)
(Ignored)
UFS1 superblock failed: fs->fs_old_npsect (4896) != fs->fs_old_spc (39168)
(Ignored)
UFS1 superblock failed: fs->fs_fsbtodb (0) != ILOG2(fs->fs_fsize / sectorsize)
(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).
--
You are receiving this mail because:
You are the assignee for the bug.