33
votes
Accepted
exFAT vs NTFS on Linux
NTFS is a Microsoft proprietary filesystem. All exFAT patents were released to the Open Invention Network and it has a fully functional in-kernel Linux driver since version 5.4 (2019).[1] exFat, also ...
23
votes
fstab mount options for umask, fmask, dmask for ntfs with noexec
The x flag is necessary for directories, in order to access their contents.
With just the r flag on a directory, you can get a directory listing, but cannot access the files and subdirectories ...
22
votes
What am I doing wrong when formatting my flash drive to NTFS?
Here's what you're missing.
There's a partition table and there are file systems - they are related but different. You can perfectly have partitions type Linux filesystem (MBR notation Linux) ...
20
votes
How to recover “deleted” files in Linux on an NTFS filesystem (files originally from macOS)
As mentioned by terdon, when writing to a "foreign" filesystem, Mac OS uses two filenames for each file. One with the actual contents and a second one with metadata that would have been ...
15
votes
Zeroing out NTFS free space
Depends on the tool you are using to create the image. Usually you don't need to zero it out.
For example ntfsclone (part of ntfs-3g) states this in the man page:
ntfsclone will efficiently clone (...
15
votes
Accepted
ncdu: What's going on with this second size column?
This is explained in the shared links section of the Ncdu 2 introductory post. It is a way of handling directory size discrepancies caused by hard links sharing content outside the directory: when “S” ...
14
votes
Accepted
NTFS $MFTMirr does not match $MFT
I ran sudo ntfsfix /dev/sdb1 (where sdb1 is the device name from error message) and it fixed the problem.
13
votes
Can't mount NTFS on Arch Linux
Always check the Arch documentation because it is usually the most updated source: https://wiki.archlinux.org/index.php/NTFS
As you can see it points you to the ntfs-3g package
So the first step to ...
12
votes
Accepted
Renaming a file while it is being written
I am not sure how it works across different FS.
The rename operation itself doesn’t operate across different file systems; there is no difference between writing to a file from say a text editor and ...
11
votes
Can't mount NTFS on Arch Linux
Your issue is that you haven't rebooted since upgrading your kernel, so you cannot load any of the kernel modules you require.
11
votes
Accepted
What is the correct permission in /etc/fstab to mount NTFS?
As commented by muru from this answer, I have added the fmask and dmask permissions in /etc/fstab and now it shows correct permissions. I have change that line as follows:
UUID=01D158CC7C2A61A0 /mnt/...
10
votes
Can't access Windows drive: “Windows is hibernated, refused to mount”
You need to disable Windows Fast Startup because that creates a c:\hiberfil.sys file that causes this issue. Go to Power Options and uncheck "Turn on fast startup".
See https://www.eightforums.com/...
10
votes
NTFS Repair - chkdsk from Linux
Unless you consider running chkdsk.exe under wine or virtualisation, Linux cannot run it. There is a linux compatible tool that can be used to fix ntfs partitions that is called ntfsfix and is ...
10
votes
Accepted
Cannot mount sda1: "The device '/dev/sda1' doesn't seem to have a valid NTFS."
To get the exact information about the bootable windows partition before executing ntfsfix:
sudo file -s /dev/sda1
Then use ntfsfix to fix this problem:
sudo ntfsfix /dev/sda1
Finally mount your ...
10
votes
What am I doing wrong when formatting my flash drive to NTFS?
I assume you are confused by the Type Linux filesystem. The Type column in fdisk -l doesn't show what filesystem is on the device, it shows partition type -- on GPT this is a special GUID that helps ...
9
votes
Wrong fs type, bad option, bad superblock on /dev/sdX
sudo mount /dev/sdc /mnt/harddrive
mount: /mnt/harddrive: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.
This error isn't ...
9
votes
Why is the size of a directory either 0 or 4096?
Some filesystems have some space in the inode that can be used to hold very small directories. But once the directory is large enough to not fit in that area, the OS will allocate an entire file ...
9
votes
Why is the size of a directory either 0 or 4096?
About 4096
To quote Terry Wang's answer:
A directory is just a special file which contains an array of filenames and inode numbers. When the directory was created, the file system allocated 1 ...
9
votes
How to recover “deleted” files in Linux on an NTFS filesystem (files originally from macOS)
Now it's hard to recommend anything, but if I were you, I'd try using R-Studio Undelete - in my experience it's the best application for restoring accidentally deleted or damaged data from a number of ...
9
votes
How to recover “deleted” files in Linux on an NTFS filesystem (files originally from macOS)
I'm afraid you have overwritten all of the original files. The ._ files are a special thing of macOS systems and HFS drives. From what I understand, they seem to be used to store things like the icon ...
9
votes
How to recover “deleted” files in Linux on an NTFS filesystem (files originally from macOS)
If you haven't overwritten the files, you can trivially recover all of your files. If they are images, your best bet is to use a JPEG file carving tool. JPEGs are easy to carve because they are ...
8
votes
How to auto mount / permanently mount external devices on NixOS
I personally use udisks for that. That means, if i want to mount an USB stick, i just have to plug it in and run:
$ udisksctl mount -b /dev/sdc
I aliased udisksctl mount -b to udm to make it even ...
8
votes
Why does tar report not enough disk space when there is plenty of it left?
GNU tar uses $TMPDIR for deciding where to write extended header information. You might try setting TMPDIR to point to a writable location on your large drive.
8
votes
Accepted
How to detect NTFS/exFAT file system type from script
Thanks to the other posters for replying/suggesting. Here is my full solution.
df -P can be used to obtain device from path, and that can be fed to lsblk --fs to obtain exact file system. So a one-...
8
votes
Disadvantages of ntfs-3g `big_writes` mount option
It's a good question, really. From what I can see here there's probably no downsides to it.
Back in 2008 when big_writes was first added to FUSE Miklos said:
Prior to 2.6.26 fuse only supported ...
8
votes
ncdu: What's going on with this second size column?
man ncdu, --shared-column
--shared-column OPTION
Set to off to disable the shared size column
for directories, shared (default) to display
shared directory sizes as a separate column
or unique to ...
7
votes
Can't access Windows drive: “Windows is hibernated, refused to mount”
I had the same problem. For me, the Windows GUI solution didn't work (for some reason it ignored the fast start-up and hibernate settings), and neither did shutdown /s /t 0, as suggested by some.
...
7
votes
Accepted
Using ddrescue to retrieve data off a failing ntfs disk
Disclaimer: I am the developer of RecuperaBit. This answer is a summary of this answer of mine, mixed with feedback by OP.
Your ddrescue command is cloning only the fifth partition (/dev/rdisk8s5) ...
7
votes
List bad blocks and affected files
Use debugfs on ext2/3/4.
First find the inode based on block:
debugfs -D -R "icheck $sda3block4096" /dev/sda3
then use this inode number for query for file:
debugfs -D -R "ncheck $inode" /dev/sda3
6
votes
Accepted
How to find if usb hdd is an hdd or a flash drive other than looks.
If hdparm can talk to the drive, and the drive supports ATA-9, you'll see a line in the output of hdparm -I with the appropriate info:
Nominal Media Rotation Rate: 7200
(for a 7200 RPM ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ntfs × 439mount × 87
filesystems × 67
linux × 65
ntfs-3g × 54
windows × 53
partition × 47
permissions × 45
ext4 × 34
ubuntu × 32
data-recovery × 30
debian × 23
hard-disk × 22
fstab × 21
rsync × 18
dual-boot × 18
files × 16
usb-drive × 14
linux-mint × 13
file-copy × 13
external-hdd × 12
gparted × 10
automounting × 9
arch-linux × 8
backup × 8