Cannot mount USB HDD

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
przemko
Posts: 165
Joined: Sun Mar 15, 2020 5:40 pm

Cannot mount USB HDD

Post by przemko »

Hi, I mount my externel USB HDD 3TB where I have dietpi_userdata as /mnt/Toshiba. I point to that drive in dietpi-drive_manager and everything looks OK. After reboot I see two the same drives sda and sdb but no data in folder /mnt/Toshiba where I mount it. I try to mount both in dietpi-drive-manager but it fails, give info that mount point already exist. Now I have folder /mnt/Toshiba but no data. I see drive in dietpi-drive manager but cannot mount it. I see it in /etc/fstab. What I can do to mount that drive?
dietpi-drive-manager stuck at:

Code: Select all

root@DietPi:/# dietpi-drive_manager 
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager |  - Detected mounted drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager |  - Detected unmounted drive: /dev/sda

Regards,
Przemek
User avatar
Joulinar
Posts: 3836
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot mount USB HDD

Post by Joulinar »

usually drives are set to auto mount during first folder access. means, the HDD is not mounted during boot. It will be mounted as soon as someone is trying to access it.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 165
Joined: Sun Mar 15, 2020 5:40 pm

Re: Cannot mount USB HDD

Post by przemko »

When I go to dietpi_drive_manager I see my HDD as unmounted. When I try to mount it it has name ` /mnt/362a51c8-387b-4315-a814-8c3c2dd05f9` so I try to change to `/mnt/Toshiba` but it show info:

Code: Select all

 [WARNING]:                                                                                                           │ 
             │                                                                                                                      │ 
             │ The mount target directory already exists, however, it does not contain any files or data at this time:              │ 
             │  - /mnt/Toshiba                                                                                                      │ 
             │                                                                                                                      │ 
             │ Do you wish to ignore this warning, and, mount the drive regardless?    
So when I ignore that info is still unmounted. I don't have any entry in /etc/fsab.

Edit. OK, somehow today I mount it. Maybe I have something with that HDD. Maybe this SATA>USB adapter is worst quality.
regards.
przemko
Posts: 165
Joined: Sun Mar 15, 2020 5:40 pm

Re: Cannot mount USB HDD

Post by przemko »

Hi, @Joulinar after reboot and connect small 4GB USB my Toshiba 3TB drive umount. I reboot and now again I cannot mount it. Do You think it's something with that HDD? Can You tell me how to put entry to my /etc/fstab because I see again that drive as 34356345-346343g563y45y.... not as Toshiba. Do I need to change manually that to Toshiba and put /dev/sda?

Regards.
User avatar
Joulinar
Posts: 3836
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot mount USB HDD

Post by Joulinar »

can you post following

Code: Select all

cat /etc/fstab
lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
mount
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 165
Joined: Sun Mar 15, 2020 5:40 pm

Re: Cannot mount USB HDD

Post by przemko »

Hi, @Joulinar I think I know what was my problem. I change USB - SATA adapter. When I change to old one now it work. HDD automount on boot and everything is OK I think. I have something like that before:
Image

Now it's OK.

`cat /etc/fstab`

Code: Select all

# Please use "dietpi-drive_manager" to setup mounts
#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------


#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs size=1024M,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
#----------------------------------------------------------------
/var/swap none swap sw

#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
PARTUUID=907af7d0-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=907af7d0-01 /boot vfat noatime,lazytime,rw 0 2
UUID=362a51c8-387b-4315-a814-8c3c2dd05f94 /mnt/Toshiba ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
`lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid`

Code: Select all

NAME        FSTYPE LABEL   SIZE RO TYPE MOUNTPOINT   PARTUUID                             UUID
sda         ext4           2.7T  0 disk /mnt/Toshiba                                      362a51c8-387b-4315-a814-8c3c2dd05f94
mmcblk0                   29.7G  0 disk                                                   
├─mmcblk0p1 vfat   boot    256M  0 part /boot        907af7d0-01                          4AD7-B4D5
└─mmcblk0p2 ext4   rootfs 29.5G  0 part /            907af7d0-02                          2887d26c-6ae7-449d-9701-c5a4018755b0
`mount`

Code: Select all

/dev/mmcblk0p2 on / type ext4 (rw,noatime,lazytime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=947680k,nr_inodes=152817,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
systemd-1 on /mnt/Toshiba type autofs (rw,relatime,fd=43,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /var/log type tmpfs (rw,nosuid,nodev,noatime,lazytime,size=51200k)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,lazytime,size=1048576k)
/dev/mmcblk0p1 on /boot type vfat (rw,noatime,lazytime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda on /mnt/Toshiba type ext4 (rw,noatime,lazytime,x-systemd.automount)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
Can You tell me also is it good option to mount second HDD 6TB to my Rpi4? I want to move some data from Toshiba drive to it.

Regards,
Przemko
User avatar
Joulinar
Posts: 3836
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot mount USB HDD

Post by Joulinar »

regarding the sata adaptor. Maybe you can have a look to this viewtopic.php?p=29216#p29216
Not sure if yours have similar chipset.

And yes, you can mount an additional HDD. just ensure to specify an own new mount point. Best to have bother powered by a dedicated power suppley
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 165
Joined: Sun Mar 15, 2020 5:40 pm

Re: Cannot mount USB HDD

Post by przemko »

Thanks for Your time and help.
I try that one:
Image
maybe power supply will be good to use in some other project :)

Regards,
Przemko
Post Reply