Creating new grub.cfg with KDE 4.9.x [Solved]

Discussions Regarding Software

Moderator: Moderators

Creating new grub.cfg with KDE 4.9.x [Solved]

Postby linuxfluesterer » Tue Oct 16, 2012 18:30

Hallo,
today I've made an update with my SL X KDE 4.9.1 to KDE 4.9.2. Everything is fine (as all I see).
So then I wanted to change grub configuration in system settings of KDE (Start and Stop, Install GRUB2 Loader).
I was asked for root password (2 times) then I could change some settings (e.g. Wallpaper).
But then, when I clicked on 'ok' (or 'confirm in English?), the moment when KDE should create a new grub.cfg, I recieve the following:
Image
which means, the creation of the file /boot/grub2/grub.cfg.new has failed.
I've checked and I see, I don't have a /boot/grub2 directory . But I have a /boot/grub directory.
So, I don't really know, do I have a grub2 installed at all or still an old (legacy) one (created by Live USB stick)?
And ... can I simply rename my /boot/grub directory to /boot/grub2 and start change GRUB2 configuration again?
Sure I can backup my mbr (512 bytes) and the /boot directory, but I know that GRUB is very sensitive.
What can I do to use 'Change GRUB2' with KDE system settings?
This is my uname -a:
Code: Select all
uname -a
Linux Sabayon-X-2012 3.5.0-sabayon #1 SMP Tue Sep 11 08:32:33 UTC 2012 x86_64

Thank you in advance,

-Linuxfluesterer (I love KDE ...)
Last edited by linuxfluesterer on Mon Nov 19, 2012 11:46, edited 1 time in total.
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Creating new grub.cfg with KDE 4.9.x

Postby sabayonino » Tue Oct 16, 2012 20:08

create a symlink to grub directory

Code: Select all
# ln -s /boot/grub /boot/grub2


retry
User avatar
sabayonino
Sagely Hen
 
Posts: 2464
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Creating new grub.cfg with KDE 4.9.x

Postby linuxfluesterer » Tue Oct 16, 2012 22:37

Hallo..
I did, what you suggested.
Then, when I want to confirm again, I receive this:
Image
Means: Creation (Save) of GRUB settings failed
Details
Error in D-BUS background process. Utility can not be contacted. Connection Failure:Did not receive a reply ...
(The rest is already in English) ...
I remember this message an earlier time, but not in which topic...

-Linuxfluesterer (I love KDE ...)
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Creating new grub.cfg with KDE 4.9.x

Postby Fitzcarraldo » Wed Oct 17, 2012 12:22

If I were you I would not use System Settings to make GRUB 2 changes in SL specifically. Stick to the command line. See the thread kcm-grub2 - No valid GRUB2/BURG installation...[Solved] (especially my last post) for more information.

Gentoo GRUB 2:
Main directory used: /boot/grub2/
Directory in which GRUB 2 core.img file is stored: /boot/grub2/i386-pc/core.img
Command to install GRUB 2 in the MBR of HDD sda: grub2-install /dev/sda
Command to create grub.cfg file: grub2-mkconfig -o /boot/grub2/grub.cfg

Sabayon GRUB 2 before GRUB 2 Version 2.00:
Main directory used: /boot/grub/
Directory in which GRUB 2 core.img file is stored: /boot/grub/core.img
Command to install GRUB 2 in the MBR of HDD sda: grub2-install /dev/sda
Command to create grub.cfg file: grub-mkconfig -o /boot/grub/grub.cfg

Sabayon GRUB 2 now:
Main directory used: /boot/grub/
Directory in which GRUB 2 core.img file is stored: /boot/grub/i386-pc/core.img
Command to install GRUB 2 in the MBR of HDD sda: grub2-install /dev/sda
Command to create grub.cfg file: either 'grub-mkconfig -o /boot/grub/grub.cfg' or 'grub2-mkconfig -o /boot/grub/grub.cfg' (grub-mkconfig is a symlink to grub2-mkconfig)
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Creating new grub.cfg with KDE 4.9.x

Postby linuxfluesterer » Sat Oct 20, 2012 19:50

Hallo to all, especially Fitzcarraldo.
I've followed your instruction, you've posten in another thread.
Code: Select all
grub-mkconfig -o /boot/grub/grub.cfg
grub2-install

Both commands work without failure.
But after Boot I've got problems with the message
"Can't find block device'
I could help myself, when I entered
Code: Select all
/dev/sda7

(my boot partition) and then <Enter>.
Then boot procedure goes on and finally I can login to KDE.
I assume, when I used KCM-Grub2 before and changed something (Wallpaper), then I changed the grub files in /etc/grub.d.
Sure, I can use a backup of older /etc/grub.d folder, but that does not solve the problem, why grub-mkconfig leads into a broken grub.cfg file.
So, for the moment I've restored an older grub.cfg file, which works fine.
I need to boot smoothly and without problems, so that I can work with my KDE then.
Maybe later, I will make a new try.

Thank you for support, dear members.

-Linuxfluesterer (I love KDE ...)
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Creating new grub.cfg with KDE 4.9.x

Postby Fitzcarraldo » Sun Oct 21, 2012 18:43

You should run grub2-install before grub2-mkconfig, not the other way around.

If you wanted to install GRUB 2 (SL schema) to the MBR of sda, you would do the following:

Code: Select all
grub2-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

If you wanted to install GRUB 2 (SL schema) to the boot sector of a partition -- let's say sda3 for example -- instead of to the MBR you would do the following:

Code: Select all
mount /dev/sda3 /boot
grub2-install --force /dev/sda3
grub-mkconfig -o /boot/grub/grub.cfg
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Creating new grub.cfg with KDE 4.9.x

Postby linuxfluesterer » Mon Oct 22, 2012 12:53

Thank you again, Fitzcarraldo.
I did, what you suggested.
First:
Code: Select all
grub2-install /dev/sda

and second step:
Code: Select all
grub-mkconfig -o /boot/grub/grub.cfg

This is my result, when I bootet again (I made a photograph with a smartphone):

Image

It's the same problem. When I enter:
Code: Select all
/dev/sda7
followed by <Enter>, then the boot process continues.
And, yes, I want to install the (new) mbr in first 512 bytes of /dev/sda device, not on a partition...

For the moment, I can live with the solution, to recover my old /boot/grub/grub.cfg, sure,
but in case I want to upgrade to Kernel 3.6, I see a problem then.
And, I would like to upgrade, if this supports my SL X with all the drivers, that work fine with 3.5.
I'd like to install the 3.6 kernel with
Code: Select all
sh "sys-kernel-linux-sabayon-3.6-r1~0.etp"

Would that be the correct way to install a complete Kernel 3.6 then?

Thank you and good afternoon,

Linuxfluesterer (I love KDE ... )
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Creating new grub.cfg with KDE 4.9.x

Postby linuxfluesterer » Sun Nov 18, 2012 12:42

Yesterday, when I was at my friend and he updated his system with Rigo, there was a new kernel 3.6 included,
he received the same message like I received, though he did NOT run any grub2-mkconfig:

"Can't find block device .' It seem, the update procedure of Rigo fails...

The same error message I received, when I installed kernel 3.6 on my own laptop...

-Linuxfluesterer (I love KDE ...)
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Creating new grub.cfg with KDE 4.9.x

Postby sabayonino » Sun Nov 18, 2012 13:14

new command for grub update is :
Code: Select all
# grub2-mkconfig -o /boot/grub/grub.cfg


not grub-mkconfig ....

Grub is updated to 2.00 now not 1.99
User avatar
sabayonino
Sagely Hen
 
Posts: 2464
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Creating new grub.cfg with KDE 4.9.x

Postby linuxfluesterer » Sun Nov 18, 2012 14:24

I did it with the following (as root):
Code: Select all
~ # grub2-mkconfig -o /boot/grub/grub.cfg
grub.cfg wird erstellt …
Hintergrund gefunden: /boot/grub/neues_bild.png                           * Background
Linux-Abbild gefunden: /boot/kernel-genkernel-x86_64-3.5.0-sabayon        * my actual Kernel
initrd-Abbild gefunden: /boot/initramfs-genkernel-x86_64-3.5.0-sabayon
Linux-Abbild gefunden: /boot/kernel-genkernel-x86_64-3.4.0-sabayon
initrd-Abbild gefunden: /boot/initramfs-genkernel-x86_64-3.4.0-sabayon
  No volume groups found
Windows Recovery Environment (loader) auf /dev/sda1 gefunden
Windows 7 (loader) auf /dev/sda2 gefunden
Ubuntu 11.10 (11.10) auf /dev/sda6 gefunden
Chakra Linux (2012.09.04) auf /dev/sda9 gefunden
erledigt          * done

There is nothing different to before. The same error message appears.
And my friend started an update with Rigo,
he did not start any grub or grub2 command...
I'm honest, I'm confused about the similariness and the difference between Grub and Grub2.
Could I reinstall Grub2 with Rigo? And then reinstall Grub2 and mbr?
I want to put mbr in /dev/sda and my SL X is in partition /dev/sda7.

-Linuxfluesterer (I love KDE ...)
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Next

Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest

cron