# Mounting a disk

**URL:** <https://forums.suse.com/t/mounting-a-disk/3519>\
**Category:** RancherOS\
**Created:** [July 25, 2016, 1:46am UTC](https://forums.suse.com/t/mounting-a-disk/3519 "2016-07-25T01:46:43Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![bott0r](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bott0r/32/4682_2.png) [@bott0r](https://forums.suse.com/u/bott0r)\
**Post date:** [December 10, 2018, 8:18am UTC](https://forums.suse.com/t/mounting-a-disk/3519/21 "2018-12-10T08:18:10Z")

</div>

Thanks! That would be great 🙂

---

<div class="post-metadata">

**Author:** ![Jason-ZW](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jason-zw/32/4607_2.png) [@Jason-ZW](https://forums.suse.com/u/Jason-ZW)\
**Post date:** [December 11, 2018, 8:41am UTC](https://forums.suse.com/t/mounting-a-disk/3519/22 "2018-12-11T08:41:36Z")

</div>

I use RancherOS 1.4.2 `rancheros-vmware.iso` successfully mount directory form my nfs server.  
RancherOS `mount` command is build from busybox, not the GNU `mount` command, so there maybe some different.RancherOS has no `mount.nfs` & `mount.nfs4` which installed by `nfs-common` by default, so without `mount.nfs...` user need to add options.

```auto
#cloud-config
mounts:
- ["192.168.1.109:/mnt/data", "/mnt/test", "nfs4", "nolock,proto=tcp,addr=192.168.1.109"]

```

output:

```auto
[root@rancheros-nfs docker]# ls /mnt/test
1.txt

```

---

<div class="post-metadata">

**Author:** ![bott0r](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bott0r/32/4682_2.png) [@bott0r](https://forums.suse.com/u/bott0r)\
**Post date:** [December 11, 2018, 10:56am UTC](https://forums.suse.com/t/mounting-a-disk/3519/23 "2018-12-11T10:56:16Z")

</div>

I tested this on 1.4.2 it worked flawlessly, on 1.5 it does not

---

<div class="post-metadata">

**Author:** ![Jason-ZW](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jason-zw/32/4607_2.png) [@Jason-ZW](https://forums.suse.com/u/Jason-ZW)\
**Post date:** [December 12, 2018, 5:17am UTC](https://forums.suse.com/t/mounting-a-disk/3519/24 "2018-12-12T05:17:07Z")

</div>

I also try on `1.5.0-rc1` rancheros.iso, the result is success, maybe needs more testing.

```auto
[root@rancher rancher]# ros -v
version v1.5.0-rc1 from os image rancher/os:v1.5.0-rc1

```

```auto
[root@rancher rancher]# ros c export
mounts:
- - 192.168.1.79:/mnt/data
  - /mnt/test
  - nfs4
  - ""
rancher:
  environment:
    EXTRA_CMDLINE: /init
  services_include:
    open-vm-tools: true
  state:
    dev: LABEL=RANCHER_STATE
    wait: true
ssh_authorized_keys: []

```

```auto
[root@rancher rancher]# df -h
Filesystem Size Used Available Use% Mounted on
overlay 7.4G 773.4M 6.3G 11% /
tmpfs 930.9M 0 930.9M 0% /dev
tmpfs 986.4M 0 986.4M 0% /sys/fs/cgroup
/dev/sda1 7.4G 773.4M 6.3G 11% /opt
/dev/sda1 7.4G 773.4M 6.3G 11% /mnt
/dev/sda1 7.4G 773.4M 6.3G 11% /home
none 986.4M 876.0K 985.5M 0% /run
/dev/sda1 7.4G 773.4M 6.3G 11% /media
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/resolv.conf
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/selinux
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/lib/firmware
none 986.4M 876.0K 985.5M 0% /var/run
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/logrotate.d
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/lib/modules
/dev/sda1 7.4G 773.4M 6.3G 11% /var/log
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/sbin/iptables
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/docker
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/hosts
devtmpfs 930.9M 0 930.9M 0% /host/dev
shm 64.0M 0 64.0M 0% /host/dev/shm
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/hostname
shm 64.0M 0 64.0M 0% /dev/shm
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/bin/ros
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/kubelet
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/docker
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/boot2docker
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/rancher
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/share/ros
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/bin/system-docker-runc
/dev/sda1 7.4G 773.4M 6.3G 11% /usr/bin/system-docker
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/m-user-docker
/dev/sda1 7.4G 773.4M 6.3G 11% /etc/ssl/certs/ca-certificates.crt.rancher
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/rancher/conf
/dev/sda1 7.4G 773.4M 6.3G 11% /var/lib/rancher/cache
devtmpfs 930.9M 0 930.9M 0% /dev
shm 64.0M 0 64.0M 0% /dev/shm
192.168.1.79:/mnt/data
                         18.6G 1.5G 16.1G 9% /mnt/test

```

---

<div class="post-metadata">

**Author:** ![bott0r](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bott0r/32/4682_2.png) [@bott0r](https://forums.suse.com/u/bott0r)\
**Post date:** [December 12, 2018, 6:38am UTC](https://forums.suse.com/t/mounting-a-disk/3519/25 "2018-12-12T06:38:58Z")

</div>

mhh not really sure what to try next.

---

<div class="post-metadata">

**Author:** ![losty](https://avatars.discourse-cdn.com/v4/letter/l/85f322/32.png) [@losty](https://forums.suse.com/u/losty)\
**Post date:** [January 18, 2019, 8:36pm UTC](https://forums.suse.com/t/mounting-a-disk/3519/26 "2019-01-18T20:36:22Z")

</div>

Found this: [https://github.com/rancher/os/issues/2606](https://github.com/rancher/os/issues/2606) …makes sense?

---

<div class="post-metadata">

**Author:** ![Niklas\_Halonen](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/niklas_halonen/32/5440_2.png) [@Niklas\_Halonen](https://forums.suse.com/u/Niklas_Halonen)\
**Post date:** [August 1, 2019, 7:23pm UTC](https://forums.suse.com/t/mounting-a-disk/3519/27 "2019-08-01T19:23:19Z")

</div>

Okay, but how do I define a mount using the disk’s uuid?

[Previous page](https://forums.suse.com/t/mounting-a-disk/3519.md?page=1)
