# How mount secondary disk

**URL:** <https://forums.suse.com/t/how-mount-secondary-disk/19588>\
**Category:** SUSE Virtualization\
**Created:** [February 21, 2021, 8:34am UTC](https://forums.suse.com/t/how-mount-secondary-disk/19588 "2021-02-21T08:34:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniyar\_Kaliyev](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/daniyar_kaliyev/32/7229_2.png) [@Daniyar\_Kaliyev](https://forums.suse.com/u/Daniyar_Kaliyev)\
**Post date:** [February 21, 2021, 8:34am UTC](https://forums.suse.com/t/how-mount-secondary-disk/19588/1 "2021-02-21T08:34:53Z")

</div>

trying mount disk via fstab, but after reboot fstab is clean

> ```
> cat /etc/*release
> NAME="k3OS"
> VERSION="k3OS v0.1.3-dirty"
> ID=k3os
> ID_LIKE=alpine
> PRETTY_NAME="k3OS v0.1.3-dirty"
> VERSION_ID="v0.1.3-dirty"
> HOME_URL="https://k3os.io/"
> SUPPORT_URL="https://k3os.io/"
> BUG_REPORT_URL="https://github.com/rancher/k3os/issues"
> ISO_URL="https://github.com/rancher/k3os/releases/download/v0.1.3-dirty/k3os-amd64.iso"
> 
> ```

> harvester-52cj6 [~]# lsblk  
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT  
> loop1 7:1 0 46.7M 1 loop /usr  
> loop2 7:2 0 290M 0 loop /usr/src  
> sda 8:0 0 446.6G 0 disk  
> ├─sda1 8:1 0 47M 0 part  
> └─sda2 8:2 0 446.6G 0 part /k3os/system  
> sdb 8:16 0 16.4T 0 disk  
> └─sdb1 8:17 0 16.4T 0 part  
> sdc 8:32 0 20G 0 disk /var/lib/kubelet/pods/8e9d4cc3-7d44-43d9-8b54-f652fdfd71dc/volumes/kubernetes.io~csi/pvc-ceb5c8eb-7fa0-4f01-ac4b-14c95a7b3796/mount

---

<div class="post-metadata">

**Author:** ![Nokkie](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nokkie](https://forums.suse.com/u/Nokkie)\
**Post date:** [October 10, 2021, 10:20am UTC](https://forums.suse.com/t/how-mount-secondary-disk/19588/2 "2021-10-10T10:20:59Z")

</div>

I have created a yaml file in /var/lib/rancher/k3os/config.d/ called harvester-mount.yaml with the following content:

```auto
runCmd:
  - "sudo mount UUID=18dae58b......c7cdc94a4b /var/lib/longhorn-sdb"

```

(make sure you created the mount path)

The UUID can be found with:  
sudo lsblk -f /dev/sdb

After a reboot, Harvester will mount the 2nd disk. You then have to add it in Longhorn. That can be done by enabling Rancher in the settings of Harvester. Then go into Rancher, select the Local cluster and go into Longhorn. Add the disk by edit the node and add the path where you mounted the disk, ie. /var/lib/longhorn-sdb/

Hope this helps.
