How to repair a BTRFS partition?

Apart from the additional two you mentioned, there are four main 13.2 repos: Oss, Update (for Oss), Non-Oss, and Update-Non-Oss.

If still not sure, you should post the result using “CODE tags” after running this command in a terminal: zypper lr -d

Any of the previous contributors can check it and reply. :wink:

# | Alias                        | Name                         | Enabled | Refresh | Priority | Type   | URI                                                             | Service
--+------------------------------+------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------+--------
1 | download.nvidia.com-opensuse | nVidia Graphics Drivers      | Yes     | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/13.2/                       |        
2 | download.opensuse.org-update | Main Update Repository       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2/                       |        
3 | ftp.gwdg.de-suse             | Packman Repository           | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.2/        |        
4 | repo-debug                   | openSUSE-13.2-Debug          | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.2/repo/oss/  |        
5 | repo-debug-update            | openSUSE-13.2-Update-Debug   | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2/                 |        
6 | repo-non-oss                 | openSUSE-13.2-Non-Oss        | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/non-oss/    |        
7 | repo-oss                     | openSUSE-13.2-Oss            | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/oss/        |        
8 | repo-source                  | openSUSE-13.2-Source         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.2/repo/oss/ |        
9 | repo-update-non-oss          | openSUSE-13.2-Update-Non-Oss | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2-non-oss/               |    

I’m wondering if there are redundant ones there. I’ve made that mistake before.

Looks fine to me. Just concentrate on those that are Enabled: Yes. There are six of them. OSS and non-OSS, Update and non-OSS Update, Packman and Nvidia. Perfect!

I’m afraid this isn’t the end of things.

The repair worked well, and I’ve spent this afternoon working on the computer. Before finishing and going to eat, I decided to do the vast number of updates that I had been alerted to. I ran the updates, which all installed and I was told my system was up to date. I also received the message that I had to restart in order to implement the kernel changes.

I restarted the machine, got the grub menu, chose SuSE and the screen went blank. There was no response at all. I swirtched the machine off and booted with the Tumbleweed rescue disk. Sure enough, when I checked the btrfs partition I got the messages


root 267 root dir 286 error
root 267 inode 256 errors 200, dir isize wrong

Running btrfs check --repair did not get riid of this error, and attempts at a reboot from the hard drive still produce the blank screen.

The only good news is that the Windows option has reappeared on the grub menu, and Windows appears to be working. This, as I understand it, confirms that the problem lies with the btrfs partition.

Any idea of how to proceed now?

I shouldn’t panic and post.

I’ve rebooted and used the previous version of the kernel and this boots okay.

So how do I remove a kernel that I don’t want? I was told this is possible in Yast but I’ve never done it.

And is this a known error?

On 2015-05-03 21:06, johngwalker wrote:

> So how do I remove a kernel that I don’t want? I was told this is
> possible in Yast but I’ve never done it.

What exact versions are those? The one that works and the one that doesn’t.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

I would also like to see first the answer to the Carlos question!

You can do a deletion in YaST Software Management. For example, Search on kernel-desktop. Then click the Versions tab, lower down on the right-hand side to see those installed. You can click the box against the kernel version to be removed - it changes to a cross. Then you can “Accept”. However before you do all that, go to the Installation Summary and see if there is anything waiting to update, as that will also happen when you hit “Accept”.

PS. Before any deletion is attempted: There was a kernel update from 3.16.6 to 3.16.7, so both versions should be installed. The Technical Data tab in YaST Software will tell you exactly when the update was installed, then you may know when the btrfs corruption occurred relative to that point.

There are four versions of the kernel on the advanced menu:

3.16.7-21 is the default one. This gives a blank screen and no response if I boot it.

3.16.7-13 works.

3.16.7-7 and 3.16.6-2 both give a blank screen and no response.

So I have one working kernel and three which give all the signs of doing nothing.

Strange, I’m not seeing 3.16.7-13 listed in YaST, so what is showing as the source repo for that (versions tab again)?

I see the other three, but I must have removed 3.16.6-2.

@System

Yast actually gives the version as 3.16.7-13.2-x86_64. The other three end in .1-x86_64.

Thanks, but it is not in the standard repos here and btw I installed using the network CD. I’ve never seen @system as a source repo, unless it refers to the DVD?
Surely the DVD would contain a 3.16.6 version. Where did that version come from, I wonder and what does it tell you on the Technical Data tab for that version?

Yes, the other three end in .1 of the minor version (after the “-”)

I suspect it came from the upgrade I ran when I first had problems. The Technical Data only has information for the last version.

But, given the behaviour of the other versions, I’m glad I have it.

Ok, but at least to save me searching back through two threads, what source did you use for that upgrade when you first had problems? That version is not in the official repos i.e. Oss and Update for 13.2, so without that info there is no answer to your question re known problem except “it is unknown”. The next kernel update(s) could break your system again and again. I suggest you consider re-installing at your convenience as soon as…

