Last night I tried to install OpenSuse in my drive. I selected expert for setting up the filesystem because I wanted it to use only what was already present, without formatting.
I have only 1 drive, which was formatted with:
sda1: Grub boot
sda2: BTRFS with @/, @/home/. @/opt, and a snapshots directory on the volume.
Kubuntu was previously installed, but I don’t like it as much as OpenSUSE, so I tried to install OpenSUSE over the existing system. I expected it to write a new @/ to the volume during the install. That’s when things began to go terribly wrong. Instead of being able to recognize what was already existing on the hard drive, the installer tried to scramble things around in an unnecessary way:
[unable to upload photo]
As you can not see from the screenshot which I can not upload (because I don’t have a url to place any photos into,) the installer tried to relabel sda2 as an XFS filesystem and marked it to be mounted on /home instead of a btrfs on /.
It also divided up the sda1 into:
/dev/sda1 Bios grub
/dev/sda2 swap
/dev/sda3 btrfs /
This was so wrong. I thought I could just edit it to the correct situation and mark it as “do not format”, but that didn’t work. Instead the install failed with:
Failure occurred during the following Action:
Mounting /dev/sda3 to /
VOLUME_MOUNT_FAILED
System error code was: -3003
/bin/mount -t btrfs '/dev/sda3' '/mnt':
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
...
Continue despite the error?
Now I can’t access that partition anymore. kdepartitiontool says the filesystem is “unknown”. I know that I can’t use the partition tool to fix that partition without formatting it, so that’s not an option.
**
So - how can I fix this to make the labels for the filesystem on sda3 actually read as btrfs again so I can recover that partition and boot this drive again? **
There must be some way to restore the btrfs label without hosing the entire partition.