Instructions to reinstall Grub2 on openSuse slightly incorrect

Bug #1258805 reported by Konstantin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Boot-Repair
Fix Released
Medium
YannUbuntu

Bug Description

Hi all,

Firstly I'd like to thanks the developer of the Tool. You've done a great job. I'm not sure, that the behavior I've noticed can be called bug, but I wanted to help improve the tool a little bit.

Support info link generated by the boot-repair is http://paste.ubuntu.com/6533796.

For the last 2-3 days I had to repair the openSuse 12.3 Linux Installation on my laptop after having moved the partitions from the hdd drive to the new smaller ssd drive using acronis true image 2013 software.

The initial situation was:
primary partition 400MB (ntfs, hidden), I guess it is a rescue-partion
primary partition, active; ca. 240 GB (ntfs) with the Windows 7 64bit
primary partition; (ntfs) - data partition // the rest of the 500 GB disk
extended partition
->linux swap 4 GB
->ext4 => openSuse 12.3 root - ca. 33 GB
->ext4 => /home - ca. 25 GB

I have bought 256 GB SSD and used acronis software to backup the whole drive except ntfs data partition.
I haven't tried to restore MBR and only restored the partitions with the acronis. After that I was able to boot Windows 7.

The resulting situation was:
primary partition 400MB (ntfs, hidden), I guess it is a rescue-partion
primary partition, active; ca. 120 GB (ntfs) with the Windows 7 64bit
extended partition
->linux swap 4 GB
->ext4 => openSuse 12.3 root - ca. 33 GB
->ext4 => /home - ca. 75 GB

To repair the Linux Bootloader I've used the only available DVD with the Linux Mint Nadja. After having installed boot-repair and selecting the "default repair" option, I was asked to execute two commands to reinstall grub (or better to say to remove it):
>sudo chroot "xxx/" dpkg -configure -a
>sudo chroot "xxx/" zypper -remove -y grub*-common
(I've reproduced the commands as good as I can, but I'm not sure they are written correctly)

But the commands were not successful. After a while I've found out, that the packages for grub bootloader are called "grub*" and not "grub*-common". So changing second command to the "zypper -remove -y grub*" have done the job.

The "grub*-common" name seems to come from the ubuntu universe.
And the first command also seems to be unnecessary for openSuse.

I can't remember the second step of the grub reinstallation (i.e. new installation). But I think it also wasn't correct, but the solution was the same - not "grub*-common" but "grub*" in the command line.

By the way, the os-prober generated two entries for booting windows. One of the entries proposes to boot from the windows rescue partition. I have never had this entry before.

BR/Konstantin

Revision history for this message
YannUbuntu (yannubuntu) wrote :

Thank you Konstantin.

The commands given by Boot-Repair were:
... dpkg --configure -a
... zypper remove -y grub*-common
... zypper install -y grub2

I plan to remove the first one, and replace the 2 others by:
... zypper --non-interactive remove grub*
... zypper --non-interactive install grub2

Changed in boot-repair:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → YannUbuntu (yannubuntu)
Revision history for this message
YannUbuntu (yannubuntu) wrote :

Implemented in last boot-repair version (boot-sav package 3.199~ppa39 ).

Please check and tell me if the new commands are ok.

Changed in boot-repair:
status: In Progress → Fix Committed
YannUbuntu (yannubuntu)
Changed in boot-repair:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.