Cant transfer files between Windows 10 and Kali Linux

kalilinuxnewb

New Member
Joined
Dec 3, 2022
Messages
2
Reaction score
1
Credits
22
Hello,
First off I'm a newb at Linux, I'm currently using Kali Linux on Windows 10 machine using Virtual Desktop.
I'm having problems when trying to share folders from Windows 10 to Kali, my command is:

sudo mount.cifs //Win10/Users/folder/ /home/insomniac/Desktop/folder/ -o user=username

everytime i do this i get exact same error:
mount error(111): could not connect to 127.0.1.1Unable to find suitable address.

I tried doing this on root to no effect. I've already spent too many hours on this, tried researching the problem - no luck so far.

I would gladly appreciate any help.
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,640
Reaction score
1,254
Credits
10,645
sudo mount.cifs //Win10/Users/folder/ /home/insomniac/Desktop/folder/ -o user=username

What is the output of ...

ping Win10

At first glance, it appears your Linux system doesn't know the IP of your Windows system.

mount error(111): could not connect to 127.0.1.1Unable to find suitable address.

127.0.0.1 means "myself". I am pretty sure your Windows system does not have the same IP address your Windows system.
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
2,023
Reaction score
1,418
Credits
15,003
To share files from Linux to Windows, you can use a tool like Samba. Samba is a tool that allows you to share files between Linux and Windows computers. To install Samba, you can use your package manager. Once Samba is installed, you can use the smb-client command to connect to a Windows computer. To configure Samba have a look here - https://www.linuxandubuntu.com/home...rver-and-transfer-files-between-linux-windows
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,269
Reaction score
3,898
Credits
38,441
Why Kali? Why try to run before you can walk? If you are new to Linux and start with something like Linux Mint or Ubuntu.

No idea what virtualization software you are using but I think some virtualization software allows to share folders between hosts. But looking at that Kali doesn't know the name Win10 and maybe you have to open the samba ports as well on your Windows host so that your vm can access the samba ports.
 
Last edited:
OP
K

kalilinuxnewb

New Member
Joined
Dec 3, 2022
Messages
2
Reaction score
1
Credits
22
Thank You all for replying.
As to why Kali I just thought it didn't look so terrifying and you could have it on your windows PC, at the time I had no idea about other options. I also didn't know it was any harder then other versions.

I think I'll go with Samba then...
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,269
Reaction score
3,898
Credits
38,441
Start with Linux Mint or Ubuntu, if you want to learn Linux.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,640
Reaction score
1,254
Credits
10,645
To share files from Linux to Windows, you can use a tool like Samba.

I usually don't have to do a full samba install. All I usually need is cifs-utils.
 

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
399
Reaction score
312
Credits
3,636
Thank You all for replying.
As to why Kali I just thought it didn't look so terrifying and you could have it on your windows PC, at the time I had no idea about other options. I also didn't know it was any harder then other versions.

I think I'll go with Samba then...
Just in case it's not clear from your reply, Samba is a program that runs within an operating system. Kali, Ubuntu and Linux Mint are operating systems. Samba is a program that is installed on the operating system and provides cross platform file and printer sharing with MS and linux and other operating systems.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top