Thanks so much for your comments regarding this subject. I have fsck the ext2 filesystem using Linux and repeated the rsync. Now rsync stopped into another file among the Mozilla firefox directory that owns trillions of files.
I noticed that when I fixed the filesystem with fsck under Linux it output the following "Invalid HTREE directory" message: sep 06 11:47:53 debian-nuc8i7 systemd-fsck[1293]: /dev/sdb1: Invalid HTREE directory inode 38723585 (/COPIA_NETBSD_8I7/home/ramiro/.mozilla/firefox/527cpmj0.default-default-2/storage/permanent/chrome/idb/3870112724rsegmnoittet-es.files) Do you think it is a bug in NetBSD ext2 filesystem implementation? I am a total ignorant in this subject, just in case clue persons can extract information from this finding. Anyway, I have excluded from the rsync backup all the offending files and it seems to finish just fine. All those files are not important for my backup. Not a fix, a workaround but if it works.... Regards. El dom, 6 sept 2026 a las 0:26, beaker (<[email protected]>) escribió: > > Ramiro Aceves <[email protected]> wrote: > > > Hello, > > > > I have an external USB hard disk partitioned with ext2 filesystem > > (/dev/sd0e mounted in /mnt/datos for file sharing between NetBSD and > > Linux) and I have had recurrent problems when rsync-ing files from the > > NetBSD FFS filesystem to the EXT2 filesystem. > > > <snip > > > > After killing rsync commands I cannot umount sd0e partition. It normally > > ends in having to fsck the partition in the next reboot (about 1 hour of > > fsck) > > > > Why does it stop and stay for ever? Is it a problem with rsync command? > > or is it a problem with ext2 filesystem? > > I don't have an answer for you other than to say I've also had system hangs > when trying to rsync *from* an ext2 partition mounted on NetBSD. I generally > make use of the 'log' mount option so no long fscking needed. I regularly > run rsync from NetBSD (FFS) -> Linux (BTRFS) without issue. In my case the > ext2 filesystem is a common area for a dual-boot machine (NetBSD & Debian) > so I just do the rsync with the ext2 mounted on Debian. > > I recall a past related thread regarding use of ext2 on NetBSD and I believe > the advice was to create said ext2 filesystem using newfs_ext2fs(8) instead > of from within Linux. I see there is a fsck_ext2fs(8) which you might want > to run to see if there's any issues with your setup. > > -B
