Skip to content

Instantly share code, notes, and snippets.

@nkhine
Forked from pantelis/coreos-windows-share.sh
Created March 8, 2016 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkhine/58af3ea91a615c6c4d67 to your computer and use it in GitHub Desktop.
Save nkhine/58af3ea91a615c6c4d67 to your computer and use it in GitHub Desktop.
Mount Windows share drives on CoreOS
# WARNING - THIS IN NOT a SHELL SCRIPT - JUST a LIST of COMMANDS
# based on https://github.com/coreos/coreos-overlay/issues/595 with links updated
# Build cifs-utils in a container and copy it into /tmp on the host.
$docker run -t -i -v /tmp:/host_tmp fedora /bin/bash
# On the container bash prompt
yum groupinstall -y "Development Tools" "Development Libraries"
yum install -y tar
yum install -y bzip2
curl http://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-6.3.tar.bz2 | bunzip2 -c - | tar -xvf -
cd cifs-utils-6.3/
./configure && make
cp mount.cifs /host_tmp/
exit
#back at the host
$ sudo mkdir /mnt/foo
$ sudo /tmp/mount.cifs //198.51.100.23/foo /mnt/foo -o domain=zzz,username=xxx,password=yyy
$ mount | grep /mnt/foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment