Finally managed to import my pool as readonly mode. However, my main datasets did not mount, nor could I get them to mount. I tried also importing as readonly with -N flag to then manually mount individual datasets but that didn’t work either. Both my HDDs have heaps of bad sectors. I also do not have any snapshots. How can I copy the data to a new drive? Only thing I’m seeing is creating a recovery mount point, then import with altroot, could that work? Any other suggestions would be greatly appreciated. Thank you!
CPU: Intel i5-8500
16GB non-ECC RAM
Both HDDs: ST4000NM0035-1V4107 connected via SATA
ElectricEel-24.10.2.4
You really need to post full hardware details, pool details and OS version. Do you have another post or is this the first one on the issue? The better the details, the better the advice from others
My bad! I edited to include the info in the post. And this post was following another post where I was having trouble importing a pool from my corrupted drives, which I can now do (in read-only mode) but now I just need to find info on how to recover the data
Link to other thread: Disks with exported pools, cannot import; 1000 offline uncorrectable sectors on HDD
If the pool(s) are mounted read only, you would have to copy the data elsewhere. You need to let us know what options you may have. Do you have enough spare disks to create a new pool and copy the data over in the same computer? Do you have to do it over SMB to a different computer? We would only be guessing without knowing your available resources.
Well, either of those would work, in theory. But I’ll take any option which just works. Like I said, I can’t copy it to the other drive I added as a second pool, because all the datasets I need won’t mount. And therefore rsync won’t let me send them, and I think zfs only works with snapshots (of which I have none, nor can take more because of read-only). I guess I’ll try to set up SMB, assuming you can do so if the dataset isn’t mounted. Or if you think the idea I mentioned of a recovery mount point and altroot makes sense and is safe