-
Notifications
You must be signed in to change notification settings - Fork 142
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
Cant detect disk size #1194
Comments
Could you please attach a full |
I have attached dump from two different machines, both the machines have the same issue. |
Thanks for the dumps. I bet the |
Yes, i ran |
Thanks for confirming. We'll need to find some other way then, to indicate real size of the device, including unallocated space (not attached to any namespace). |
We started receiving Ubuntu reports about the issue, e.g https://bugs.launchpad.net/udisks/+bug/2038761 |
If I hadn't read this,I probably wouldn't have even checked and noticed. udisksctl info --drive SPCC_M_2e2_PCIe_SSD_30011881318 | grep Size: and sudo nvme id-ctrl /dev/nvme1n1 -H tnvmcap : 0 Practically, gnome-disks,fdisk and gparted work perfectly with the device. udisksctl info --block-device /dev/nvme1n1 | grep Size: F39 kernel 6.5.7 It seems like some kind of minor omission. |
Is this issue ever going to be solved? Facing the same on GNOME 45 ... not matter the Distro. Disk Capacity always showing unknown in system info |
Unfortunately not. Controller capacity reporting is different from namespace capacity reporting. A workaround would need to look for all attached namespaces and react to attach/detach events to calculate the resulting size. Could you also post the first four lines of |
I haven't checked the NVMe specification in details. nlbaf : 0 mc : 0 dpc : 0 dps : 0 nmic : 0 rescap : 0 fpi : 0x80 dlfeat : 1 nawun : 0 So how about a partial solution applicable in 90% end more of the cases |
The #1230 pull request should handle the simple cases. Any chance to test it? It's a bit of a hack. |
Sure, seems to be working for me Before:
After:
|
Consequence: [bug] Disk capacity or size is |
Great,works for me too.
if 1) & 2) are too laborious,then
|
On my PC for the 1st one gnome.disk-utility gives the correct size of 256GB but for the 2nd the size is null
|
Output from udisksctl for my 2 nvme disks.
|
I recently upgraded to Fedora 39 and udisks is no longer able to detect my drive size.
The version is
udisks2-2.10.1-1.fc39.x86_64
Relevant terminal output:
The text was updated successfully, but these errors were encountered: