Tiny Core Linux

General TC => Tiny Core on Virtual Machines => Topic started by: dpr on February 18, 2020, 08:15:08 AM

Title: [SOLVED] Mount cifs in TCL Hyper-V guest (boot2docker)
Post by: dpr on February 18, 2020, 08:15:08 AM
I'm trying to get the docker toolbox running on windows with Hyper-V as virtualization backend. More or less I'm following the steps described on this page (https://weblogs.com.pk/khurram/archive/2016/07/03/customized-boot2docker-iso-with-cifs.aspx).

My problem is that I need to mount folders from the host OS in the docker-machine guest VM. The guest VM is based on Tiny Core Linux (bootdocker (https://github.com/boot2docker/boot2docker/releases)). I installed `cifs-utils.tcz` and (out of despair) `samba.tcz`. But when I issue the mount command

   
Code: [Select]
$ mount -t cifs //192.168.99.1/test /c/test
Nothing happens but the command's return code is 1.

There is network connectivity to 192.168.99.1

Due to the lag of any additional information on the problem cause, I'm pretty much stuck. So any help on how to solve this or how get more information would be appreciated.
Title: Re: Mount cifs in TCL Hyper-V guest (boot2docker)
Post by: Rich on February 18, 2020, 08:35:32 AM
Hi dpr
... But when I issue the mount command

Code: [Select]
$ mount -t cifs //192.168.99.1/test /c/test
Nothing happens but the command's return code is 1

Shouldn't that be:
Code: [Select]
$ sudo mount -t cifs //192.168.99.1/test /c/test
Title: Re: Mount cifs in TCL Hyper-V guest (boot2docker)
Post by: dpr on February 18, 2020, 08:49:45 AM
You're correct of course. I did sudo su earlier in the session...

If I execute without elevation or being root, I get the error, that -t is only possible for root.
Title: Re: Mount cifs in TCL Hyper-V guest (boot2docker)
Post by: Rich on February 18, 2020, 09:23:54 AM
Hi dpr
After you issue the  mount  command, does this return anything useful:
Code: [Select]
dmesg | tail
Title: Re: Mount cifs in TCL Hyper-V guest (boot2docker)
Post by: dpr on February 18, 2020, 09:28:54 AM
Sigh!!

I found the problem. I installed cifs-utils from a downloaded package and not from the official repo and this seems to be missing some required bindings. I rebooted the VM and installed cifs-utils directly from repo.tinycorelinux.net (this pull samba-libs as requirement) and now it's working like a charm...
Title: Re: Mount cifs in TCL Hyper-V guest (boot2docker)
Post by: Rich on February 18, 2020, 09:48:34 AM
Hi dpr
Then I'll mark the original post as solved.