자료실

윈도우에서 리눅스 파티션 인식

작성자 관리자 등록일 2022-07-19 13:47:28 조회수 892회 댓글수 0건
링크 #1 https://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/ 클릭수 27039회

명령프롬토프 관리자권한으로 시행

wsl --instlall  실행하고 아래 명령어 실행해줘야 인식됨

 디스크 드라이브 리스트보기

wmic diskdrive list brief

 

Starting with Windows Insiders preview build 20211, WSL 2 will be offering a new feature: wsl --mount. This new parameter allows a physical disk to be attached and mounted inside WSL 2, which enables you to access filesystems that aren’t natively supported by Windows (such as ext4).

 

So, if you’re dual booting with Windows & Linux using different disks, you can now access your Linux files from Windows!

Getting started

To mount a disk, open a PowerShell window with administrator privileges and run:

wsl --mount <DiskPath>

To list the available disks in Windows, run:

wmic diskdrive list brief

To unmount and detach the disk from WSL 2, run

wsl --unmount <Diskpath>

The disks paths are available under the ‘DeviceID’ columns. Usually under the \\.\\\.\PHYSICALDRIVE* format. Below is an example of mounting a specific partition of a given hard disk into WSL and browsing its files.

terminal with wsl text

Accessing these files with File Explorer

Once mounted, it’s also possible to access these disks through the Windows explorer by navigating to \wsl$ and then to the mount folder.

Accessing an EXT4 partition with file explorer

Limitations

By default, wsl --mount attempts to mount the disk as ext4. To specify a filesystem, or for more advanced scenarios, check out Mount a disk in WSL 2.

Also please note that this feature comes with the limitation that only physical disks can be attached to WSL 2. At this time, it’s not possible to attach a single partition. More details on the limitations here.

이전글 윈도우 10 21H2 수동 업데이트 파일
다음글 열화상카메라 DTC200/300 광고 배너 슬라이드 사용 매뉴얼 및 샘플파일

목록보기

[원격지원요청]
[도로명] 경상남도 창원시 의창구 대봉로 26번길 4-5 봉림YG빌딩 503호
[지번] 경상남도 창원시 의창구 봉림동 712-1 봉림YG빌딩 503호