# External Hard Drive not mounted on reboot

**URL:** https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271
**Category:** General Discussion
**Created:** [2 May 2021 17:17 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271 "2021-05-02T17:17:54Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 17:17 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/1 "2021-05-02T17:17:54Z")

</div>

After last update I have a problem with my external hdd. If I reboot diet pi, hdd wont automount, I need to mount it manually after reboot. I’ve tried to reinstall dietpi, but it not helped. Any ideas?

---

<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: [2 May 2021 17:24 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/2 "2021-05-02T17:24:07Z")

</div>

Hi,

Can you share your /etc/fstab pls

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 17:38 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/3 "2021-05-02T17:38:52Z")

</div>

Now another thing, after fresh install now I’m getting this error

```nohighlight
root@DietPi:~# /etc/fstab
-bash: /etc/fstab: Permission denied

```

I did everything same like always, why now I don’t have permissions?

---

<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: [2 May 2021 17:47 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/4 "2021-05-02T17:47:55Z")

</div>

Because this is a configuration file and not something you can execute 😉

Just do cat /etc/fstab

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 17:50 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/5 "2021-05-02T17:50:13Z")

</div>

Ok, good to know )

```nohighlight
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs size=1938M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid,mode=1777

#----------------------------------------------------------------
# MISC: ecryptfs, vboxsf (VirtualBox shared folder), gluster, bind mounts
#----------------------------------------------------------------

#----------------------------------------------------------------
# SWAPFILE
#----------------------------------------------------------------

#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
PARTUUID=e8af6eb2-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=e8af6eb2-01 /boot vfat noatime,lazytime,rw 0 2
UUID=94BA918FBA916F0C /mnt/94BA918FBA916F0C fuseblk noatime,lazytime,rw,nofail,noauto,x-systemd.automount

```

---

<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: [2 May 2021 17:55 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/6 "2021-05-02T17:55:27Z")

</div>

Your disk should be mounted to /mnt/94BA918FBA916F0C correct?

What happen if you try to access /mnt/94BA918FBA916F0C right after reboot

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 18:08 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/7 "2021-05-02T18:08:02Z")

</div>

After each reboot instead of /mnt/94BA918FBA916F0C it’s looks like this. Sorry, I’m a newbie on this, if need detailed information, please write which command I need to type  
[https://paste.pics/CD98T](https://paste.pics/CD98T)

---

<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: [2 May 2021 18:12 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/8 "2021-05-02T18:12:49Z")

</div>

I’m totally confused now. You are showing a picture from dietpi-software. Did you tried to access your HDD like cd /mnt/94BA918FBA916F0C after reboot. Did it show your data?

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 18:15 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/9 "2021-05-02T18:15:08Z")

</div>

After reboot

```nohighlight
root@DietPi:~# cd /mnt/94BA918FBA916F0C
-bash: cd: /mnt/94BA918FBA916F0C: No such device

```

---

<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: [2 May 2021 18:18 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/10 "2021-05-02T18:18:02Z")

</div>

Can you share ls -la /mnt

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 18:19 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/11 "2021-05-02T18:19:32Z")

</div>

```nohighlight
root@DietPi:~# ls -la /mnt
total 20
drwxr-xr-x 6 root root 4096 May 2 18:01 .
drwxr-xr-x 18 root root 4096 Mar 25 19:59 ..
drwxr-xr-x 2 root root 0 Feb 14 2019 94BA918FBA916F0C
lrwxrwxrwx 1 root root 37 May 2 18:01 dietpi_userdata -> /mnt/94BA918FBA916F0C/dietpi_userdata
drwxrwxr-x 2 dietpi dietpi 4096 Mar 25 19:38 ftp_client
drwxrwxr-x 2 dietpi dietpi 4096 Mar 25 19:40 nfs_client
drwxrwxr-x 2 dietpi dietpi 4096 Mar 25 19:40 samba

```

---

<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: [2 May 2021 18:21 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/12 "2021-05-02T18:21:40Z")

</div>

Can you share following

```nohighlight
lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
blkid

```

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 18:22 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/13 "2021-05-02T18:22:58Z")

</div>

```nohighlight
root@DietPi:~# lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME FSTYPE LABEL SIZE RO TYPE MOUNTPOINT PARTUUID UUID
sda 5.5T 0 disk                                                
├─sda1
│ 128M 0 part 2b0235dc-2d32-4ea1-a25e-c47e1e4f1ae2
└─sda2
     ntfs Seagate
                    5.5T 0 part 703a1435-f51e-49b4-9b87-c1c61883b252 94BA918FBA916F0C
sdb 119.2G 0 disk                                                
├─sdb1
│ vfat boot 256M 0 part /boot e8af6eb2-01 DC3E-E470
└─sdb2
     ext4 rootfs
                    119G 0 part / e8af6eb2-02 a7adb26a-8b87-4729-99c8-9f5ac069d51e
root@DietPi:~# blkid
/dev/sda2: LABEL="Seagate" UUID="94BA918FBA916F0C" TYPE="ntfs" PTTYPE="atari" PARTLABEL="Basic data partition" PARTUUID="703a1435-f51e-49b4-9b87-c1c61883b252"
/dev/sdb1: LABEL_FATBOOT="boot" LABEL="boot" UUID="DC3E-E470" TYPE="vfat" PARTUUID="e8af6eb2-01"
/dev/sdb2: LABEL="rootfs" UUID="a7adb26a-8b87-4729-99c8-9f5ac069d51e" TYPE="ext4" PARTUUID="e8af6eb2-02"
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="2b0235dc-2d32-4ea1-a25e-c47e1e4f1ae2"
root@DietPi:~#

```

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [2 May 2021 19:26 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/14 "2021-05-02T19:26:06Z")

