cp command loop when using ntfs3 package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
evince (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello.
I'm on ubuntu 22.04, I saw that ntfs3 is supposed to correctly write to an NTFS partition.
I inform you that this is not the case.
Here is my quick test
First try on EFI computer:
I remove the NTFS-3G package to be sure not to use it.
When I detect that the cp command is no longer responding, I kill the process. Nothing is happening. I shut down the computer. During the shutdown phase, I am informed twice that the cp command is running.
On reboot, I cannot access the partition. But I succeed in read-only mode.
I run another normal ubuntu which tells me that I have to use windows to do an chkdsk
But windows refuse to start, I duplicate by the dd command the NTFS partition in a larger NTFS partition stored in an external disk.
Then I delete the NTFS partition from the internal disk.
Then I repare windows.
After restarting windows, I find that its disk space manager cannot access to the duplicate partition on external disk.
There's no answer. So no letter to do the CHKDSK command.
I decide to be more methodical in order to open a discussion and make a script to see a little what is happening.
Second try on LEGACY computer:
I make a script based on cp command.
I try it on a normal NTFS partition in NTFS-3G.
It ends perfectly well.
I restart it on the same partition mounted in NTF3
He blocks.
I make on another disk two partitions of identical size.
I launch on one. It hangs almost in the same place.
I launch on the other.
It hangs in exactly the same place.
This makes me open the bug.
I can provide you with some information.
@b:~$ sudo df -ah |egrep "Taille|root"
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sdb6 99G 28G 71G 29% /media/
/dev/sdd10 60G 30G 31G 50% /media/
/dev/sdd11 60G 30G 31G 50% /media/
a@b:~$
First disk
root@b:~# Na=0
Nb=25
time for (( I=$Na; I < $Nb; I++ )); do for (( J=$Na; J < $Nb; J++ )); do for (( K=$Na; K < $Nb; K++ )); do
echo -n -e avancement $I $J $K "\r \a";
for (( L=$Na; L < $Nb; L++ )); do mkdir -p $Rep/$I/$J/$K/$L ; for (( M=$Na; M < $Nb; M++ )); do cp FIC $Rep/$I/
avancement 14 3 18
Second disk
root@b:~# mount -v -t ntfs3 /dev/sdd10 /$Rep
mount: /media/
root@b:~#
root@b:~# Na=0
Nb=25
time for (( I=$Na; I < $Nb; I++ )); do for (( J=$Na; J < $Nb; J++ )); do for (( K=$Na; K < $Nb; K++ )); do echo -n -e avancement $I $J $K "\r \a"; for (( L=$Na; L < $Nb; L++ )); do mkdir -p $Rep/$I/$J/$K/$L ; for (( M=$Na; M < $Nb; M++ )); do cp FIC $Rep/$I/
avancement 15 3 10
root@b:~# dd if=/dev/zero of=FIC count=1 bs=1K
Rep=/media/
mkdir $Rep
mount -v -t ntfs3 /dev/sdd11 /$Rep
Na=0
Nb=25
1+0 enregistrements lus
1+0 enregistrements écrits
1024 octets (1,0 kB, 1,0 KiB) copiés, 0,000783991 s, 1,3 MB/s
mount : /dev/sdd11 monté sur /media/
root@b:~#
root@b:~# time for (( I=$Na; I < $Nb; I++ )); do for (( J=$Na; J < $Nb; J++ )); do for (( K=$Na; K < $Nb; K++ )); do echo -n -e avancement $I $J $K "\r \a"; for (( L=$Na; L < $Nb; L++ )); do mkdir -p $Rep/$I/$J/$K/$L ; for (( M=$Na; M < $Nb; M++ )); do cp FIC $Rep/$I/
avancement 15 3 10
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: evince 42.3-0ubuntu2
ProcVersionSign
Uname: Linux 5.15.0-56-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Dec 28 11:35:15 2022
EcryptfsInUse: Yes
InstallationDate: Installed on 2022-08-11 (138 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: evince
UpgradeStatus: No upgrade log present (probably fresh install)
Contents of full journal logs