[opensuse-support] https://en.opensuse.org/SDB:BTRFS
My situation seems to be out of sync with that page. Brother-in-law's bad SSD originally used btrfs for 42.2, and eventually reached 15.1 in November. First I used ddrescue to clone from the bad SSD to another disk. Then I connected the other disk to a working 15.1 as sdb. These are the last steps from https://en.opensuse.org/SDB:BTRFS that I've taken: # btrfs rescue zero-log /dev/sda1 # Then try to mount the device normally. If it works, stop going. What exactly is "mount normally" with btrfs? # mount /dev/sdb2 /mnt has apparently mounted / just fine, but /mnt/home is void, empty. It should contain what needs to be rescued. Is /home that lost, or is some further mounting step(s) required? -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hello, Am Donnerstag, 6. Februar 2020, 20:17:01 CET schrieb Felix Miata:
What exactly is "mount normally" with btrfs?
# mount /dev/sdb2 /mnt
has apparently mounted / just fine, but /mnt/home is void, empty. It should contain what needs to be rescued. Is /home that lost, or is some further mounting step(s) required?
You'll need to mount the subvolume separately. Since you have mounted the "main" volume to /mnt, first do btrfs subvolume list /mnt It should give you a list with several subvolumes, one of them "@/home". Then mount that subvolume: mount -t btrfs -o subvol=/@/home,defaults /dev/sda2 /mnt/home If you still have the old layout/subvolume names, adjust the mount command accordingly. Maybe you'll need to use subvol=/mnt/... - I never tried to mount subvolumes manually ;-) As a sidenote - it would make sense to describe how to manually mount a subvolume on that wiki page. If the above commands work, can you please add them to the wiki? Regards, Christian Boltz -- Ich kriege Druck von beiden Seiten. Den technisch Bewanderten ist man immer der "Agenturheini, kein Ahnung, Hauptsache bunt" - und für die Kreativen ist man immer "Der Langweiler, der am liebsten alles SchwarzWeissTimesNew runterrasseln" würde. Beides macht das Web nicht besser. [Ratti in suse-linux] -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (2)
-
Christian Boltz
-
Felix Miata