Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong capacity detected for hard drives attached to external enclosure after reboot #4050

Open
AndreaPro opened this issue Jan 5, 2021 · 0 comments

Comments

@AndreaPro
Copy link

AndreaPro commented Jan 5, 2021

Is this the right place for my bug report?
I've reported this bug that I was thinking was related to blockdev command, but the developer suggested that it is a Kernel issue

Describe the bug
I have an Orico 4 Bay enclosure that I use with 2 HDDs for now on a Rspberry Pi4 64 bit updated to the latest version of Debian Buster and running OMV.
If I turn on the enclosure and afterwards the system everything works fine. If I reboot the system, or if I turn it of and turn it on again without turning off the enclosure at the next boot the blockdev

This is the output of the command when I turn on the enclosure and power up the system afterwards:

pi@raspberrypi:~ $ sudo blockdev --getsize64 /dev/sdb
8001563222016
pi@raspberrypi:~ $ sudo df -PTh | grep /dev/sdb
/dev/sdb1      btrfs     7.3T  2.2T  5.2T  29% /srv/dev-disk-by-label-01

This is the output of the command if I reboot or if I shutdown and power on again without turning off and on the enclosure:

pi@raspberrypi:~ $ sudo blockdev --getsize64 /dev/sdc
129986248068418560
pi@raspberrypi:~ $ sudo df -PTh | grep /dev/sdc
/dev/sdc1      btrfs     7.3T  2.2T  5.2T  29% /srv/dev-disk-by-label-01

If I use the system in this condition after some minutes it becomes unstable and I have to turn everything off and back on.

To reproduce
I've tried and I experience this issue even on new OS installation of Raspberry OS 32 and 64 bits

Expected behaviour
Be able to detect the disk capacity correctly if I reboot the Pi or if I turn it off and back on again without powering off the enclosure.

System

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant