{"id":5539,"date":"2020-11-01T18:04:29","date_gmt":"2020-11-01T18:04:29","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5539"},"modified":"2020-11-01T18:04:29","modified_gmt":"2020-11-01T18:04:29","slug":"mount-ntfs-file-system-in-debian","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2020\/11\/01\/mount-ntfs-file-system-in-debian\/","title":{"rendered":"Mount NTFS file system in Debian"},"content":{"rendered":"<p>How to mount a NTFS disk in Debian.<\/p>\n<p>Find the disk:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# fdisk -l\nDisk \/dev\/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors\nDisk model: ST3250310AS\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisklabel type: dos\nDisk identifier: 0x84c02518\n\nDevice     Boot     Start       End   Sectors  Size Id Type\n\/dev\/sda1  *         2048 471801855 471799808  225G 83 Linux\n\/dev\/sda2       471803902 488396799  16592898  7.9G  5 Extended\n\/dev\/sda5       471803904 488396799  16592896  7.9G 82 Linux swap \/ Solaris\n\n\nDisk \/dev\/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors\nDisk model: WDC WD10EZRX-00L\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 4096 bytes\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes\nDisklabel type: dos\nDisk identifier: 0x93665d93\n\nDevice     Boot Start        End    Sectors   Size Id Type\n\/dev\/sdb1        2048 1953521663 1953519616 931.5G  7 HPFS\/NTFS\/exFAT\n<\/pre>\n<p>So, the NTFS is disk sdb1. Find the UUID value.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n sudo blkid  \/dev\/sdb1\n\/dev\/sdb1: LABEL=&quot;Backup&quot; UUID=&quot;0CF88F39F88F2056&quot; TYPE=&quot;ntfs&quot; PTTYPE=&quot;atari&quot; PARTUUID=&quot;93665d93-01&quot;\n<\/pre>\n<p>Install NTSF-3G:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# sudo apt-get install ntfs-3g\n<\/pre>\n<p>Create the \/mnt\/ntfs\/ directory<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# sudo mkdir -p \/mnt\/ntfs\/\n<\/pre>\n<p>Add to fstab.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# nano \/etc\/fstab\n# UUID=&quot;YOUR-UID-HERE&quot; \/mnt\/ntfs\/ ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0\nUUID=&quot;0CF88F39F88F2056&quot; \/mnt\/ntfs\/ ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0\n<\/pre>\n<p>Test it<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# sudo mount -a\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# df -h\n\/dev\/sdb1       932G  295G  638G  32% \/mnt\/ntfs\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cd \/mnt\/ntfs\/\n# ls -l\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to mount a NTFS disk in Debian. Find the disk: # fdisk -l Disk \/dev\/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors Disk model: ST3250310AS Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disklabel type: dos Disk identifier: &#8230; <a title=\"Mount NTFS file system in Debian\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2020\/11\/01\/mount-ntfs-file-system-in-debian\/\" aria-label=\"Read more about Mount NTFS file system in Debian\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-5539","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=5539"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5539\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}