[Solved] umount NTFS
Posted: 22 Sep 2022, 17:15
I want to umount one of my internal harddisk NTFS partitions - a leftover from the now for many months broken and uninstalled Windoze7 - to rename it. But it won't let me.
I had some terminal open in it and a script running mirroring the /var/log/messages onto it, but I killed that script / tee [*] and also changed all terminal $PWDs that had it open and checked via lsof what program still uses sda4:
As you can see, lsof only reports ntfs-3g using sda4 - no wonder since it's a NTFS partition.
But when aside from ntfs-3g no other process has any file open on /mnt/sda4 then why cannot I umount it?
Right after the above lsof|grep query umount gives me the error:
Of course, GParted is also unable to umount the partition.
And lsof run by guest reports nothing:
Anyone any idea why that is?
When lsof (root) only reports ntfs-3g using the partition, and lsof (guest) reports nil, why cannot it be umounted?
_______________
[*] tee - read from standard input and write to standard output and files
I had some terminal open in it and a script running mirroring the /var/log/messages onto it, but I killed that script / tee [*] and also changed all terminal $PWDs that had it open and checked via lsof what program still uses sda4:
Code: Select all
root@porteus:~# lsof |grep sda4
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
ntfs-3g 278 root 3u BLK 8,4 0x23c9aac01 124 /mnt/live/dev/sda4
But when aside from ntfs-3g no other process has any file open on /mnt/sda4 then why cannot I umount it?
Right after the above lsof|grep query umount gives me the error:
Code: Select all
root@porteus:~# umount /mnt/sda4
umount: /mnt/sda4: target is busy.
And lsof run by guest reports nothing:
Code: Select all
guest@porteus:~$ lsof |grep sda4
guest@porteus:~$
When lsof (root) only reports ntfs-3g using the partition, and lsof (guest) reports nil, why cannot it be umounted?
_______________
[*] tee - read from standard input and write to standard output and files