I am trying to copy the files on my ubuntu home directory to a USB flash drive. I am following these guidelines How to access a usb flash drive from the terminal?. When I run lsblk
I get lsblk: failed to access sysfs directory: /sys/dev/block: No such file or directory
. When I run sudo blkid
I get nothing. When I run fdisk -l
I get fdisk: cannot open /proc/partitions: No such file or directory
.
When I run cd media
and ls
I get nothing. I also ran lsusb
, and I got unable to initialize libusb: -99
. Ran usb-devices
, got nothing. Same with dmesg | grep -i USB
.
Getting kinda desperate. Help would be much appreciated.
Update: I run mkdir /mnt/c
and sudo mount -t drvfs C: /mnt/c
then ls /mnt/c
and I got:
ls: cannot access 'DumpStack.log.tmp': Permission denied
ls: cannot access 'hiberfil.sys': Permission denied
ls: cannot access 'pagefile.sys': Permission denied
ls: cannot access 'swapfile.sys': Permission denied
'$Recycle.Bin' Intel ProgramData Users hpswsetup
'$WinREAgent' OneDriveTemp Programas Windows pagefile.sys
'Documents and Settings' PerfLogs Recovery adobeTemp swapfile.sys
DumpStack.log 'Program Files' 'System Volume Information' hiberfil.sys
DumpStack.log.tmp 'Program Files (x86)' System.sav hp
I guess what I did was mounting the whole windows system to WSL. How do I access my flash drive now?
/proc
and/sys
pseudo filesystems. For WSL, try this: How can I access my USB drive from my Windows Subsystem for Linux -- Ubuntu distribution? – steeldriver Aug 08 '22 at 22:44sudo mount -t drvfs E: /mnt/g
instead ofsudo mount -t drvfs G: /mnt/g
, because that's my USB flash drive's "name". If I run the later option I getmount: /mnt/g: special device G: does not exist. <3>init: (160) ERROR: UtilCreateProcessAndWait:673: /bin/mount failed with status 0x2000
. What do I do now? – Solar da Marta Aug 08 '22 at 23:02