External Hard Drive not mounted on reboot Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
NoLifer
Posts: 14
Joined: Sun May 02, 2021 7:10 pm

External Hard Drive not mounted on reboot

Post by NoLifer »

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?
User avatar
Joulinar
Posts: 4503
Joined: Sat Nov 16, 2019 12:49 am

Re: External Hard Drive not mounted on reboot

Post by Joulinar »

Hi,

Can you share your /etc/fstab pls
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
NoLifer
Posts: 14
Joined: Sun May 02, 2021 7:10 pm

Re: External Hard Drive not mounted on reboot

Post by NoLifer »

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

Code: Select all

root@DietPi:~# /etc/fstab
-bash: /etc/fstab: Permission denied
I did everything same like always, why now I don't have permissions?
User avatar
Joulinar
Posts: 4503
Joined: Sat Nov 16, 2019 12:49 am

Re: External Hard Drive not mounted on reboot

Post by Joulinar »

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

Just do cat /etc/fstab
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
NoLifer
Posts: 14
Joined: Sun May 02, 2021 7:10 pm

Re: External Hard Drive not mounted on reboot

Post by NoLifer »

Ok, good to know )

Code: Select all

# 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
User avatar
Joulinar
Posts: 4503
Joined: Sat Nov 16, 2019 12:49 am

Re: External Hard Drive not mounted on reboot

Post by Joulinar »

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

What happen if you try to access /mnt/94BA918FBA916F0C right after reboot
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
NoLifer
Posts: 14
Joined: Sun May 02, 2021 7:10 pm

Re: External Hard Drive not mounted on reboot

Post by NoLifer »

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
User avatar
Joulinar
Posts: 4503
Joined: Sat Nov 16, 2019 12:49 am

Re: External Hard Drive not mounted on reboot

Post by Joulinar »

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?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
NoLifer
Posts: 14
Joined: Sun May 02, 2021 7:10 pm

Re: External Hard Drive not mounted on reboot

Post by NoLifer »

After reboot

Code: Select all

root@DietPi:~# cd /mnt/94BA918FBA916F0C
-bash: cd: /mnt/94BA918FBA916F0C: No such device
User avatar
Joulinar
Posts: 4503
Joined: Sat Nov 16, 2019 12:49 am

Re: External Hard Drive not mounted on reboot

Post by Joulinar »

Can you share ls -la /mnt
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply