How to mount an NTFS hard drive on Linux (Debian)?
I have an NTFS formatted (external) hard drive, and I need to copy files from this disk to my computer, which runs Debian Linux. Generally, simply plug in any USB drive and Debian automatically recognizes it; however, it does not seem to automatically recognize this NTFS disk.
How can I mount this disk on Linux?.
1 answers
I found the solution here ; if anyone has this problem, I put here the most relevant steps:
First of all, you need to install two packages to be able to read NTFS drives: libfuse2
and ntfs-3g
. To install these packages, you need to type the following commands in the console (you need to use the user accountroot
):
apt-get install libfuse2
apt-get install ntfs-3g
Once these packages are installed, it is possible to mount the NTFS volume in question. In a console (with the user root
) check where the disk is connected. The following command shows the connected NTFS partitions:
fdisk -l | grep -i ntfs
(the -i
option is to ignore case when filtering the results of fdisk -l
).
The result, in my case, is this:
/dev/sdb1 63 1953520064 976760001 7 HPFS/NTFS/exFAT
So, in my case, the external NTFS disk is connected in /dev/sdb1
. Now, you have to create a mounting point. To do this, you need to create a folder for this purpose. In my case, create a folder named windows
at /media
:
mkdir /media/windows
And now, finally, to mount the disk:
mount -t ntfs-3g /dev/sdb1 /media/windows
The disc is now available to read its contents.
Important: when you finish using the disc, you must disassemble it before disconnecting it:
umount /dev/sdb1
I hope this information is useful.