Facing issues while mounting external hard drives

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
7w1eqmmd8
Posts: 4
Joined: Sun Jul 18, 2021 3:14 pm

Facing issues while mounting external hard drives

Post by 7w1eqmmd8 »

I have connected two external hard drives of 4TB & 1TB capacities respectively to my Raspberry Pi 4B.
Both are formatted with ext4 file systems.
But upon executing the below the drive are not being listed in 'lsblk'.

Code: Select all

dietpi@RaspberryDietPi:~ $ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk 
└─sda1        8:1    0 931.5G  0 part 
sdb           8:16   0   3.7T  0 disk 
└─sdb1        8:17   0   3.7T  0 part 
mmcblk0     179:0    0  29.8G  0 disk 
├─mmcblk0p1 179:1    0   256M  0 part /boot
└─mmcblk0p2 179:2    0  29.6G  0 part /

Code: Select all

dietpi@RaspberryDietPi:~ $ sudo mount /dev/sda1 /media/Intermediary_Cache
mount: /media/Intermediary_Cache: /dev/sda1 is not a valid block device.

Code: Select all

dietpi@RaspberryDietPi:~ $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb           8:16   0  3.7T  0 disk 
└─sdb1        8:17   0  3.7T  0 part 
mmcblk0     179:0    0 29.8G  0 disk 
├─mmcblk0p1 179:1    0  256M  0 part /boot
└─mmcblk0p2 179:2    0 29.6G  0 part /
After the first drive gets 'removed' (still connected to the Pi though), the mounting of the second drive succeeds.

Code: Select all

dietpi@RaspberryDietPi:~ $ sudo mount /dev/sdb1 /media/NAS_Media
---
I also tried to adding the following entries in the /etc/fstab:
UUID=****Drive1 UUID***** /media/Intermediary_Cache ext4 defaults 0 2
UUID=****Drive2 UUID***** /media/NAS_Media ext4 defaults 0 2
Although, the above seems to successfully mount both drives after reboot momentarily, but either one of the drives gets unmounted soon after.
I also tried changing the fstab params to 'noatime,lazytime,rw 0 2' with similar results.

Also, I tried connecting the drives between different USB ports on the Pi (USB 2/3) & reformatting the drives to different filesystems(NTFS/BTRFS) with similar results as well.

I have tested both the drives on my linux PC simultaneously without any issues.

I am unsure as to what the cause of the issue is. Any help is appreciated.
Thanks
chucklesmcgee
Posts: 51
Joined: Tue Jun 02, 2020 7:19 pm

Re: Facing issues while mounting external hard drives

Post by chucklesmcgee »

Do these have their own power supplies? That's the issue I ran into. I bought a splitter cable with a second portion connecting to a USB power adapter and that fixed the issue.
7w1eqmmd8
Posts: 4
Joined: Sun Jul 18, 2021 3:14 pm

Re: Facing issues while mounting external hard drives

Post by 7w1eqmmd8 »

Yes. Both of the the drives are plugged in with their respective power supplies.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Facing issues while mounting external hard drives

Post by Joulinar »

can you check for kernel error messages

Code: Select all

dmesg -l err,crit,alert,emerg
as well let's check some information on the drives

Code: Select all

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
did you tried using dietpi-drive_manager to mount your USB drives?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
7w1eqmmd8
Posts: 4
Joined: Sun Jul 18, 2021 3:14 pm

Re: Facing issues while mounting external hard drives

Post by 7w1eqmmd8 »

I've tried mounting the drives via dietpi-drive-manager but as soon as I execute it in the shell either of the drivers get unmounted
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Facing issues while mounting external hard drives

Post by Joulinar »

means using drive manager is working fine and you are able to mount both drives?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
7w1eqmmd8
Posts: 4
Joined: Sun Jul 18, 2021 3:14 pm

Re: Facing issues while mounting external hard drives

Post by 7w1eqmmd8 »

Not quite.
Whenever I execute dietpi-drive-manager, the console freezes for sometime & when finally the manager is displayed either one of the drives get unmounted & is not visible in drive manager.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Facing issues while mounting external hard drives

Post by Joulinar »

Pls can you provide the information I have ask for viewtopic.php?p=36337&sid=a5f7148a81c3d ... e31#p36337
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply