Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

Cannot unmount disk from wsl ubuntu system

$
0
0

I got a weird problem recently. I installed a new 1T SSD for my computer (Lenovo L14 Gen2a AMD 20X50019US), however, the file system of this SSD is ext4 so that I couldn't detect it in Windows11 system, but within the WSL of Windows, I could see the disk is mounted under the root directory.

hengyuan@Hengyuan-Lenovo:~$ df -hTFilesystem     Type           Size  Used Avail Use% Mounted onnone           tmpfs          3.6G  4.0K  3.6G   1% /mnt/wsldrivers        9p             280G   82G  199G  30% /usr/lib/wsl/driversnone           tmpfs          3.6G     0  3.6G   0% /usr/lib/modulesnone           overlay        3.6G     0  3.6G   0% /usr/lib/modules/5.15.153.1-microsoft-standard-WSL2/dev/sdc       ext4          1007G  7.3G  949G   1% /none           tmpfs          3.6G   88K  3.6G   1% /mnt/wslgnone           overlay        3.6G     0  3.6G   0% /usr/lib/wsl/librootfs         rootfs         3.6G  2.1M  3.6G   1% /initnone           tmpfs          3.6G  816K  3.6G   1% /runnone           tmpfs          3.6G     0  3.6G   0% /run/locknone           tmpfs          3.6G     0  3.6G   0% /run/shmtmpfs          tmpfs          4.0M     0  4.0M   0% /sys/fs/cgroupnone           overlay        3.6G   92K  3.6G   1% /mnt/wslg/versions.txtnone           overlay        3.6G   92K  3.6G   1% /mnt/wslg/docC:\            9p             280G   82G  199G  30% /mnt/cD:\            9p             196G  9.0G  187G   5% /mnt/dsnapfuse       fuse.snapfuse  128K  128K     0 100% /snap/bare/5snapfuse       fuse.snapfuse   75M   75M     0 100% /snap/core22/1380snapfuse       fuse.snapfuse   74M   74M     0 100% /snap/core22/864snapfuse       fuse.snapfuse   92M   92M     0 100% /snap/gtk-common-themes/1535snapfuse       fuse.snapfuse   41M   41M     0 100% /snap/snapd/20290snapfuse       fuse.snapfuse   39M   39M     0 100% /snap/snapd/21759snapfuse       fuse.snapfuse  132M  132M     0 100% /snap/ubuntu-desktop-installer/1276snapfuse       fuse.snapfuse  132M  132M     0 100% /snap/ubuntu-desktop-installer/1286

However, when I try to umount the new disk /dev/sdc, I got the following error

hengyuan@Hengyuan-Lenovo:~$ sudo umount /dev/sdc[sudo] password for hengyuan:umount: /snap: target is busy.

and even more confusing, when I run lsblk command, I found the disk was actually mounted under 4 directories

hengyuan@Hengyuan-Lenovo:~$ lsblkNAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTSsda    8:0    0 388.6M  1 disksdb    8:16   0     2G  0 disk [SWAP]sdc    8:32   0     1T  0 disk /snap                               /media/SSD-1T                               /mnt/wslg/distro                               /

only the /media/SSD-1T directory is the place I wanted it to mount to, and I have added UUID="9d1fd00a-147d-4c70-941d-876c5a850c18" /media/SSD-1T ext4 defaults 0 0 this line in the /etc/fstab file. However, I am not sure why it was also mounted under the other 3 directories. How can I completely unmount this disk so that I can either format it to NTFS or only mount it to /media/SSD-1T ? Thank you!


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>