I don’t see this problem on my 13.2 with btrfs and standard kernel updates, albeit in a VM. According to the change log for kernel-desktop 3.16.7-21, there were fixes last applied to btrfs on 8th April.

I can only suspect that this rogue kernel 3.16.7-13 [of no known address :] made some changes to the btrfs partition that the normal openSUSE kernel cannot deal with. Maybe someone else will have a clue to its origin?

On 2015-05-04 00:46, consused wrote:

> I can only suspect that this rogue kernel 3.16.7-13 [of no known address
> :] made some changes to the btrfs partition that the normal openSUSE
> kernel cannot deal with. Maybe someone else will have a clue to its
> origin?

rpm -qi exact_package_name

might say something…


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

The upgrade from disk that I ran was just after I had the problem with the btrfs partition. What happened was than I ran an upgrade from an alert that then asked for a restart, but when I restarted I got the same as the current problem: I got a blank screen and no apparent response. I then tried the previous version of the kernel and got the error message that turned out to be a symptom of the corruption on the btrfs partition.

Before we realised that it was a problem with the btrfs partition it was suggested to me that I should try upgrading using the latest .iso file on the openSuSE website, so that’s what I did. That, of course, did not solve the problem of the OS being loaded readonly, but that’s how, I think, this version of the kernel got installed.

I’m not sure you can describe a version of the kernel that came from the suse website, in an official .iso file, as “rogue”. It is, after all, the one that’s working!

That “disk” is a bit vague, so must assume it’s the DVD being deployed.

What happened was than I ran an upgrade from an alert that then asked for a restart, but when I restarted I got the same as the current problem: I got a blank screen and no apparent response. I then tried the previous version of the kernel and got the error message that turned out to be a symptom of the corruption on the btrfs partition.

So that is all after the update by DVD? The desktop notifier/updater (e.g KDE’s Apper, whatever) tells you updates are available, you make them, a restart is required (possibly the result of kernel update to latest 3.16.7-21…) and it failed.

Before we realised that it was a problem with the btrfs partition it was suggested to me that I should try upgrading using the latest .iso file on the openSuSE website, so that’s what I did. That, of course, did not solve the problem of the OS being loaded readonly, but that’s how, I think, this version of the kernel got installed.

Ah, here you address my question about the source of the working kernel (3.16.7-13.2): “the latest .iso file on the openSuSE website”. Well from the download page, it seems to be named “openSUSE-13.2-DVD-x86_64.iso”. We could assume that is the likely source of your working 3.16.7-13.2 kernel, or:

However, there is the recent suggestion from Carlos to try that rpm command in a terminal. You could also try firing up YaST on your system after placing the DVD in the drive (do NOT reboot), it should be picked up as a repo (if still in the repo list). Failing that, let me introduce you to the log at /var/log/zypp/history, where all package installations, updates, and removals are logged, dated and timed. Start from the end, working back, or use search/find on “3.16.7-13.2”.

Once we identify the source, the “rogue” vanishes ;).

Name        : kernel-desktop
Version     : 3.16.7
Release     : 7.1
Architecture: x86_64
Install Date: Fri 23 Jan 2015 15:54:14 GMT
Group       : System/Kernel
Size        : 226211821
License     : GPL-2.0
Signature   : RSA/SHA256, Sun 21 Dec 2014 11:54:39 GMT, Key ID b88b2fd43dbdc284
Source RPM  : kernel-desktop-3.16.7-7.1.nosrc.rpm
Build Date  : Wed 17 Dec 2014 23:12:22 GMT
Build Host  : build31
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://www.kernel.org/
Summary     : Kernel optimized for the desktop
Description :
This kernel is optimized for the desktop. It is configured for lower latency
and has many of the features that aren't usually used on desktop machines
disabled.








                                                                                                                                                                                                     
                                                                                                                                                                                                      



Source Timestamp: 2014-12-17 19:00:44 +0100
GIT Revision: 762f27a4917d1d96fb6234c54b1a524f85a2cf0c
GIT Branch: openSUSE-13.2
Distribution: openSUSE 13.2
Name        : kernel-desktop
Version     : 3.16.7
Release     : 13.2
Architecture: x86_64
Install Date: Mon 13 Apr 2015 20:51:01 BST
Group       : System/Kernel
Size        : 227424252
License     : GPL-2.0
Signature   : RSA/SHA256, Mon 13 Apr 2015 12:23:40 BST, Key ID b88b2fd43dbdc284
Source RPM  : kernel-desktop-3.16.7-13.2.nosrc.rpm
Build Date  : Fri 20 Mar 2015 23:48:32 GMT
Build Host  : build34
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://www.kernel.org/
Summary     : Kernel optimized for the desktop
Description :
This kernel is optimized for the desktop. It is configured for lower latency
and has many of the features that aren't usually used on desktop machines
disabled.













