Монтировать образ диска linux в windows

В случае, если вам потребовался доступ из Windows к данным на разделе диска с файловой системой Linux — ext4/ext3/ext2, встроенными средствами системы сделать это не получится. Однако, возможности есть, причем реализовать это можно встроенными средствами системы или с помощью сторонних инструментов.

В этой инструкции подробно о способах подключить раздел диска в файловой системе Linux в Windows 11 и Windows 10 для доступа к данным на этом разделе как для чтения, так и для записи.

Ext2 File System Driver (Ext2Fsd) — самый простой способ открыть раздел ext4/ext3/ext2 в Windows

Ext2 File System Driver или Ext2Fsd — сторонний и полностью бесплатный драйвер для подключения разделов Linux во всех версиях Windows начиная с XP. Несмотря на название, поддерживаются не только разделы не только с файловой системой ext2, но и более новые ext4 и ext3.

Порядок использования Ext2 File System Driver для доступа к дискам Linux будет следующим:

  1. Загрузите установщик Ext2Fsd с сайта https://sourceforge.net/projects/ext2fsd/
  2. Установите драйвер, в параметрах установки как правило не требуется ничего изменять.
  3. По завершении установки вам будет предложено запустить Ext2 Volume Manager (менеджер томов), запустите его.
  4. Нажмите правой кнопкой мыши по разделу Linux ext4, ext3, ext2 и выберите пункт «Assign Drive Letter» — назначить букву диска.
    Назначение буквы диска в Ext2Fsd

  5. Для раздела будет автоматически назначена буква диска, и вы увидите раздел в Проводнике Windows с возможностью чтения и записи файлов на нём.
    Раздел Ext4 подключен в Windows с помощью Ext2Fsd

В дальнейшем вы тем же способом сможете удалить букву диска с раздела (опция «Change letter» — «Remove»).

Доступ к разделам Linux средствами Подсистемы Windows для Linux (WSL)

Подсистема Windows для Linux (WSL) также может быть использована для подключения дисков Linux в Windows таким образом, чтобы доступ к ним был возможен из проводника. Шаги будут следующими:

  1. Запустите командную строку, Терминал или PowerShell от имени администратора и по порядку введите команды
    wsl --install
    wsl --set-default-version 2
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    wsl --install -d Ubuntu
    Установка Ubuntu в WSL в Windows

  2. После выполнения последней команды откроется окно консоли Linux (командную строку при этом не закрывайте, она еще пригодится) с предложением настроить имя пользователя и пароль, сделайте это. Если в окне консоли вы увидите сообщение об ошибке, скачайте и установите обновление WSL, перезагрузите компьютер и запустите Ubuntu из меню «Пуск».
  3. В консоли Ubuntu введите команду
    sudo mkdir -p /mnt/ext-drives/

    для создания папки, к которой будут монтироваться диски.

    Создать папку для монтирования дисков в WSL

  4. В консоли Windows (командная строка, терминал, Powershell) введите команду
    wmic diskdrive list brief
  5. Обратите внимание на DeviceID диска, который нужно подключить и введите команду (так же в консоли Windows) указав соответствующий номер в имени PHYSICALDRIVE
    wsl --mount \\.\PHYSICALDRIVE
    Подключить устройство к WSL в Windows

  6. В консоли Ubuntu введите команду lsblk — это отобразит список подключенных дисков, разделов на них и их размер. В следующей команде используем имя нужного раздела для монтирования:
    sudo mount /dev/sdИМЯ /mnt/ext-drives/
    Подключить диск Ext4 в Ubuntu в WSL

  7. После успешного выполнения всех указанных шагов вы можете зайти в Проводник Windows, выбрать пункт «Linux» в панели быстрого доступа, перейти в папку mnt\ext-drives и получить доступ к файлам на подключенном разделе Linux с возможностью записи и чтения.
    Раздел Ext4 из Подсистемы Windows для Linux виден в проводнике

В дальнейшем для отключения диска от WSL можно использовать ту же команду, которая использовалась на 5-м шаге, заменив mount на unmount.

Есть и другие программы (драйверы) для доступа к разделам Linux из Windows, но не полностью бесплатные. Среди них:

  • DiskInternals Linux Reader — в бесплатной версии доступно только чтение данных с разделов.
  • Paragon Linux File Systems for Windows — бесплатная работа в течение пробной версии, затем необходимо приобретать лицензию.

Образы диском используются для различных целей. Они могут быть использованы для бэкапов дисков полностью, распространят контент, для криминалистического анализа или для доступа к контенту оптических дисков, когда нет сидирома.

Arsenal Image Mounter это бесплатная программа под Windows, которая на первый взгляд выглядит как многие другие программы для монтирования дисков.

В отличие от большинства их, она способна смонтировать образы дисков как полные диски в Windows вместо монтирования как расшаренные или как разделы. Тем не менее, это не единственное отличие.

Эта программа, в первую очередь, была создана в криминалистических целях, но может быть использована и для других. Пользователи превосходной программы шифрования DiskCryptor могут, например, использовать её для шифрования смонтированных дисков для использования их как зашифрованные контейнеры на компьютере, функцию, которую DiskCryptor не поддерживает изначально (он может только шифровать разделы и диски, но не контейнеры.

 

arsenal-image-mounter

Давайте взглянем на спецификации программы и поддерживаемые файловые системы и форматы образов:

  • Поддерживает Windows Vista и более новые клиентские системы и Windows Server 2003 и более новые серверные системы.
  • Поддерживает все файловые системы, драйверы которых установлены, включая NTFS, FAT32, exFAT, ReFS, UFS, EXT3 и HFS+.
  • Поддерживает Raw (dd) прямо из коробки и с дополнительными инструментами EnCase E01 и Ex01 и VHD, VDI, XVA и другими дисковыми файлами виртуальных машин.
  • Требует .Net Framework 4.0.

В архиве включены версия с графическим пользовательским интерфейсом и версия с командной строкой. Скриншот показывает пользовательский интерфейс.

Программа проверяет на наличие необходимого драйвера для запуска и предлагает установить его, если он не наличествует ещё в системе. Она устанавливает виртуальный адаптер SCSI, который позволяет смонтированным образам извлекать пользу из таких функций как Volume Shadow Copies (теневые копии тома) и полная интеграция дискового управления (Disk Management).

Вы выбираете опции монтирования и удаления в нижней половине интерфейса. Каждый смонтированный диск представлен с информацией в последующем интерфейсе, включая его дисковый размер, режим (чтение только или чтение и запись), расположение, номер диска и подпись диска.

Если вы не уверены, вы можете выбрать опцию только чтения, монтирование диска с полными правом записи изменит его содержимое или разрешит допуск временных записей, которые сохраняют записанные дата во временные дифференциальные файлы так, что оригинальный образ диска не модифицируется.

mount-options

Заключительные слова

Arsenal Image Mounter — это простая в использовании программа, которая поддерживает большое количество raw (сырых) и дисков виртуальных машин. Одним из минусов является отсутствие поддержки некоторых распространённых форматов образов дисков, таких как IMG или BIN, что означает, что вам нужна ещё и дополнительная программа для этого, если вам требуется этот функционал. В общем, это превосходная программа. Для меня самыми потрясающими функциями являются именно возможность смонтировать диски с Linux, а также смонтировать диски виртуальных машин.

Домашняя страница


Cover image for Mount a Linux image on Windows and access to it from File Explorer with WSL2

Requisites

A Windows system with WSL2 and an installed distro.

1. Downlaod linux distro image

wget __linux_image_url

Enter fullscreen mode

Exit fullscreen mode

2. Run wsl console

$ wsl

Enter fullscreen mode

Exit fullscreen mode

3. Check disk image sectors

$ partx --show __linux_image_filepath__
NR  START     END SECTORS SIZE NAME UUID
 1   8192  532479  524288 256M      9730496b-01
 2 532480 3661823 3129344 1.5G      9730496b-02

Enter fullscreen mode

Exit fullscreen mode

3. Calculate offset

$ bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
> 532480 * 512
> 272629760
> quit

Enter fullscreen mode

Exit fullscreen mode

4. Mount Image

Create mounting point

$ sudo mkdir /mnt/other

Enter fullscreen mode

Exit fullscreen mode

Mount image

$ sudo mount -v -o offset=272629760 -t ext4 /_path_to_file_image/__filename__.img /mnt/other
mount: /dev/loop0 mounted on /mnt/other.

Enter fullscreen mode

Exit fullscreen mode

Check mounted image

$ ls /mnt/other

Enter fullscreen mode

Exit fullscreen mode

5. Access to Filesystem through File Explorer

  1. Open File Explorer
  2. Type \\wsl$ in the address bar
  3. Installed distros will be shown up. Click on it and navigate in the file system into the mounted path.

References

  • Access Linux filesystems in Windows and WSL 2
  • Access WSL2/Ubuntu Drive from File Explorer
  • How to mount Linux file system using WSL on Windows 11
  • Mounting a Raspberry Pi disk image under WSL 2

Photo Credit Dorolein

On Windows 11, the Windows Subsystem for Linux (WSL) ships with a new feature that allows you to attach and mount physical drives to access Linux file systems (for example, ext4) not natively supported on Windows.

The new feature allows users to access Linux files using File Explorer on a dual-boot system running Windows 11 and a Linux distro on a different drive.

In this guide, you will learn the steps to mount and unmount drives using the Windows Subsystem for Linux.

  • Mount Linux file system on Windows 11
  • Mount any Linux file system on Windows 11
  • Access Linux file system on Windows 11
  • Unmount Linux file system on Windows 11

To mount a Linux file system using WSL, use these steps:

  1. Open Start on Windows 11.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to list the available physical disks and press Enter:

    wmic diskdrive list brief
  4. Confirm the drive path under the “Device ID” column.

  5. Type the following command to mount the Linux file system and press Enter:

    wsl --mount DISKPATH

    WSL mount Linux partition

    In the command, make sure to replace DISKPATH for the drive path with the Linux distribution you want to mount. For example, wsl --mount \\.\PHYSICALDRIVE2. If you’re going to mount a specific partition, you’ll need to use the --partition option with the partition number. For example, wsl --mount \\.\PHYSICALDRIVE2 --partition 1.

Once you complete the steps, the drive with Linux files will mount, and it’ll be visible from Windows 11.

Mount any Linux file system on Windows 11

The previous steps only attempt to mount a physical drive as ext4. If you want to specify another file system, you will need to use a different command with the Windows Subsystem for Linux 2 (WSL2).

To mount a specific Linux file system on Windows 11, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to list the available physical disks on Windows 11 and press Enter:

    wmic diskdrive list brief
  4. Confirm the drive path under the “Device ID” column.

  5. Type the following command to mount a drive and press Enter:

    wsl --mount DISKPATH -t FILESYSTEM

    In the command, make sure to replace DISKPATH and FILESYSTEM for the path of the Linux drive and file system you want to mount. For example, to mount a disk as fat, use this command: wsl --mount DISKPATH -t vfat.

After you complete the steps, the drive with Linux files will mount, and it will be accessible using File Explorer.

Access Linux file system on Windows 11

To access files from a Linux file system on Windows 11, use these steps:

  1. Open File Explorer.

  2. Click the Linux item from the left navigation pane.

  3. In the address bar, navigate to \wsl$ and then access the mount folder. For example, \\wsl$\\DISTRO-NAME\\MOUNT-POINT.

    WSL browse  mounted drive

Once you complete the steps, you should be able to browse the Linux files from a natively unsupported file system on Windows 11. In addition to using File Explorer, you can access file systems like “ext4” from the WSL2 console using command lines once the drive is mounted.

Unmount Linux file system on Windows 11

To unmount the Linux file system on Windows 11, use these steps

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to unmount and detach the drive and press Enter:

    wsl --unmount DISKPATH

    WSL unmount partition

    In the command, make sure to replace DISKPATH for the Device ID of the drive you want to unmount.

After you complete the steps, the drive with the Linux file system will unmount and detach from Windows 11.

Why You Can Trust Pureinfotech

The author combines expert insights with user-centric guidance, rigorously researching and testing to ensure you receive trustworthy, easy-to-follow tech guides. Review the publishing process.

In this article, we will be discussing five different ways to access Linux files from Windows. We’ll work on Ubuntu in this article, but you can use any distribution. Just identify the partition type that you’re using on your system and download the appropriate tool from this list.

Ubuntu supports Windows NTFS partitions but Windows can’t access Ubuntu partitions i.e. Ext4, Ext3, Ext2, etc. To access these partitions from windows when dual-booted with Ubuntu, this can only be done using third-party software. We will discuss some of the software to read and write Linux partitions.

Here are some free tools to access Linux files from windows without booting into Linux:

1. ext2fsd

ext2fsd can read Ext4, Ext3, Ext2 file systems and can even provide write access on enabling write support during the setup. You have to start it manually in Tools > Service Management and click on Start or you can set it to start automatically when the system boots. It is free and easy to install.

ext2fsd

It assigns a drive letter to the Linux partitions or you can set it manually using Ext2 Volume Manager and can change ext2fsd’s settings. You can choose to assign the drive letter automatically in Tools > Service Management. Assigning a drive letter to Linux partitions allows apps to directly access Linux Files on Windows!

2. DiskInternals Linux Reader

Unlike ext2fsd, Linux Reader also supports ReiserFS, Reiser 4, HFS, HFS+(Apple’s file system), APFS, XFS, etc along with Ext4, Ext3, Ext2. It provides read-only access to keep the original files secure. It previews the contents of the files and bypasses the security policies of files which gives you access to any file on your Linux partition. It is free software for non-commercial use and works on Windows 7, 8, and 10.

disk-internal-Linux-Reader

It also has a pro version i.e. Linux Reader Pro which provides some extra features such as remote access via SSH, Exporting files to an FTP server. You can download it through this link. Instead of assigning a drive letter, it shows the files in its application window. You can save the files to windows which you want to use.

3. Ext2Read

Ext2read is a free and open-source utility that works the same as the Linux Reader. It provides read-only access only to Ext4, Ext3, Ext2, and Ext4 Extents. It does not need to be installed, It is just a .exe file that should be run as an administrator. You can copy folders and even whole directories from Linux partitions. You can download the .exe file through this link.

ext2read

4. Explore2fs

Explore2fs is a tool that gives you access to Ext2 and Ext3 file systems. It supports all versions of windows, especially the older versions. This tool is used for the old hardware as it supports Floppy disks, CD-ROM, Jazz Disk and can export files as binary, text, or even directories. While not the best option, if you need to access Linux files on Windows on a old device, go for this one. You can download it from here.

Explore2fs

5. Ext2 IFS

Ext2 IFS is a tool used to access the Ext2 file system with read and write access. You can read, write, rename, move and delete files or directories. It works on Windows 7 and 8, Windows Server 2003, 2008, 2012, Windows XP, Windows Vista, and other old versions.

During installation, it will give the option to choose a drive letter for your Linux partition and after the installation, you will find the Linux file system in your file explorer.

Unlike other software discussed above, this tool can only access Ext2 file systems. You can download it through this link.

ext2ifs

FAQs

What are some tools to access Linux files on Windows?

You can use tools like DiskInternals Linux Reader, Ext2Fsd, Explore2fs, WSL (Windows Subsystem for Linux), and Linux File Systems for Windows by Paragon to access Linux files on Windows.

How can I access Linux partitions from Windows?

You can use tools like Ext2Fsd or Linux File Systems for Windows by Paragon to access Linux partitions from Windows. These tools allow you to browse and save files from Linux partitions on your Windows system.

Can I access Ext4 partitions from Windows?

Yes, you can access Ext4 partitions from Windows using tools like Linux File Systems for Windows by Paragon which supports the Ext4 file system and allows you to access files from Ext4 partitions on your Windows PC.

Does Windows 10 have built-in support for accessing Linux files?

Windows 10 does not have built-in support for accessing Linux files. However, you can use third-party tools like DiskInternals Linux Reader or Linux File Systems for Windows by Paragon to access Linux files from Windows 10.

How can I transfer files between Windows and Linux systems?

You can transfer files between Windows and Linux systems by using tools like WSL (Windows Subsystem for Linux) or third-party applications like DiskInternals Linux Reader or Linux File Systems for Windows by Paragon.

Conclusion

So, We discussed different ways to access Ubuntu files from Windows without shutting windows and booting into Linux. Explore2fs and Ext2 IFS can be used for older versions of windows and can access old hardware as discussed.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Xbox series x windows mode как включить
  • Как восстановить диск средствами windows
  • Как изменить букву виртуального дисковода в windows 10
  • Raw print server windows 10
  • Windows server 2016 kms activator