Questions tagged [ntfs]
NTFS (New Technology File System) is the standard file system of Windows. Use this tag in questions about using NTFS partitions and tools on your system.
454 questions
9
votes
2
answers
2k
views
Which Linux file system should I use for compatibility with Windows programs?
I'm new to Linux, yet am now committing to Linux, probably formatting HDDs to run the ext4 file-system, for (almost) all work. I need to keep one Windows machine running an NTFS file-system for a few ...
3
votes
2
answers
431
views
NTFS disk is visible in windows but wont mount in Linux
I have a USB storage drive which is using NTFS.
It works perfectly in Win10, I can see the drive and the files and read and write without issue.
I was previously able to mount this drive on my Arch ...
12
votes
1
answer
881
views
Why does mkfs.ntfs count one Byte less?
Apparently, ntfs.mkfs counts one byte less when checking if the block device is large enough; or I have made some kind of mistake.
After creating a partition of 2048 512-byte sectors (exactly 1MiB ...
0
votes
2
answers
107
views
Change the ownership of files in an external harddrive ntfs
ls -al /media/victor/Backup/
Output:
insgesamt 25
drwxrwxrwx 1 root root 12288 19. Aug 13:49 .
drwxr-x---+ 3 root root 4096 19. Aug 12:27 ..
drwxrwxrwx 1 root root 0 19. Aug 10:43 DATA
-...
1
vote
1
answer
131
views
Failed to mount partition
This is my fstab file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name ...
2
votes
0
answers
124
views
ddrescue: limit rescue domain to used space and specific files
I've read multiple manuals about ddrescue, ran it to copy almost entire disk and only now realized that I missed very useful utilities which could save hours of copying data.
What I did till now (2 ...
1
vote
1
answer
81
views
Cannot shrink *unmounted* External drive ntfs partition
I'm relatively new to linux mint(4-5 months in [loving it!]) and I have a 2TB USB 3.0 HDD connected (WD Drive in the photo)
I'm trying to shrink the main NTFS Partition on said drive, and it says max ...
0
votes
0
answers
85
views
Partition has vanished
The error I see is:
Unable to access location
Error mounting /dev/sbd3 at /media/user/PDrive: wrong fs type, bad
option, bad superblock on dev/sb3, missing codepage or helper
program, or other error
...
0
votes
1
answer
121
views
Can you explain why mount -o ro,noload sometimes modifies the filesystem?
This reddit post explains that using mount -o ro over NTFS changes the atime of files.
They say something like that the kernel is not obliged to honour the ro flag, and to achieve reliable readonly ...
-2
votes
1
answer
98
views
Any way to grab emails off an old NTFS disk? [closed]
This might question might not have a 'legal' answer but I'll ask it anyway.
My dad is 15 year dead but I still have the disk out of his old Windows computer.
It seems my sister want's me to try to dig ...
7
votes
1
answer
509
views
Recovering data from incomplete ddrescue iso
I've got a 2.5 inch 5200RPM 320G HDD to recover data from. As I've been told, a child has stepped on the laptop and broke it. They gave me the laptop and motherboard seems to be completely fine. There'...
0
votes
1
answer
131
views
How to automatically add a mount option for ntfs partitions connected externally (over USB)
I have an HDD used for archival purposes. I had to format it with NTFS to keep it accessible from Windows. I need TRIM support (because the HDD is SMR...) and NTFS can't trim without the discard ...
3
votes
3
answers
948
views
How to determine, with certainty, the filesystem type of a partition from the outputs of the Linux "file -s" command?
My problem is to decode the output of the command file -s /dev/sdX on my system (where /dev/sdX is the device file associated to a USB key).
Below I'll show the output of the command file -s /dev/sdX ...
1
vote
1
answer
131
views
In a yocto distribution the ntfs file system of a USB key is mounted read-only?
To enable the mount of USB key formatted with file system ntfs I have created the following configuration fragment file:
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
This file ...
0
votes
0
answers
54
views
ubuntu system freeze while diff reading, SysRq REISUB not working
I've experienced total system freeze while checking if files where copied correctly by
diff -rq [INTERNAL HDD] [USB HDD]
This happened twice, always while running the diff. On the second occasion I ...
0
votes
0
answers
64
views
How can I debug NTFS corruption that occurs after successful eject?
Lately when I write to an external drive formatted as NTFS* and then eject it, and wait a full minute before un-powering, then upon re-powering it won't auto-mount and manual mount attempts give an ...
0
votes
0
answers
91
views
tar extracted file with bad output
I tarred one file with:
tar cf My-tarball.tar path/to/file.txt
Then compressed it:
gzip My-tarball.tar
But when i decompress it and extract it
gunzip My-tarball.tar.gz
tar -xf My-tarball.tar
the ...
0
votes
1
answer
190
views
Passing files to windows guest
I know this is a question which has been asked many times before, and it should be simple. I think I'm close but I must be doing something wrong.
This is my first time using QEMU and I'm really ...
0
votes
0
answers
252
views
How to mount NTFS3 drives/partitions which I have full access to?
I have two operating systems on my computer: one Arch Linux and one Windows.
I use NTFS3 and Kernel 6.10.
Operating System: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt ...
2
votes
0
answers
111
views
NTFS large binary file recovery
I just happened to unwillingly delete an important, large, encrypted binary file on my NTFS device by calling C++ write functions with the w flag. All I have done so far is unmounting the device. The ...
-2
votes
1
answer
397
views
Trying to mount a drive, but Mint can't find it?
I'm trying to mount the NTFS partition as described here https://linuxconfig.org/how-to-mount-partition-with-ntfs-file-system-and-read-write-access
The system is installed on sda5 and mounting sda1 is ...
0
votes
0
answers
160
views
System with / & /home on SSD freezes & lags on `ntfs-3g` HDD load
Again, the / and /home and all the software and cache and data folders are on SSD.
Everything just freezes with periodic (seconds to minutes!) updates: bar stop updating (custom eww one + shell ...
0
votes
1
answer
75
views
Unreadable file as root on NTFS HD
I have an NTFS partition on an HD. This partition contains 6 files which I can't read in any way. I have tried reading them as root, doing chmod, chown and mount -o rw,remount ... nothing worked.
# ls ...
1
vote
2
answers
271
views
Segmentation fault when running binaries from second drive
When I try to run any executable from my second (NTFS) drive, I get a segmentation fault. If I run the exact same executable from, for example, my home folder, it works just fine.
For example:
I ...
0
votes
0
answers
494
views
Create Accessible Partition by Windows and Linux
I plan to dual boot windows and kde neon on my laptop. Since I will be doing cross-platform development I would like my code to be accessible by both linux and windows, therefore, I want to create a ...
2
votes
0
answers
127
views
Can rsync copy all files (including special ones like soft and hard links) from a ntfs partition to another one?
To make backups for my computer, I installed Xubuntu on an external hard disk to boot from and create images in another partition on the external hard disk. This also ensures that the file systems of ...
3
votes
2
answers
1k
views
How risky is it writing a mounted bitlocker decrypted windows ntfs partition
I setup up a multi os system with Windows11 and Linux.
I found out, that it's possible to mount bitlocker encrypted ntfs windows partition (/dev/sda3 as root) from linux:
cryptsetup bitlkDump /dev/...
2
votes
2
answers
871
views
What is the best approach to backing up the /home directory to NTFS partition? [closed]
I would like to do backups of my /home partition of my computer with Linux (Lubuntu 20.04) on weekly basis. The catch is that the only extra hard drive I own is connected to Windows machine. It seems ...
0
votes
1
answer
160
views
I deleted my backup.tar.gz instead of extracting it, can I restore it?
I created a backup with
# tar -cvpzf /run/media/user/XYZ/backup.tar.gz --exclude=/run/media/user/root/mnt /run/media/user/root/
now I need the backup and when I tried to extract the tar.gz archive I ...
0
votes
0
answers
116
views
Large files end up corrupted when copying to a compressed NTFS3 win drive
I have two SSDs, one Linux, one Windows 11, and an HDD. I can copy normal-sized files just fine to each other, generally they are under 2GB.
Recently, I tried to copy a big file (32GB) from Linux (...
1
vote
2
answers
469
views
Permissions and groups in fstab ignored
I need to read and write to an usb ntfs pendrive through www-data group (that has uid 33) so I have added
UUID=34A0456D004536A0 /home/mypath ntfs-3g rw,defaults,uid=1000,gid=33,dmode=770,fmode=660,...
0
votes
1
answer
170
views
Can Wine and/or Playonlinux be used to fix ntfs errors the way Windows does?
Very often, when a ntfs external drive cannot be mounted in Linux because of some more or less obscure motive, simply plugging it onto Windows fixes it, even without running the tool to scan and fix ...
-1
votes
2
answers
2k
views
Ubuntu only allows FAT32 and not NTFS
I currently find myself in a desperate situation. I'm trying to boot from the pendrive on my computer installed with Ubuntu 22.10, it is not recognizing my pendrive formatted with the NTFS file system,...
0
votes
2
answers
1k
views
Using GParted to remove EFI partition of SSD on USB
I have a problem with GParted not being able to complete an operation.
Background:
In brief:
I have a 2Tb M.2 SSD drive that was running Windows 11. Windows suffered a fatal registry failure and ...
0
votes
1
answer
167
views
how to copy symlinks without dereferening them from an external hard drive (NTFS)?
I am moving my files from one computer to another via an external hard drive formatted with NTFS. I have a folder called "library" with many PDFs. This folder contains quite a few symlinks ...
0
votes
1
answer
143
views
Formatting the same drive with gparted: original NTFS=232.28MB used | Ext4= 1.92 GB used Why?
I'm formatting an external hard drive with gparted.
The original NTFS read 232.28 MB used.
Now, with Ext4, it reads 1.92 GB used.
Questions:
Why?
Is there a better file system I should use for ...
4
votes
1
answer
2k
views
What's the difference between ntfs-3g and lowntfs-3g?
I've been having some performance issues with games on my NTFS drive. I share a steam library between Linux and Windows, which resides on a PCIe4 NVME, NTFS formatted. Running e.g Baldur's Gate 3 of ...
1
vote
0
answers
2k
views
Ntfsfix "Volume is corrupt. You should run chkdsk." even after chkdsk
Recently on my NTFS drive I encountered that I can't do any write: remove or create things. I ran ntfsfix /dev/sda3.
Not mounted
Mounting volume... Error opening read-only '/dev/sda3': Permission ...
0
votes
1
answer
166
views
I was extending an ntfs partition in gparted and right in the middle of the process, power went out
I was extending an ntfs partition in gparted and right in the middle of the process, power went out.
Now my files can't be opened though I can still see they exist in the partition. I went to see if ...
0
votes
1
answer
1k
views
How to fix external drive in Linux the way Windows does automatically
I have unplugged an older 500 GB HD NTFS external drive without unmounting it first and then it couldn't be mounted in Linux. I have tried on different machines but the same error occurred. I was ...
3
votes
1
answer
9k
views
Why is NTFS has a dirty mark and why can't NTFS3 mount dirty NTFS partitions?
https://wiki.archlinux.org/title/NTFS#Unable_to_mount_with_ntfs3_with_partition_marked_dirty
When a NTFS partition is marked dirty, NTFS3 cannot mount this on linux
But NTFS-3G (and also Windows) can
...
0
votes
0
answers
7k
views
How to solve ls: reading directory '.': Input/output error for specific directory
I have a 5TB external drive, with two partitions. Suddenly one of the partitions gives me this error data: unknown error when mounting /dev/sda1. I solved this error based on this answer.
After ...
3
votes
1
answer
102
views
Linux removable drive stuck problem when reading large number of files
I have several USB removable drives that I have connected to my single-board computer to use as a NAS. The operating system I am using is Armbian, which is a Debian-like system.
Ok, this is the ...
0
votes
0
answers
1k
views
rsync permission denied - but they have full 777?
It is getting late and I am loosing my mind ...
I have a data drive (NTFS) which I used to share in an Windows/Ubuntu dual boot system. After an upgrade it is currently Windows 10 and Ubuntu running ...
1
vote
1
answer
165
views
Recovering data from NTFS after SSD ran out of spare blocks
I had the main SSD for a computer run out of spare blocks and thus refuse any/all write operations by Windows. This led to all the problems you'd expect, and a lot of frustration.
I've since replaced ...
0
votes
1
answer
2k
views
How to enable all locales (character encodings) on Debian 11 (over SSH, in Bash)?
I am unsure if I should not better ask:
How to display Windows UTF-16 encoding in Linux?
Since I just found out that Windows uses UTF-16LE to be exact:
https://stackoverflow.com/q/66072117/1997354
I ...
2
votes
0
answers
2k
views
Hard Drive not showing
I've got an external hard drive, formatted as NTFS and showing fine on a Windows PC. When I plug it into my Arch Linux laptop, it doesn't show with fdisk or lsblk. If running dmesg, I've got this :
[...
11
votes
2
answers
998
views
ncdu: What's going on with this second size column?
I've never seen ncdu do this. What's the matter with the red S and extra size columns?
This is a Windows root (NTFS, mounted with ntfs-3g), so I assume it has something to do with NTFS. But the sizes ...
2
votes
1
answer
6k
views
How to optimize NTFS performance on Linux?
I am running Ubuntu 22.04.2 on a laptop with the following specifications:
SSD: HP S700 SSD
CPU: Intel Core i7 7700HQ
RAM: 16GB
Kernel: 5.19.0-32-generic
All system packages are updated to the latest ...
1
vote
0
answers
3k
views
Can't mount NTFS hard disk (LDM data partition, correct way to automatically create and mount an LDM at startup)
Install ldmtool and libldm packages
Create /etc/systemd/system/ldmtool.service file
Paste the text into file:
[Unit]
Description= Windows Dynamic Disk LDMtool
After=network.target
[Service]
...