Source Timestamp: 2015-03-18 18:31:15 +0100
GIT Revision: ba2afaba88645e6b75094d510bdf9ad00937b0ff
GIT Branch: openSUSE-13.2
Distribution: openSUSE 13.2
Name        : kernel-desktop
Version     : 3.16.6
Release     : 2.1
Architecture: x86_64
Install Date: Tue 21 Apr 2015 17:25:54 BST
Group       : System/Kernel
Size        : 226201512
License     : GPL-2.0
Signature   : RSA/SHA256, Wed 22 Oct 2014 09:39:10 BST, Key ID b88b2fd43dbdc284
Source RPM  : kernel-desktop-3.16.6-2.1.nosrc.rpm
Build Date  : Wed 22 Oct 2014 09:33:10 BST
Build Host  : cloud117
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://www.kernel.org/
Summary     : Kernel optimized for the desktop
Description :
This kernel is optimized for the desktop. It is configured for lower latency
and has many of the features that aren't usually used on desktop machines
disabled.













Source Timestamp: 2014-10-20 15:47:22 +0200
GIT Revision: feb42eacae8d76252ab69a58d05a0be2cebd8a08
GIT Branch: openSUSE-13.2
Distribution: openSUSE 13.2
Name        : kernel-desktop
Version     : 3.16.7
Release     : 21.1
Architecture: x86_64
Install Date: Sun 03 May 2015 18:49:08 BST
Group       : System/Kernel
Size        : 227416831
License     : GPL-2.0
Signature   : RSA/SHA256, Wed 22 Apr 2015 12:30:13 BST, Key ID b88b2fd43dbdc284
Source RPM  : kernel-desktop-3.16.7-21.1.nosrc.rpm
Build Date  : Tue 14 Apr 2015 18:15:50 BST
Build Host  : build77
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://www.kernel.org/
Summary     : Kernel optimized for the desktop
Description :
This kernel is optimized for the desktop. It is configured for lower latency
and has many of the features that aren't usually used on desktop machines
disabled.


Dos the above tell anyone anything?

