# How to define Mountpoint for Partition?

**URL:** <https://forums.suse.com/t/how-to-define-mountpoint-for-partition/6264>\
**Category:** RancherOS\
**Created:** [April 28, 2017, 4:01pm UTC](https://forums.suse.com/t/how-to-define-mountpoint-for-partition/6264 "2017-04-28T16:01:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maik](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/maik/32/2086_2.png) [@maik](https://forums.suse.com/u/maik)\
**Post date:** [April 28, 2017, 4:01pm UTC](https://forums.suse.com/t/how-to-define-mountpoint-for-partition/6264/1 "2017-04-28T16:01:47Z")

</div>

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:

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

```

cheers maik

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [May 29, 2017, 12:13pm UTC](https://forums.suse.com/t/how-to-define-mountpoint-for-partition/6264/3 "2017-05-29T12:13:38Z")

</div>

Hi,

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

````auto
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
````
