# Is an USB external HD mounted automatically when plugged ?

**URL:** <https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901>\
**Category:** General Discussion\
**Created:** [26 January 2021 08:12 UTC](https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901 "2021-01-26T08:12:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmoulliard](https://dietpi.com/forum/user_avatar/dietpi.com/cmoulliard/32/8167_2.png) [@cmoulliard](https://dietpi.com/forum/u/cmoulliard)\
**Post date:** [26 January 2021 08:12 UTC](https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901/1 "2021-01-26T08:12:00Z")

</div>

Hi,

Is an USB external HD mounted automatically when plugged on the RockPro64 SBC by DietPi ?  
Can we change manually the /etc/fstab and add the external disk ? Will a conflict occurs at boot time if we do that ? Why such a question → I see at boot time the message “A start job is running for /dev/disk/by-uuid/9859-E8F8” ?

 ![1611648904746.jpg](https://dietpi.com/forum/uploads/default/original/2X/e/e690873d617047af0be63b34a20495bf8801a631.jpeg)  
Cheers

Charles

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [26 January 2021 10:40 UTC](https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901/2 "2021-01-26T10:40:01Z")

</div>

usb devices will get ready for the operation system during boot. Depending on what is set inside /etc/fstab, device will be mounted on boot or on first user access to that file system.

---

<div class="post-metadata">

**Author:** ![cmoulliard](https://dietpi.com/forum/user_avatar/dietpi.com/cmoulliard/32/8167_2.png) [@cmoulliard](https://dietpi.com/forum/u/cmoulliard)\
**Post date:** [26 January 2021 11:24 UTC](https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901/3 "2021-01-26T11:24:45Z")

</div>

Something else.

- Why driver\_manager imposes us to use as mount point “/mnt” - [https://github.com/MichaIng/DietPi/blob/92550558520e21579efd11e97a1fb2b0b01f7ed4/dietpi/dietpi-drive\_manager#L301](https://github.com/MichaIng/DietPi/blob/92550558520e21579efd11e97a1fb2b0b01f7ed4/dietpi/dietpi-drive_manager#L301) ?
- Could we extend the driver\_manager UI to allow to provide another volume path such as “/media/…” ?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [26 January 2021 11:41 UTC](https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901/4 "2021-01-26T11:41:51Z")

</div>

I guess the why could be explained by the developer MichaIng

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [26 January 2021 14:49 UTC](https://dietpi.com/forum/t/is-an-usb-external-hd-mounted-automatically-when-plugged/4901/5 "2021-01-26T14:49:58Z")

</div>

It was like this forever, but I agree there is not really a reason to not be more flexible.

Only thing is that e.g. dietpi-backup currently excludes external drives based on /mnt/\* path, which are usually no essential system parts but contain often large data that one does not want to have included into a system backup. So when other paths are used, those would need to be excluded manually as we cannot reasonably guess which mount is essential for the system or which holds userdata, if it is mounted somewhere below regular system paths. And maybe there are other parts of our scripts which expect that location for mounts, but nothing breaks if others are used.

/media btw mostly is used by automount implementations (mount on plug), while /mnt is more intended for manual mounts. So to avoid conflicts, /mnt is probably the better default.
