How to define Mountpoint for Partition?

hi there,

i have 2 harddisks in the server and want to use /dev/sda => / and /dev/sdb => /home.
after reading the docs it seems that i have to mount to /mnt first, is that right?
would be nice if someone can post the config how to do it.
i would like to do a setup via cloud-config.yml directly without some shell hacking …

my config looks currently like this for the mounts:

mounts:
- ["/dev/sdb", "/mnt/sdb", "ext4", ""]
rancher:
  state:
    autoformat:
    - /dev/sda
    dev: LABEL=RANCHER_STATE

cheers maik

Hi,

Your mounts parts looks good, what do you get when you try to manually mount it after booting?

mount -t ext4 /dev/sdb /mnt/sdb```

This issue is still open for creating directories mentioned in the mounts key, that's why ```mkdir```. https://github.com/rancher/os/issues/1506