Skip to content

Instantly share code, notes, and snippets.

@johnmarcou
Forked from pantelis/coreos-windows-share.sh
Created March 31, 2017 03:41
Show Gist options
  • Save johnmarcou/5b29225933550e0d54819f9894269054 to your computer and use it in GitHub Desktop.
Save johnmarcou/5b29225933550e0d54819f9894269054 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