Hello all!
I bought a “Western Digital Ultrastar DC HC560 20TB” (identical in construction: “Western Digital WD Gold 20TB”).
The following problem: I can not mount it (automatically) via LUKS/BTRFS.
Several tried scenarios I mention here, because I tried a lot and also repeated several times and sometimes different results came out:
- Formatted via Disks (Gnome): Formatted a LUKS2 encryption which releases a BTRFS partition.
Option a.) Subsequently, the partiation can not be mounted, it comes:
Error mounting filesystem [...] wrong fs type, bad option, bad superblock on /dev/mapper/luks[...] missing codepage or helper prog or other error (udisk-error-quark, 0)
Option b.) I also got the partition mounted once, but only via Gnome Disk (dont know why).
But either way the mount with crypttab/fstab entry was not possible, tried several times. Result:
Failed to mount /xyz/
Dependency failed for local system
See the screenshots for this.
- Formatted via KDE partition manager, where LUKS1+BTRFS is used. Here the same problem. Whereas here I had no problem to mount it via the frontend of the KDE partition manager the harddisk. But via the crypttab/fstab entry it doesn’t work here either.
For info:
I have never had such a problem over the last 3 years and have mounted multiple disks this way with no problems. I think I know what I am doing. But maybe I am overlooking this a bit?
I have tried mounting/unmounting the drive both via SATA, and via a SATA-to-USB adapter. Tried everything several times. I have also searched the net looking for my problem and honestly I despair
What’s important is that the first disk I got delivered was faulty, it wouldn’t spin up. Got a new one. Is there possibly massive quality issues there? Is that the problem? I don’t think so, what do you think?
Worth mentioning maybe that the hard drive caches some of its track information on a mini SSD, 64GB I think. But that should clear up the firmware, that shouldn’t affect the user hardware layer I think.
What I also found funny, I copied another working LUKS/BTRFS disc so such via “dd /sdFUNKTIONIERD to /sdNEU”, this resulted in very low transfer rates ~10MB/s and the HDD kept falling asleep and spinning up again. This went on for 30 minutes until I canceled it. Did not understand why?
Calling a “dmesg” results in:
[36206.709806] BTRFS info (device dm-8): flagging fs with big metadata feature
[36206.709812] BTRFS info (device dm-8): enabling disk space caching
[36206.709813] BTRFS error (device dm-8): cannot disable free space tree
[36206.709833] BTRFS error (device dm-8): open_ctree failed
Here attempt to check the “broken” BTRFS partition for errors:
sudo btrfs check /dev/mapper/luks-458323f0-18a4-4928-b01d-27e02d06f2e8
Opening filesystem to check...
Checking filesystem on /dev/mapper/luks-458323f0-18a4-4928-b01d-27e02d06f2e8
UUID: 2575c981-8112-497b-8a24-ee2f9850ce29
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 147456 bytes used, no error found
total csum bytes: 0
total tree bytes: 147456
total fs tree bytes: 32768
total extent tree bytes: 16384
btree space waste bytes: 139609
file data blocks allocated: 0
referenced 0
I checked the partition in the KDE partition manager via right click/check:
Check and repair partition "/dev/sde1" (18,19 TiB, Btrfs)
Operation: The file system on partition "/dev/sde1" is checked.
Command: btrfs check --repair /dev/mapper/luks-458323f0-18a4-4928-b01d-27e02d06f2e8
The file system on the partition "/dev/sde1" is checked: Successful
Operation: File system on "/dev/sde1" is maximized so that it fills the partition.
The file system on partition "/dev/sde1" already has the desired length of 39,063,646,208 sectors.
File system on "/dev/sde1" is maximized so that it fills the partition: Successful
Check and repair partition "/dev/sde1" (18.19 TiB, Btrfs): Successful
Thanks for reading this, maybe someone has an idea!
PS: I posted this topic on the German board, but since there were hardly any responses, I escalated this topic here. [Probleme mit Einbinden neuer Disk per LUKS/BTRFS - Manjaro-Linux-Forum]