{"id":8280,"date":"2019-01-17T19:09:32","date_gmt":"2019-01-17T19:09:32","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=8280"},"modified":"2019-03-08T21:44:29","modified_gmt":"2019-03-08T21:44:29","slug":"how-to-mount-windows-partitions-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/17\/how-to-mount-windows-partitions-in-ubuntu\/","title":{"rendered":"How to Mount Windows Partitions in Ubuntu"},"content":{"rendered":"<p>If you are running a\u00a0<a href=\"https:\/\/www.tecmint.com\/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot\/\" target=\"_blank\" rel=\"noopener\">dual-boot of Ubuntu and Windows<\/a>, sometimes you might fail to access a Windows partition (formatted with NTFS or FAT32 filesystem type), while using Ubuntu, after hibernating Windows (or when it\u2019s not fully shutdown).<\/p>\n<p>This is because, Linux cannot mount and open hibernated Windows partitions (the full discussion of this is beyond the ambit of this article).<\/p>\n<p>In this article, we will simply show how to mount Windows partition in Ubuntu. We will explain a few useful methods of solving the above issue.<\/p>\n<h3>Mount Windows Using the File Manager<\/h3>\n<p>The first and safest way is to boot into Windows and fully shutdown the system. Once you have done that, power on the machine and select Ubuntu kernel from the grub menu to boot into Ubuntu.<\/p>\n<p>After a successful logon, open your file manager, and from the left pane, find the partition you wish to mount (under\u00a0<strong>Devices<\/strong>) and click on it. It should be automatically mounted and its contents will show up in the main pane.<\/p>\n<div id=\"attachment_31573\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/open-file-manager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31573\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/open-file-manager.png\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/open-file-manager.png 823w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/open-file-manager-768x513.png 768w\" alt=\"Mounted Windows Partition\" width=\"823\" height=\"550\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Mounted Windows Partition<\/p>\n<\/div>\n<h3>Mount Windows Partition in Read Only Mode From Terminal<\/h3>\n<p>The second method is to manually mount the filesystem in read only mode. Usually, all mounted filesystems are located under the directory\u00a0<strong>\/media\/$USERNAME\/<\/strong>.<\/p>\n<p>Ensure that you have a mount point in that directory for the Windows partition (in this example,\u00a0<strong>$USERNAME=aaronkilik<\/strong>\u00a0and the Windows partition is mounted to a directory called\u00a0<strong>WIN_PART<\/strong>, a name which corresponds to the device label):<\/p>\n<pre>$ cd \/media\/aaronkilik\/\r\n$ ls -l\r\n<\/pre>\n<div id=\"attachment_31575\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-all-mount-points-for-partitions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31575\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-all-mount-points-for-partitions.png\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-all-mount-points-for-partitions.png 922w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-all-mount-points-for-partitions-768x128.png 768w\" alt=\"List Mounted Partitions\" width=\"922\" height=\"154\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">List Mounted Partitions<\/p>\n<\/div>\n<p>In case the mount point is missing, create it using the\u00a0<a href=\"https:\/\/www.tecmint.com\/mkdir-tar-and-kill-commands-in-linux\/\" target=\"_blank\" rel=\"noopener\">mkdir command<\/a>\u00a0as shown (if you get \u201c<strong>permission denied<\/strong>\u201d errors, use\u00a0<strong>sudo command<\/strong>\u00a0to gain root privileges):<\/p>\n<pre>$ sudo mkdir \/media\/aaronkilik\/WIN_PART\r\n<\/pre>\n<p>To find the device name, list all block devices attached to the system using the\u00a0<a href=\"https:\/\/www.tecmint.com\/commands-to-collect-system-and-hardware-information-in-linux\/\" target=\"_blank\" rel=\"noopener\">lsblk utility<\/a>.<\/p>\n<pre>$ lsblk\r\n<\/pre>\n<div id=\"attachment_31576\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/list-all-block-devices.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31576\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/list-all-block-devices.png\" alt=\"List Block Devices\" width=\"642\" height=\"553\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">List Block Devices<\/p>\n<\/div>\n<p>Then mount the partition (<code>\/dev\/sdb1<\/code>\u00a0in this case) in read-only mode to the above directory as shown.<\/p>\n<pre>$ sudo mount -t vfat -o ro \/dev\/sdb1 \/media\/aaronkilik\/WIN_PART\t\t#fat32\r\nOR\r\n$ sudo mount -t ntfs-3g -o ro \/dev\/sdb1 \/media\/aaronkilik\/WIN_PART\t#ntfs\r\n<\/pre>\n<p>Now to get mount details (mount point, options etc..) of the device, run the\u00a0<strong>mount command<\/strong>\u00a0without any options and pipe its output to\u00a0<a href=\"https:\/\/www.tecmint.com\/12-practical-examples-of-linux-grep-command\/\" target=\"_blank\" rel=\"noopener\">grep command<\/a>.<\/p>\n<pre>$ mount | grep \"sdb1\" \r\n<\/pre>\n<div id=\"attachment_31574\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-mount-details.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31574\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-mount-details.png\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-mount-details.png 852w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/01\/show-mount-details-768x70.png 768w\" alt=\"List Windows Partition\" width=\"852\" height=\"78\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">List Windows Partition<\/p>\n<\/div>\n<p>After successfully mounting the device, you can access files on your Windows partition using any applications in Ubuntu. But, remember that, because the device is mounted as read-only, you will not be able to write to the partition or modify any files.<\/p>\n<p>Also note that if Windows is in a hibernated state, if you write to or modify files in the Windows partition from Ubuntu, all your changes will be lost after a reboot.<\/p>\n<p>For more information, refer to the Ubuntu community help wiki:\u00a0<a href=\"https:\/\/help.ubuntu.com\/community\/MountingWindowsPartitions\" target=\"_blank\" rel=\"nofollow noopener\">Mounting Windows Partitions<\/a>.<\/p>\n<p>That\u2019s all! In this article, we have shown how to mount Windows partition in Ubuntu. Use the feedback form below to reach us for any questions if you face any unique challenges or for any comments.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/mount-windows-partition-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are running a\u00a0dual-boot of Ubuntu and Windows, sometimes you might fail to access a Windows partition (formatted with NTFS or FAT32 filesystem type), while using Ubuntu, after hibernating Windows (or when it\u2019s not fully shutdown). This is because, Linux cannot mount and open hibernated Windows partitions (the full discussion of this is beyond &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/17\/how-to-mount-windows-partitions-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Mount Windows Partitions in Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8280","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=8280"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8280\/revisions"}],"predecessor-version":[{"id":10751,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8280\/revisions\/10751"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=8280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=8280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=8280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}