"Error:premature end of file /vmlinuz..." after upgrade to 13.2

Hi,averybody!)
I need help…
After upgrade to 13.2 and reboot system i got a message:
Booting opensuse 13.1
error: premature end of file /vmlinuz…
Loading initial ramdisk…
error: you need to load the kernel first.

Why booted 13.1 and whats is errors?
Thanks…)

I’m partly guessing, because you gave too little information.

Your file “/etc/default/grub” contains “13.1”. And, as that is a local configuration file, it is not updated when you upgrade. That probably why you are seeing “13.1” in the boot message.

My guess is that you have a separate “/boot”, and it is too small. Or your root partition is too small. So the “vmlinuz” file was not successfully copied. That could cause the “premature end of file” message.

Okay, two people here with the same diagnostics instincts: I came to the same conclusion nrickert did while still reading the original post.

On 2014-11-06 06:06, demon od wrote:
>
> Hi,averybody!)
> I need help…
> After upgrade to 13.2

How did you do it? Which method of these two?:

Online upgrade method
Offline upgrade method

> and reboot system i got a message:
> Booting opensuse 13.1

Feature. Edit the message yourself. :slight_smile:

About the rest, see the other two answers.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 26G 20G 6.5G 76% /
/dev/sdb1 493M 184M 280M 40% /boot

Online upgrade method

On 2014-11-06 13:06, demon od wrote:

> Filesystem Size Used Avail Use% Mounted on
> /dev/sdb2 26G 20G 6.5G 76% /
> /dev/sdb1 493M 184M 280M 40% /boot

Your boot is small, but not full. Unless it got cleared later in the
process.

Probably you need to run mkinitrd manually, but 13.2 uses dracut and I’m
not familiar with it.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I had the exact issue + shaky grub2. All I did was get hold of a live cd(super grub2) and booted into 13.2. Later, a simple reinstall of grub2 and updated grub.cfg fixed the issue. I didn’t dig deep to find out the reason(I know I should’ve) due to time constraint.

Hi, guys,

I’ve got the same problem: getting ‘premature end of file’ trying to boot after ‘zypper up’ (I have Tumbleweed installed).

A bit of history :slight_smile: I’m with openSUSE since 10.2 (early 2007 I suppose), on the same hardware, updating from version to version.
After each update some things get broken but until now I managed to fix most of the problems.

After updating to 13.1 I’ve got troubles getting my NVIDIA driver working and decided to switch to Nouveau, during the switch did ‘zypper up’ and got ~1500 package updates of 13.2 and now the system does not boot.
As I can see there are some changes around booting kernel in 13.2 I’m not familiar yet.
Please help me to revive the system :slight_smile:

Additional fun points: my usb keyboard is not working until kernel boots up (that got broken after updating to 12.3 and grub2), and I can’t see grub2 menu due to some mess around video modes (broken during switching to nouveau in 13.1).

Clean reinstall is a solution but that misses all the fun :wink:

Thanks in advance.

On 2014-12-30 11:46, kostik wrote:

> After updating to 13.1 I’ve got troubles getting my NVIDIA driver
> working and decided to switch to Nouveau, during the switch did ‘zypper
> up’ and got ~1500 package updates of 13.2 and now the system does not
> boot.

Were you intentionally upgrading to 13.2, or accidentally? Because
“zypper up” is not the procedure for a system upgrade. “Accident” means
that you had a mixture of repos of different releases, and that causes
havoc.

My recommendation: restore your system from your backup, which you
surely have.

No? No backup?

Ouch.

Then first boot a live and verify the amount of free space on your
system (/boot specially). If not enough, delete things.

Then provide yourself with a 13.1 or 13.2 full dvd install image (~4.7
GB), place it on a DVD or a suitable USB stick, boot it, then select
upgrade. Do not change the repos. Do not tell the thing to connect to
internet.

13.1 or 13.2: your choice, and stick to it. I’d use 13.1.

After it successfully runs and boots, you need do a zypper dup, up, and
patch, without touching the repo configuration. If graphics doesn’t
start, do not repair, yet. Run commands in text mode. Perhaps try remove
nvidia rpms, but do not try to reinstall them.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Well, that was not intentional at the moment.
I have Tumbleweed repos configured so it just brings a huge update each time the current version changes.

My guess that I need to rebuild the init ramdisk image, the question is how to do that correctly.
I.e. if there are some changes in 13.2 that caused the problem, how to take care of that.

PS: no backup of /root, yeah…

BTW: does anyone know how to change console video mode? Its kind of annoying to get to 80x25 rescue shell on a big display… Guess I wouldn’t be able to set mode via grub parameter when booting from CD…

Please post your repo list:

zypper lr -d

You should either have the Tumbleweed repos or the 13.2 repos, but not both!
And the nvidia packages are not available for Tumbleweed.

Remove either the Tumbleweed or the 13.2 repos, and run “zypper dup”, that should fix your system.
But better post the list first and wait for further advice.

My guess that I need to rebuild the init ramdisk image, the question is how to do that correctly.
I.e. if there are some changes in 13.2 that caused the problem, how to take care of that.

You could run “sudo mkinitrd”. But if boot from a CD/DVD/USB drive, you’d have to switch to your installed system first.
See here: https://forums.opensuse.org/content.php/128-Re-install-Grub2-from-DVD-Rescue
But from 13.1 upwards, you’d have to run “mount -t proc proc /proc” instead of “mount /proc”, and “mount -t sysfs sysfs /sys” instead of “mount /sys”. I would suggest to also re-install grub2 as instructed there, maybe some of its files got corrupted causing it not to be able to load the kernel.

As you cannot boot right now, you could also boot from the installation CD/DVD, select “Upgrade an existing system” and unselect all packages except for the kernel. This should fix that problem.

PS: no backup of /root, yeah…

There’s no interesting/important stuff in /root. I suppose you mean /? :wink:

BTW: does anyone know how to change console video mode? Its kind of annoying to get to 80x25 rescue shell on a big display… Guess I wouldn’t be able to set mode via grub parameter when booting from CD…

Add “video=1280x1024” (or similar) to the kernel boot options.

On 2014-12-30 16:26, kostik wrote:
>
> Well, that was not intentional at the moment.
> I have Tumbleweed repos configured so it just brings a huge update each
> time the current version changes.

If you activate the tumbleweed repos you must ask in the tumbleweed
forum. I stop here. Sorry.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)