# Debian: How to move /etc/network/interfaces into the data partition

**URL:** <https://hub.mender.io/t/debian-how-to-move-etc-network-interfaces-into-the-data-partition/1473>\
**Category:** General Discussions\
**Tags:** debian, partitioning, network\
**Created:** [January 26, 2020, 1:48pm UTC](https://hub.mender.io/t/debian-how-to-move-etc-network-interfaces-into-the-data-partition/1473 "2020-01-26T13:48:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shainert.israel](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/shainert.israel/32/438_2.png) [@shainert.israel](https://hub.mender.io/u/shainert.israel)\
**Post date:** [January 26, 2020, 1:48pm UTC](https://hub.mender.io/t/debian-how-to-move-etc-network-interfaces-into-the-data-partition/1473/1 "2020-01-26T13:48:49Z")

</div>

# Setup:

- Debian
- systemd
- The network configuration is defined by /etc/network/interfaces

# The Problem:

When working with a symbolic link to a file in the data partition, the interface is not turned up.  
Trying to add “requires” in ifup@.service on “local-fs.target” does not help.  
Doing either of the following commands works.

```auto
/sbin/ifup eno1

```

```auto
sudo systemctl start ifup@eno1

```

The difference of “systemctl --all” command output between with the real file and with the link is only “ifup@eno1.service loaded active exited ifup”

In journalctl log I see that the event “Started udev Coldplug all Devices.” appears before “Mounted /data.” and “Reached target Local File Systems.”.  
Do you think this is the reason?  
How do I set it to wait for “local-fs.target” too?

# System Details:

## uname -a

Linux debian 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86\_64 GNU/Linux

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [January 27, 2020, 8:24am UTC](https://hub.mender.io/t/debian-how-to-move-etc-network-interfaces-into-the-data-partition/1473/2 "2020-01-27T08:24:20Z")

</div>

```auto
After=data.mount

```

Might do the job.
