WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Mount cifs in TCL Hyper-V guest (boot2docker)  (Read 3369 times)

Offline dpr

  • Newbie
  • *
  • Posts: 4
[SOLVED] Mount cifs in TCL Hyper-V guest (boot2docker)
« on: February 18, 2020, 05: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.

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). 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.
« Last Edit: February 18, 2020, 06:49:35 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Mount cifs in TCL Hyper-V guest (boot2docker)
« Reply #1 on: February 18, 2020, 05: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

Offline dpr

  • Newbie
  • *
  • Posts: 4
Re: Mount cifs in TCL Hyper-V guest (boot2docker)
« Reply #2 on: February 18, 2020, 05: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Mount cifs in TCL Hyper-V guest (boot2docker)
« Reply #3 on: February 18, 2020, 06:23:54 AM »
Hi dpr
After you issue the  mount  command, does this return anything useful:
Code: [Select]
dmesg | tail

Offline dpr

  • Newbie
  • *
  • Posts: 4
Re: Mount cifs in TCL Hyper-V guest (boot2docker)
« Reply #4 on: February 18, 2020, 06: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...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Mount cifs in TCL Hyper-V guest (boot2docker)
« Reply #5 on: February 18, 2020, 06:48:34 AM »
Hi dpr
Then I'll mark the original post as solved.