Thank you for introducing me. It’s a very interesting file. Here is the relevant ouput from /var/log/zypp/history. It includes everything from the date that version 3.16.7-13.2 was installed.

   [LEFT]
 [/LEFT] [LEFT]# 2015-04-13 20:52:13 kernel-desktop-3.16.7-13.2.x86_64.rpm installed ok[/LEFT] [LEFT]# Additional rpm output:[/LEFT] [LEFT]# Creating initrd: /boot/initrd-3.16.7-13-desktop[/LEFT] [LEFT]# Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-3.16.7-13-desktop 3.16.7-13-desktop[/LEFT] [LEFT]# dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found![/LEFT] [LEFT]# dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found![/LEFT] [LEFT]# dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found![/LEFT] [LEFT]# dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found![/LEFT] [LEFT]# dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found![/LEFT] [LEFT]# dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found![/LEFT] [LEFT]# *** Including module: bash ***[/LEFT] [LEFT]# *** Including module: warpclock ***[/LEFT] [LEFT]# *** Including module: i18n ***[/LEFT] [LEFT]# *** Including module: ifcfg ***[/LEFT] [LEFT]# *** Including module: drm ***[/LEFT] [LEFT]# *** Including module: plymouth ***[/LEFT] [LEFT]# *** Including module: btrfs ***[/LEFT] [LEFT]# *** Including module: kernel-modules ***[/LEFT] [LEFT]# Omitting driver i2o_scsi[/LEFT] [LEFT]# *** Including module: resume ***[/LEFT] [LEFT]# *** Including module: rootfs-block ***[/LEFT] [LEFT]# *** Including module: terminfo ***[/LEFT] [LEFT]# *** Including module: udev-rules ***[/LEFT] [LEFT]# Skipping udev rule: 91-permissions.rules[/LEFT] [LEFT]# Skipping udev rule: 80-drivers-modprobe.rules[/LEFT] [LEFT]# *** Including module: systemd ***[/LEFT] [LEFT]# *** Including module: usrmount ***[/LEFT] [LEFT]# *** Including module: base ***[/LEFT] [LEFT]# *** Including module: fs-lib ***[/LEFT] [LEFT]# *** Including module: shutdown ***[/LEFT] [LEFT]# *** Including module: suse ***[/LEFT] [LEFT]# *** Including modules done ***[/LEFT] [LEFT]# *** Installing kernel module dependencies and firmware ***[/LEFT] [LEFT]# *** Installing kernel module dependencies and firmware done ***[/LEFT] [LEFT]# *** Resolving executable dependencies ***[/LEFT] [LEFT]# *** Resolving executable dependencies done***[/LEFT] [LEFT]# *** Hardlinking files ***[/LEFT] [LEFT]# *** Hardlinking files done ***[/LEFT] [LEFT]# *** Stripping files ***[/LEFT] [LEFT]# *** Stripping files done ***[/LEFT] [LEFT]# *** Generating early-microcode cpio image ***[/LEFT] [LEFT]# *** Constructing GenuineIntel.bin ****[/LEFT] [LEFT]# *** Store current command line parameters ***[/LEFT] [LEFT]# Stored kernel commandline:[/LEFT] [LEFT]#  resume=UUID=39757ba7-8747-4d68-a995-91ef3e3e3093[/LEFT] [LEFT]# root=UUID=b1506253-eaf3-4ccb-93aa-55984043be4b rootflags=rw,relatime,space_cache rootfstype=btrfs[/LEFT] [LEFT]# *** Creating image file ***[/LEFT] [LEFT]# *** Creating image file done ***[/LEFT] [LEFT]# Update bootloader...[/LEFT] [LEFT]#  [/LEFT] [LEFT]2015-04-13 20:52:13|install|kernel-desktop|3.16.7-13.2|x86_64||download.opensuse.org-update|143352872d6dbdbf8c38daffee5cf07af4cd9069bf970c297a64beaa4594dd32|[/LEFT] [LEFT]2015-04-13 20:52:14|install|kernel-macros|3.16.7-13.1|noarch||download.opensuse.org-update|ef6dab794fedf37019d9b0a0453796b3ceda12d5658387e27d063df9d5264cd5|[/LEFT] [LEFT]2015-04-13 20:52:56|install|bbswitch-kmp-desktop|0.8_k3.16.7_13-3.6.6|x86_64||download.opensuse.org-update|05ac0a66f618d0dc05366efc4e3bb590336f13500892c262e0307a4890b42a9f|[/LEFT] [LEFT]2015-04-13 20:53:05|install|kernel-devel|3.16.7-13.1|noarch||download.opensuse.org-update|62fb63bc8cd128327c14cb379de2df266a913809747c659c7bb8f808b2a65c6b|[/LEFT] [LEFT]2015-04-13 20:53:06|install|bbswitch|0.8-3.6.6|x86_64||download.opensuse.org-update|47fcab35ab8f2cf063a77f168fd2b1efccc67848191b8f7487cf4702577aed8c|[/LEFT] [LEFT]# 2015-04-13 20:53:09 kernel-pae-devel-3.16.7-13.2.i686.rpm installed ok[/LEFT] [LEFT]# Additional rpm output:[/LEFT] [LEFT]# Changing symlink /usr/src/linux-obj/i386/pae from ../../linux-3.16.7-7-obj/i386/pae to ../../linux-3.16.7-13-obj/i386/pae[/LEFT] [LEFT]#  [/LEFT] [LEFT]2015-04-13 20:53:09|install|kernel-pae-devel|3.16.7-13.2|i686||download.opensuse.org-update|3deb5c2f4b9ce58a0482a8420bfe85fb58f466b1286104086313421d1be2db88|[/LEFT] [LEFT]# 2015-04-13 20:53:10 kernel-desktop-devel-3.16.7-13.2.x86_64.rpm installed ok[/LEFT] [LEFT]# Additional rpm output:[/LEFT] [LEFT]# Changing symlink /usr/src/linux-obj/x86_64/desktop from ../../linux-3.16.7-7-obj/x86_64/desktop to ../../linux-3.16.7-13-obj/x86_64/desktop[/LEFT] [LEFT]#  [/LEFT] [LEFT]2015-04-13 20:53:10|install|kernel-desktop-devel|3.16.7-13.2|x86_64||download.opensuse.org-update|dee27e8b3191b1730df4ea8258b53d404ccb86fcc4690af1dbf5c353595041ef|[/LEFT] [LEFT]# 2015-04-13 20:53:11 kernel-default-devel-3.16.7-13.3.x86_64.rpm installed ok[/LEFT] [LEFT]# Additional rpm output:[/LEFT] [LEFT]# Changing symlink /usr/src/linux-obj/x86_64/default from ../../linux-3.16.7-7-obj/x86_64/default to ../../linux-3.16.7-13-obj/x86_64/default[/LEFT] [LEFT]#  [/LEFT] [LEFT]2015-04-13 20:53:11|install|kernel-default-devel|3.16.7-13.3|x86_64||download.opensuse.org-update|2d6aff7f0d702d14ee0f5af191ba9a999a94e68448ee071c0a4bba4fa313a25b|[/LEFT] [LEFT]
 [/LEFT]

YaST did not pick up the DVD as a repo, by the way. It still said the original of the kernel was @System, even with the DVD in the machine.