Skip to contentSkip to conversation

New: mke2img fails during build on ntfs-3g host partition

Buildroot bugzilla at busybox.net 1 participant 2 messages Dec 22, 2016 – Mar 25, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9496

Bug ID: 9496
Summary: mke2img fails during build on ntfs-3g host partition
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: dcmay at copper.net
CC: buildroot at uclibc.org
Target Milestone: ---

mke2img is not able to complete successfully when the output image file is located on an ntfs-3g partition.

The "Generating root filesystem image" step fails with fsck errors in the generated image if the buildroot directory is on an ntfs-3g drive.

.../fakeroot -- /ntfs-3g-partition/buildroot/output/build/_fakeroot.fs rootdir=/ntfs-3g-partition/buildroot/output/target table='/ntfs-3g-partition/buildroot/output/build/_device_table.txt' tune2fs 1.43.3 (04-Sep-2016)
tune2fs 1.43.3 (04-Sep-2016)

Please run e2fsck -f on the filesystem.

Creating journal inode: done
This filesystem will be automatically checked every 20 mounts or 0 days, whichever comes first. Use tune2fs -c or -i to override.

/ntfs-3g-partition/buildroot/output/images/rootfs.ext2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
mke2img: failed to run e2fsck on '/ntfs-3g-partition/buildroot/output/images/rootfs.ext2' (ext4) make[1]: *** [/ntfs-3g-partition/buildroot/output/images/rootfs.ext2] Error 4
make: *** [_all] Error 2

Running e2fsck manually yields hundreds of errors flagged as inode problems.

If the corrupted rootfs.ext2 file is deleted, and the buildroot directory tree copied to an ext4 partition, 'make' runs this step again, and it completes successfully.

Workaround - only build on an ext2/3/4 host filesystem.

All previous steps complete without errors when built on an ntfs-3g partition.

The ntfs-3g drive has a .NTFS-3G/UserMapping containing a map to Windows SIDs in a dual boot environment. This problem is not due to issues with permissions.

Basic configuration - make beaglebone_defconfig
Host system - ubuntu trusty 14.04.5

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 9496] mke2img fails during build on ntfs-3g host partition

https://bugs.busybox.net/show_bug.cgi?id=9496

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Thomas Petazzoni <[email protected]> --- We have dropped support for auto-calculating the size of the ext2 filesystem:
the size *must* now be passed in a Buildroot option. See
https://git.buildroot.org/buildroot/commit/?id=c6bca8cef0310bc649240b451989457ce94a8358.

Therefore, the issue raised by this bug can no longer be encountered.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.