Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\parksik> wsl
To run a command as administrator (user “root”), use “sudo
Welcome to Ubuntu 24.04.2 LTS (GNU/Linux 6.6.87.1-microsoft-standard-WSL2 x86_64)
System information as of Fri Jun 13 14:42:55 KST 2025
System load: 0.62 Processes: 79 Usage of /: 0.1% of 1006.85GB Users logged in: 0 Memory usage: 2% IPv4 address for eth0: 172.22.185.204 Swap usage: 0%
Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
This message is shown once a day. To disable it please create the /home/parksik/.hushlogin file. parksik@X1:/mnt/c/Users/parksik$ wmic diskdrive list brief wmic: command not found parksik@X1:/mnt/c/Users/parksik$ Get-Disk Get-Disk: command not found parksik@X1:/mnt/c/Users/parksik$ wmic diskdrive list brief wmic: command not found parksik@X1:/mnt/c/Users/parksik$ ^C parksik@X1:/mnt/c/Users/parksik$ winget install –interactive –exact dorssel.usbipd-win winget: command not found parksik@X1:/mnt/c/Users/parksik$ sudo apt update sudo apt install linux-tools-virtual hwdata sudo update-alternatives –install /usr/local/bin/usbip usbip /usr/lib/linux-tools/*-generic/usbip 20 [sudo] password for parksik: Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB] Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] Get:4 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [868 kB] Get:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB] Get:6 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [15.0 MB] Get:7 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [160 kB] Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.5 kB] Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadata [7068 B] Get:10 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [849 kB] Get:11 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [187 kB] Get:12 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [52.2 kB] Get:13 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [17.0 kB] Get:14 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1138 kB] Get:15 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [236 kB] Get:16 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [208 B] Get:17 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 c-n-f Metadata [468 B] Get:18 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [17.7 kB] Get:19 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-en [3792 B] Get:20 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [208 B] Get:21 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 c-n-f Metadata [380 B] Get:22 http://archive.ubuntu.com/ubuntu noble/universe Translation-en [5982 kB] Get:23 http://archive.ubuntu.com/ubuntu noble/universe amd64 Components [3871 kB] Get:24 http://archive.ubuntu.com/ubuntu noble/universe amd64 c-n-f Metadata [301 kB] Get:25 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [269 kB] Get:26 http://archive.ubuntu.com/ubuntu noble/multiverse Translation-en [118 kB] Get:27 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Components [35.0 kB] Get:28 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 c-n-f Metadata [8328 B] Get:29 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1117 kB] Get:30 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [238 kB] Get:31 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [161 kB] Get:32 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 c-n-f Metadata [13.5 kB] Get:33 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1078 kB] Get:34 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [274 kB] Get:35 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [376 kB] Get:36 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [26.0 kB] Get:37 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [1179 kB] Get:38 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [245 kB] Get:39 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B] Get:40 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 c-n-f Metadata [492 B] Get:41 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [21.7 kB] Get:42 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [4788 B] Get:43 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B] Get:44 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 c-n-f Metadata [592 B] Get:45 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [39.2 kB] Get:46 http://archive.ubuntu.com/ubuntu noble-backports/main Translation-en [8676 B] Get:47 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7080 B] Get:48 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 c-n-f Metadata [272 B] Get:49 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [27.1 kB] Get:50 http://archive.ubuntu.com/ubuntu noble-backports/universe Translation-en [16.5 kB] Get:51 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [16.4 kB] Get:52 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 c-n-f Metadata [1304 B] Get:53 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B] Get:54 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 c-n-f Metadata [116 B] Get:55 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B] Get:56 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 c-n-f Metadata [116 B] Fetched 34.4 MB in 8s (4251 kB/s) Reading package lists… Done Building dependency tree… Done Reading state information… Done 111 packages can be upgraded. Run ‘apt list –upgradable’ to see them. Reading package lists… Done Building dependency tree… Done Reading state information… Done The following additional packages will be installed: libnuma1 libpci3 libtraceevent1 linux-tools-6.8.0-60 linux-tools-6.8.0-60-generic linux-tools-common The following NEW packages will be installed: hwdata libnuma1 libpci3 libtraceevent1 linux-tools-6.8.0-60 linux-tools-6.8.0-60-generic linux-tools-common linux-tools-virtual 0 upgraded, 8 newly installed, 0 to remove and 111 not upgraded. Need to get 6245 kB of archives. After this operation, 20.8 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libnuma1 amd64 2.0.18-1build1 [23.3 kB] Get:2 http://archive.ubuntu.com/ubuntu noble/main amd64 libpci3 amd64 1:3.10.0-2build1 [36.5 kB] Get:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libtraceevent1 amd64 1:1.8.2-1ubuntu2.1 [55.3 kB] Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 hwdata all 0.379-1 [29.1 kB] Get:5 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-tools-common all 6.8.0-60.63 [715 kB] Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-tools-6.8.0-60 amd64 6.8.0-60.63 [5373 kB] Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-tools-6.8.0-60-generic amd64 6.8.0-60.63 [1812 B] Get:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-tools-virtual amd64 6.8.0-60.63 [10.5 kB] Fetched 6245 kB in 3s (1819 kB/s) Selecting previously unselected package libnuma1:amd64. (Reading database … 40768 files and directories currently installed.) Preparing to unpack …/0-libnuma1_2.0.18-1build1_amd64.deb … Unpacking libnuma1:amd64 (2.0.18-1build1) … Selecting previously unselected package libpci3:amd64. Preparing to unpack …/1-libpci3_1%3a3.10.0-2build1_amd64.deb … Unpacking libpci3:amd64 (1:3.10.0-2build1) … Selecting previously unselected package libtraceevent1:amd64. Preparing to unpack …/2-libtraceevent1_1%3a1.8.2-1ubuntu2.1_amd64.deb … Unpacking libtraceevent1:amd64 (1:1.8.2-1ubuntu2.1) … Selecting previously unselected package hwdata. Preparing to unpack …/3-hwdata_0.379-1_all.deb … Unpacking hwdata (0.379-1) … Selecting previously unselected package linux-tools-common. Preparing to unpack …/4-linux-tools-common_6.8.0-60.63_all.deb … Unpacking linux-tools-common (6.8.0-60.63) … Selecting previously unselected package linux-tools-6.8.0-60. Preparing to unpack …/5-linux-tools-6.8.0-60_6.8.0-60.63_amd64.deb … Unpacking linux-tools-6.8.0-60 (6.8.0-60.63) … Selecting previously unselected package linux-tools-6.8.0-60-generic. Preparing to unpack …/6-linux-tools-6.8.0-60-generic_6.8.0-60.63_amd64.deb … Unpacking linux-tools-6.8.0-60-generic (6.8.0-60.63) … Selecting previously unselected package linux-tools-virtual. Preparing to unpack …/7-linux-tools-virtual_6.8.0-60.63_amd64.deb … Unpacking linux-tools-virtual (6.8.0-60.63) … Setting up hwdata (0.379-1) … Setting up libpci3:amd64 (1:3.10.0-2build1) … Setting up libnuma1:amd64 (2.0.18-1build1) … Setting up libtraceevent1:amd64 (1:1.8.2-1ubuntu2.1) … Setting up linux-tools-common (6.8.0-60.63) … Setting up linux-tools-6.8.0-60 (6.8.0-60.63) … Setting up linux-tools-6.8.0-60-generic (6.8.0-60.63) … Setting up linux-tools-virtual (6.8.0-60.63) … Processing triggers for man-db (2.12.0-4build2) … Processing triggers for libc-bin (2.39-0ubuntu8.4) … update-alternatives: using /usr/lib/linux-tools/6.8.0-60-generic/usbip to provide /usr/local/bin/usbip (usbip) in auto mode parksik@X1:/mnt/c/Users/parksik$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 388.4M 1 disk sdb 8:16 0 186M 1 disk sdc 8:32 0 4G 0 disk [SWAP] sdd 8:48 0 1T 0 disk /mnt/wslg/distro / sde 8:64 1 29.8G 0 disk ├─sde1 8:65 1 4M 0 part ├─sde2 8:66 1 64M 0 part ├─sde3 8:67 1 2.8G 0 part ├─sde4 8:68 1 1K 0 part └─sde5 8:69 1 1.9G 0 part parksik@X1:/mnt/c/Users/parksik$
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\parksik> PS C:\Users\parksik> 패키지 설치를 시작하는 중… 패키지 : The term ‘패키지’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the s pelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
PS C:\Users\parksik> 설치 성공 설치 : The term ‘설치’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe lling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
PS C:\Users\parksik> PS C:\Users\parksik> usbipd wsl list Get-Process : A positional parameter cannot be found that accepts argument ‘usbipd’. At line:1 char:1
PS C:\Users\parksik> usbipd : The term ‘usbipd’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check ‘:’ was not matched. Did you mean one of the following? -h ‘The’ was not matched. Did you mean one of the following? -h ‘usbipd’ was not matched. Did you mean one of the following? unbind ‘is’ was not matched. Did you mean one of the following? list -h ‘not’ was not matched. Did you mean one of the following? list -h ‘as’ was not matched. Did you mean one of the following? -h ‘the’ was not matched. Did you mean one of the following? -h ‘name’ was not matched. Did you mean one of the following? state ‘of’ was not matched. Did you mean one of the following? -h ‘a’ was not matched. Did you mean one of the following? -h ‘file’ was not matched. Did you mean one of the following? bind list ‘or’ was not matched. Did you mean one of the following? -h Required command was not provided. Unrecognized command or argument ‘:’. Unrecognized command or argument ‘The’. Unrecognized command or argument ‘term’. Unrecognized command or argument ‘usbipd’. Unrecognized command or argument ‘is’. Unrecognized command or argument ‘not’. Unrecognized command or argument ‘recognized’. Unrecognized command or argument ‘as’. Unrecognized command or argument ‘the’. Unrecognized command or argument ‘name’. Unrecognized command or argument ‘of’. Unrecognized command or argument ‘a’. Unrecognized command or argument ‘cmdlet’. Unrecognized command or argument ‘function’. Unrecognized command or argument ‘script’. Unrecognized command or argument ‘file’. Unrecognized command or argument ‘or’. Unrecognized command or argument ‘operable’. Unrecognized command or argument ‘program.’. Unrecognized command or argument ‘Check’.
usbipd-win 5.1.0
Description: Shares locally connected USB devices to other machines, including Hyper-V guests and WSL 2.
Usage: usbipd [command] [options]
Options: –version Show version information -?, -h, –help Show help and usage information
Commands: attach Attach a USB device to a client bind Bind device detach Detach a USB device from a client license Display license information list List USB devices policy Manage policy rules server Run the server on the console state Output state in JSON unbind Unbind device
PS C:\Users\parksik> the spelling of the name, or if a path was included, verify that the path is correct and try again. the : The term ‘the’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the s pelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:2
PS C:\Users\parksik> At line:1 char:1 The AT command has been deprecated. Please use schtasks.exe instead.
Invalid command.
The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command.
AT [\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\computername] time [/INTERACTIVE] [ /EVERY:date[,…] | /NEXT:date[,…]] “command”
\computername Specifies a remote computer. Commands are scheduled on the local computer if this parameter is omitted. id Is an identification number assigned to a scheduled command. /delete Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled. /yes Used with cancel all jobs command when no further confirmation is desired. time Specifies the time when command is to run. /interactive Allows the job to interact with the desktop of the user who is logged on at the time the job runs. /every:date[,…] Runs the command on each specified day(s) of the week or month. If date is omitted, the current day of the month is assumed. /next:date[,…] Runs the specified command on the next occurrence of the day (for example, next Thursday). If date is omitted, the current day of the month is assumed. “command” Is the Windows NT command, or batch program to be run.
PS C:\Users\parksik> + usbipd wsl list At line:1 char:2
PS C:\Users\parksik> + ~~~~~~ At line:1 char:2
PS C:\Users\parksik> + CategoryInfo : ObjectNotFound: (usbipd:String) [], CommandNotFoundException At line:1 char:6
PS C:\Users\parksik> + FullyQualifiedErrorId : CommandNotFoundException At line:1 char:6
PS C:\Users\parksik> PS C:\Users\parksik> PS C:\Users\parksik> usbipd wsl list Get-Process : A positional parameter cannot be found that accepts argument ‘usbipd’. At line:1 char:1
PS C:\Users\parksik> usbipd : The term ‘usbipd’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check ‘:’ was not matched. Did you mean one of the following? -h ‘The’ was not matched. Did you mean one of the following? -h ‘usbipd’ was not matched. Did you mean one of the following? unbind ‘is’ was not matched. Did you mean one of the following? list -h ‘not’ was not matched. Did you mean one of the following? list -h ‘as’ was not matched. Did you mean one of the following? -h ‘the’ was not matched. Did you mean one of the following? -h ‘name’ was not matched. Did you mean one of the following? state ‘of’ was not matched. Did you mean one of the following? -h ‘a’ was not matched. Did you mean one of the following? -h ‘file’ was not matched. Did you mean one of the following? bind list ‘or’ was not matched. Did you mean one of the following? -h Required command was not provided. Unrecognized command or argument ‘:’. Unrecognized command or argument ‘The’. Unrecognized command or argument ‘term’. Unrecognized command or argument ‘usbipd’. Unrecognized command or argument ‘is’. Unrecognized command or argument ‘not’. Unrecognized command or argument ‘recognized’. Unrecognized command or argument ‘as’. Unrecognized command or argument ‘the’. Unrecognized command or argument ‘name’. Unrecognized command or argument ‘of’. Unrecognized command or argument ‘a’. Unrecognized command or argument ‘cmdlet’. Unrecognized command or argument ‘function’. Unrecognized command or argument ‘script’. Unrecognized command or argument ‘file’. Unrecognized command or argument ‘or’. Unrecognized command or argument ‘operable’. Unrecognized command or argument ‘program.’. Unrecognized command or argument ‘Check’.
usbipd-win 5.1.0
Description: Shares locally connected USB devices to other machines, including Hyper-V guests and WSL 2.
Usage: usbipd [command] [options]
Options: –version Show version information -?, -h, –help Show help and usage information
Commands: attach Attach a USB device to a client bind Bind device detach Detach a USB device from a client license Display license information list List USB devices policy Manage policy rules server Run the server on the console state Output state in JSON unbind Unbind device
PS C:\Users\parksik> the spelling of the name, or if a path was included, verify that the path is correct and try again. the : The term ‘the’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the s pelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:2
PS C:\Users\parksik> At line:1 char:1 The AT command has been deprecated. Please use schtasks.exe instead.
Invalid command.
The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command.
AT [\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\computername] time [/INTERACTIVE] [ /EVERY:date[,…] | /NEXT:date[,…]] “command”
\computername Specifies a remote computer. Commands are scheduled on the local computer if this parameter is omitted. id Is an identification number assigned to a scheduled command. /delete Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled. /yes Used with cancel all jobs command when no further confirmation is desired. time Specifies the time when command is to run. /interactive Allows the job to interact with the desktop of the user who is logged on at the time the job runs. /every:date[,…] Runs the command on each specified day(s) of the week or month. If date is omitted, the current day of the month is assumed. /next:date[,…] Runs the specified command on the next occurrence of the day (for example, next Thursday). If date is omitted, the current day of the month is assumed. “command” Is the Windows NT command, or batch program to be run.
PS C:\Users\parksik> + usbipd wsl list At line:1 char:2
PS C:\Users\parksik> + ~~~~~~ At line:1 char:2
PS C:\Users\parksik> + CategoryInfo : ObjectNotFound: (usbipd:String) [], CommandNotFoundException At line:1 char:6
PS C:\Users\parksik> + FullyQualifiedErrorId : CommandNotFoundException At line:1 char:6
PS C:\Users\parksik> usbipd wsl list usbipd: error: The ‘wsl’ subcommand has been removed. Learn about the new syntax at https://learn.microsoft.com/windows/wsl/connect-usb#attach-a-usb-device. PS C:\Users\parksik> & “C:\Program Files\usbipd-win\usbipd.exe” wsl list usbipd: error: The ‘wsl’ subcommand has been removed. Learn about the new syntax at https://learn.microsoft.com/windows/wsl/connect-usb#attach-a-usb-device. PS C:\Users\parksik> “C:\Program Files\usbipd-win\usbipd.exe” wsl list At line:1 char:42
PS C:\Users\parksik> & “C:\Program Files\usbipd-win\usbipd.exe” wsl list usbipd: error: The ‘wsl’ subcommand has been removed. Learn about the new syntax at https://learn.microsoft.com/windows/wsl/connect-usb#attach-a-usb-device. PS C:\Users\parksik> usbipd list Connected: BUSID VID:PID DEVICE STATE 2-6 06cb:00fc Synaptics UWP WBDI Not shared 2-7 0403:6001 USB Serial Converter Not shared 2-8 30c9:0052 Integrated Camera, Integrated IR Camera, APP Mode Not shared 2-9 14cd:125c USB 대용량 저장 장치 Not shared 2-10 8087:0033 인텔(R) 무선 Bluetooth(R) Not shared 3-1 3554:fa09 USB 입력 장치 Not shared 3-2 a8a5:2255 USB 입력 장치 Not shared
Persisted: GUID DEVICE
PS C:\Users\parksik> usbipd attach –busid 2-9 –wsl usbipd: error: Device is not shared; run ‘usbipd bind –busid 2-9’ as administrator first. PS C:\Users\parksik> usbipd bind –busid 2-9 PS C:\Users\parksik> usbipd attach –busid 2-9 –wsl usbipd: info: Using WSL distribution ‘Ubuntu’ to attach; the device will be available in all WSL 2 distributions. usbipd: info: Loading vhci_hcd module. usbipd: info: Detected networking mode ‘nat’. usbipd: info: Using IP address 172.22.176.1 to reach the host. PS C:\Users\parksik>
//todo
네, 맞습니다. 리눅스에서는 반드시 ‘마운트(mount)’라는 과정을 거쳐야만 파일 시스템의 내용물을 볼 수 있습니다.
‘마운트’는 단순히 ‘장치를 특정 폴더에 연결해서 내용물을 볼 수 있게 준비하는 작업’이라고 생각하시면 됩니다. 윈도우에서 USB를 꽂으면 자동으로 D:나 E: 드라이브로 나타나는 과정이 리눅스에서는 수동으로 ‘마운트’하는 것과 같습니다.
데이터 손상이 걱정되신다면, 마운트할 때 읽기 전용(Read-only) 옵션을 주면 됩니다. 이 옵션을 사용하면 실수로 파일을 지우거나 수정하는 것을 원천적으로 차단할 수 있어 매우 안전합니다.
아래와 같이 mount
명령어에 -r
또는 -o ro
옵션을 추가하면 됩니다.
아까처럼 가장 유력한 sde3
파티션을 예로 들어보겠습니다.
mkdir ~/usb
# sudo mount -r [장치] [폴더]
# 또는
# sudo mount -o ro [장치] [폴더]
sudo mount -r /dev/sde3 ~/usb
ls -l ~/usb
cat
이나 less
명령어로 내용을 볼 수 있습니다.
cat ~/usb/some-text-file.txt
/mnt/c/
경로에 연결되어 있습니다.
# 예: 윈도우 바탕화면에 복사하기
cp ~/usb/important-document.pdf /mnt/c/Users/parksik/Desktop/
sudo umount ~/usb
이처럼 -r
(read-only) 옵션을 사용하면, 마운트는 하되 절대 쓰기는 불가능한 상태로 만들 수 있습니다. 데이터를 안전하게 확인하고 싶을 때 가장 좋은 방법입니다. 다른 파티션들도 같은 방식으로 확인하시면 됩니다.