</div>

I don’t know why, but last three reboots was ok and hdd mounted automatically. Hopefully problem is gone

---

<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: [2 May 2021 19:45 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/15 "2021-05-02T19:45:50Z")

</div>

ok let’s fingers cross it is gone. At least from config point of view it seems to be fine.

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [3 May 2021 05:25 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/16 "2021-05-03T05:25:23Z")

</div>

Hmm, looks like I was celebrating to early. At Diepti-software after reboot it’s showing proper path to User data location instead of just USB drive. But it’s still not mounted after reboot. Yesterday I did fresh install but I’m still using same external hdd for data, is it possible what kind of configs are on external hdd and causing this problems? After last update I installed Home Automation software, maybe this software caused this problems. After fresh install I’m not installed this software anymore, but problem still persist.

---

<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: [3 May 2021 07:46 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/17 "2021-05-03T07:46:44Z")

</div>

can you do a reboot and try to access the drive. Once done let’s check for kernel error messages

```nohighlight
cd /mnt/94BA918FBA916F0C
dmesg -l err,crit,alert,emerg

```

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [3 May 2021 08:02 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/18 "2021-05-03T08:02:48Z")

</div>

It’s no errors

```nohighlight
root@DietPi:/mnt/94BA918FBA916F0C#

```

And it’s changed directory to hdd, but it’s still not mounted according Drive Manager

---

<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: [3 May 2021 08:08 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/19 "2021-05-03T08:08:07Z")

</div>

let’s put drive manage aside.

Just do

```nohighlight
cd /mnt/94BA918FBA916F0C #to access the drive
ls -la #to display the content
df -h #to check drives and file systems

```

---

<div class="post-metadata">

### Author: ![NoLifer](https://dietpi.com/forum/user_avatar/dietpi.com/nolifer/32/1999_2.png) [@NoLifer](https://dietpi.com/forum/u/NoLifer)
#### Post date: [3 May 2021 08:50 UTC](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271/20 "2021-05-03T08:50:49Z")

</div>

After reboot

```nohighlight
root@DietPi:~# cd /mnt/94BA918FBA916F0C #to access the drive
root@DietPi:/mnt/94BA918FBA916F0C# ls -la #to display the content
total 8
drwxr-xr-x 2 root root 4096 May 2 18:00 .
drwxr-xr-x 6 root root 4096 May 2 18:01 ..
root@DietPi:/mnt/94BA918FBA916F0C# df -h #to check drives and file systems
Filesystem Size Used Avail Use% Mounted on
/dev/root 118G 2.4G 110G 3% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 1.1M 1.9G 1% /dev/shm
tmpfs 1.9G 11M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 50M 36K 50M 1% /var/log
tmpfs 1.9G 4.0K 1.9G 1% /tmp
/dev/sdb1 253M 50M 203M 20% /boot

```

When mounted

```nohighlight
root@DietPi:/mnt/94BA918FBA916F0C# cd /mnt/94BA918FBA916F0C #to access the drive
root@DietPi:/mnt/94BA918FBA916F0C# ls -la #to display the content
total 19493
drwxrwxrwx 1 root root 0 May 30 2019 '$RECYCLE.BIN'
drwxrwxrwx 1 root root 4096 Apr 29 09:54 .
drwxr-xr-x 6 root root 4096 May 2 18:01 ..
-rwxrwxrwx 2 root root 396818 Sep 19 2018 .VolumeIcon.icns
-rwxrwxrwx 2 root root 318246 Sep 19 2018 .VolumeIcon.ico
-rwx------ 1 root root 74 May 5 2018 .___var.txt
-rwx------ 1 root root 0 May 5 2018 .___var.txt.74
-rwx------ 1 root root 74 May 5 2018 .__admin_var.txt
-rwx------ 1 root root 0 May 5 2018 .__admin_var.txt.74
-rwx------ 1 root root 23 May 5 2018 .__folder_list.txt
-rwx------ 1 root root 0 May 5 2018 .__folder_list.txt.23
-rwxrwxrwx 2 root root 4096 Sep 19 2018 ._)
drwx------ 1 root root 0 Jun 7 2019 .minidlna
-rwxrwxrwx 1 root root 33 Sep 19 2018 Autorun.inf
-rwxrwxrwx 2 root root 18033016 Sep 19 2018 Start_Here_Win.exe
drwx------ 1 root root 4096 Jun 6 2019 'System Volume Information'
-rwxrwxrwx 1 root root 1172289 Sep 19 2018 Warranty.pdf
drwxrwxr-x 1 dietpi dietpi 4096 May 3 08:31 dietpi_userdata
root@DietPi:/mnt/94BA918FBA916F0C# df -h #to check drives and file systems
Filesystem Size Used Avail Use% Mounted on
/dev/root 118G 2.4G 110G 3% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 1.1M 1.9G 1% /dev/shm
tmpfs 1.9G 11M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 50M 36K 50M 1% /var/log
tmpfs 1.9G 0 1.9G 0% /tmp
/dev/sdb1 253M 50M 203M 20% /boot
/dev/sda2 5.5T 1.9T 3.7T 34% /mnt/94BA918FBA916F0C

```

[Next page](https://dietpi.com/forum/t/external-hard-drive-not-mounted-on-reboot/5271.md?page=2)
