You must run this as root!
I typed "sudo gksu grub-customizer" on terminal, entered the password. Grub customizer launched and gave the error "grub-mkconfig couldn't be executed successfully. You must run this as root!"
I thought "sudo" means running as root. I am using Natty. I reported a bug yesterday, it was successful. But today when I tried to report a bug about Linux image, I was getting the error message I am not using a genuine Ubuntu package. What does that mean? I upgraded to natty from my system.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Daniel Richter
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
After giving that error grub customizer goes away. I am unable to run it as root.
Revision history for this message
|
#2 |
sudo gksu grub-customizer
makes no sense at all. sudo is used to run tings with elevated access, gksu is ALSO for this but is to run graphical apps with elevated access. SO you should run:
sudo grub-customizer
or
gksu grub-customizer
Not
sudo gksu grub-customizer
It doesn't appear to be an official app. Where did you get it from?
Revision history for this message
|
#3 |
Revision history for this message
|
#4 |
The PPA seems to add an item in the system menu. Try using that.
Revision history for this message
|
#5 |
The primary message of this error is, that grub-mkconfig couldn't be executed successfully (but as you'll always get this message, if you don't run grub customizer as root, I thought this is a good hint).
Please try to run
`sudo grub-mkconfig` from the terminal.
Revision history for this message
|
#6 |
mkconfig can be used after a reinstall or repair attempt of Grub. Actually it's ok to run update-grub.
https:/
Revision history for this message
|
#7 |
@Sam_: Grub Customizer uses the command "grub-mkconfig" to fetch the output of the actual configuration (which operating systems are generated by the scripts…). The content of the file /boot/grub/grub.cfg is not necessary.
If Grub Customizer says that this command couldn't be executed - after running it as root - then this is because of a broken grub2 environment. So it would be helpful to see, *why* this command fails (error message), when it's executed from the command line
Revision history for this message
|
#8 |
Hello All,
actionparsnip - I had already tried sudo grub-customizer and gksu grub-customizer before trying out sudo gksu grub-customizer(Out of frustration, I was trying various command combinations to see if anything works.)
Daniel Richter, Thank You for that beautiful command `sudo grub-mkconfig` from the terminal. It actually worked. A very BIG THANKS Daniel. Your command showed all the entries on terminal but was not launching the grub customizer. I was unable to edit those entries though. After running your command, I did sudo update-grub which also completed its task without any errors.
My problem with terminal not running as root is over.(I restarted my system and none of my ubuntutweak edits or sudo update grub or synaptic removal of linux image is replicated on grub manager. I still have 18 entries.It is a different problem all together.)
Sam, thanks for those links, I have tried out most of the things there and I have an active thread on my grub problem there. http://
Revision history for this message
|
#9 |
The question is how do I launch my GC window so that I can edit the entries there? I have almost 18 entries shown on my grub manager. I am using Natty.
Revision history for this message
|
#10 |
I said you should run the grub-mkconfig command to let us see some error messages (it doesn't solve any problems)… but you say, it works… hmm seems to be more difficult then I thought.
I'll look about that this afternoon.
But in general, grub customizer works fine with natty…
Revision history for this message
|
#11 |
I did sudo grub-mkconfig, Got the following output:
vinu@vinu-
vinu@vinu-
[sudo] password for vinu:
Generating grub.cfg ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set saved_entry=
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
if loadfont /usr/share/
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
set locale_
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=20
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
Found memtest86+ image: /boot/memtest86
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
/etc/grub.
/etc/grub.
I did sudo update-grub.Output is as follows.
vinu@vinu-
[sudo] password for vinu:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found Windows 7 (loader) on /dev/sda1
Found memtest86+ image: /boot/memtest86
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda1
/etc/grub.
/etc/grub.
Next I tried the command gksu gedit /etc/fstab, it opensfstab/gedit.
I am not exactly sure what to put it in there. Is there any Linux image entries and windows loader entry? I have saved some entries on text editor. I did not do anything to fstab until I get expert opinion.
I had used grub customizer before(guess in Jan). Found it quite user friendly, but these days, I am unable to make the GC windows Launch.
Revision history for this message
|
#12 |
hmm
There are the following lines at the end of your grub-mkconfig output:
/etc/grub.
/etc/grub.
This may be the reason why grub-mkconfig returns other values than 0(?) - which is detected as error by Grub Customizer.
Please fix this problem (by editing the file /etc/grub.
Revision history for this message
|
#13 |
Here is the contents of 40_custom:
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
Revision history for this message
|
#14 |
Ah, this is the reason!
All the files in /etc/grub.d are shell scripts. So you have to preserve the default lines (at least the 2 lines on top of this file), if you want to use it as a static configuration.
Please add theese lines to the begin of this file:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
Revision history for this message
|
#15 |
I tried typing and saving the below lines
#!/bin/sh
exec tail -n +3 $0
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
Getting error message:
"Could not save the file /etc/grub.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."
Revision history for this message
|
#16 |
I could save that to desktop, and when I try copy pasting it to grub.d, the paste option doesn't work.
Revision history for this message
|
#17 |
This file is owned by root, so in order to save changes to it, you should edit it as root. Press Alt+F2, type this into the text box, and press enter:
gksu gedit /etc/grub.
Revision history for this message
|
#18 |
I am able to open it and I added the following entries. Now does this look good?
#!/bin/sh
exec tail -n +3 $0
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found memtest86+ image: /boot/memtest86
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
Revision history for this message
|
#19 |
No, please simply add the
#!/bin/sh
exec tail -n +3 $0
header - nothing else (like in your first try).
Revision history for this message
|
#20 |
Ok. Thanks. After that when I restarted, I could see another custom menu with the entries that I just added :).
So I deleted and added only the following.
Revision history for this message
|
#21 |
#!/bin/sh
exec tail -n +3 $0
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
Revision history for this message
|
#22 |
ok, and now try to run Grub Customizer!
Revision history for this message
|
#23 |
Also Daniel, someone in ubuntuforums had asked me to uninstall and reinstall grub customizer,
So I run the following commands
sudo apt-get purge grub-customizer
sudo apt-get install grub-customizer
Got the results below: How can I reinstall grub customizer?
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
hwinfo libhd16
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
grub-customizer*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 946kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 158266 files and directories currently installed.)
Removing grub-customizer ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Processing triggers for python-support ...
vinu@vinu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package grub-customizer
vinu@vinu-
Revision history for this message
|
#24 |
Maybe, you have removed the PPA…
sudo apt-add-repository ppa:danielricht
sudo apt-get update
sudo apt-get install grub-customizer
Revision history for this message
|
#25 |
Getting error:
vinu@vinu-
Executing: gpg --ignore-
gpg: requesting key 3F055C03 from hkp server keyserver.
gpg: key 3F055C03: "Launchpad PPA for Daniel Richter" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
vinu@vinu-
E: Type 'ielrichter2007
E: The list of sources could not be read.
vinu@vinu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package grub-customizer
vinu@vinu-
Revision history for this message
|
#26 |
Can you give the output of:
gedit /etc/apt/
Thanks
Revision history for this message
|
#27 |
# deb http://
ielrichter2007/
Revision history for this message
|
#28 |
I tried to add it from siftware sources but unable to.
Revision history for this message
|
#29 |
Then I'd run:
sudo rm /etc/apt/
May help
Revision history for this message
|
#30 |
When tried to open synaptic, got the following error
"E: Type 'ielrichter2007
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report." and there is a close button and synaptic closes.
Revision history for this message
|
#31 |
did you execute the commands proposed by actionparsnip before?
Revision history for this message
|
#32 |
Yes Daniel Ritcher and got the following results.Since I am using natty, I had disabled maverick updates. Now when i try to enbale it from software centre, it wont open. Nor my synaptic does anything.
vinu@vinu-
rm: cannot remove `/etc/apt/
vinu@vinu-
Executing: gpg --ignore-
gpg: requesting key 3F055C03 from hkp server keyserver.
gpg: key 3F055C03: "Launchpad PPA for Daniel Richter" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
vinu@vinu-
Get:1 http://
Get:2 http://
Ign http://
Ign http://
Get:3 http://
Ign http://
Ign http://
Get:4 http://
Ign http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Ign http://
Get:10 http://
Ign http://
Ign http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Fetched 60.0kB in 8s (7,395B/s)
Reading package lists... Done
Revision history for this message
|
#33 |
I managed to reinstall grub customizer. It is there. But when I launch it, it asks for my admin password, I type it, GC window comes n disappears withut showing any error.
Revision history for this message
|
#34 |
I am able to run gksu grub-mkconfig- it lists all the entries on terminal. Unable to launch or edit GC
Revision history for this message
|
#35 |
contents of grub.d is
#!/bin/sh
exec tail -n +3 $0
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
Revision history for this message
|
#36 |
When I try Launching GC via terminal, the GC window comes n disappears and this is what happens in the terminal.
vinu@vinu-
checking for the burg-mkconfig command…
checking for the grub-mkconfig command…
/usr/sbin/
checking for the update-grub command…
/usr/sbin/
checking for the grub-install command…
/usr/sbin/
checking for the grub-mkconfig command…
/usr/sbin/
checking for the update-grub command…
/usr/sbin/
checking for the grub-install command…
/usr/sbin/
running grub-mkconfig
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found Windows 7 (loader) on /dev/sda1
Found memtest86+ image: /boot/memtest86
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string:
aborting...
vinu@vinu-
checking for the burg-mkconfig command…
sh: hwinfo: not found
checking for the grub-mkconfig command…
/usr/sbin/
checking for the update-grub command…
/usr/sbin/
checking for the grub-install command…
/usr/sbin/
checking for the grub-mkconfig command…
/usr/sbin/
checking for the update-grub command…
/usr/sbin/
checking for the grub-install command…
/usr/sbin/
running grub-mkconfig
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found Windows 7 (loader) on /dev/sda1
Found memtest86+ image: /boot/memtest86
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string:
aborting...
Aborted (core dumped)
vinu@vinu-
Revision history for this message
|
#37 |
Apport gave the following message when GC crashed
"The problem cannot be reported:
The program crashed on an assertion failure, but the message could not be retrieved. Apport does not support reporting these crashes."
Revision history for this message
|
#38 |
What is the output of sudo grub-mkconfig now?
Revision history for this message
|
#39 |
Have you contacted the developer to inform them of this issue? I suggest you email them this flow and they may be able to pitch in.
Revision history for this message
|
#40 |
@actionparsnip
This way is ok for me ;-)
Revision history for this message
|
#41 |
vinu@vinu-
[sudo] password for vinu:
Generating grub.cfg ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set saved_entry=
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
if loadfont /usr/share/
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
set locale_
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=20
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
menuentry "Ubuntu, with Linux 2.6.35-25-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.35-25-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found memtest86+ image: /boot/memtest86
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
Found memtest86+ image: /boot/memtest86
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
### END /etc/grub.
### BEGIN /etc/grub.
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.
done
vinu@vinu-
Revision history for this message
|
#42 |
I dont get GC winodw when I run sudo- grub-mkconfig
Revision history for this message
|
#43 |
Since daniel said this is ok, no need to email I guess :)
Revision history for this message
|
#44 |
I don't know if crash is because of this, but maybe…
Grub Customizer expects menuentries are closed with a single "}" - there shouldn't be other chars on this line. So please replace the contents of your 40_custom with this:
#!/bin/sh
exec tail -n +3 $0
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
… and try again
Revision history for this message
|
#45 |
Ok.. I replaced the contents of my 40_custom with teh above script which is
#!/bin/sh
exec tail -n +3 $0
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
I save and exit.
Clicks on GC, It comes up, It loads the configuration and the window once again disappears . Apport tells me grub customizer closed unexpectedly and I try to report the problem, It gives the message
"The problem cannot be reported:
The program crashed on an assertion failure, but the message could not be retrieved. Apport does not support reporting these crashes."
Revision history for this message
|
#46 |
Basicaly I am getting the following error on terminal when I type sudo grub-customizer. (GC window opens and disappears.)
glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string:
aborting...
Aborted (core dumped)
Revision history for this message
|
#48 |
Yes… maybe. Generally, exceptions shouldn't go out.
Revision history for this message
|
#49 |
Hmm, you have a very confusing grub configuration (maybe because of the upgrade).
Please backup all the files in /etc/grub.d
and then run:
sudo rm -r /etc/grub.d/*.bak /etc/grub.d/*_proxy /etc/grub.d/bin /etc/grub.
to cleanup this directory. If this solves the problem, you should give me the backup to let me figure out, why it crashes…
Revision history for this message
|
#50 |
Got the following message for the above command You gave:
sudo rm -r /etc/grub.d/*.bak /etc/grub.d/*_proxy /etc/grub.d/bin /etc/grub.
rm: cannot remove `/etc/grub.
rm: cannot remove `/etc/grub.
rm: cannot remove `/etc/grub.d/bin': No such file or directory
rm: cannot remove `/etc/grub.
I open GC, Itloads entries and goes away :(.Same problem.
Revision history for this message
|
#51 |
I was using karmic and then lucid lynx. Recently I changed my mother board and processor. Will that cause a problem for GC or ubuntu?
Revision history for this message
|
#52 |
No, I don't think so.
Hmm… the output of grub-mkconfig contains some "_proxy" files. So I thought, there is something like this. What's the output of
ls -R /etc/grub.d
?
Revision history for this message
|
#53 |
/etc/grub.d:
00_header 10_linux 20_linux_xen 30_os-prober 41_custom
05_debian_theme 12_os-prober 20_memtest86+ 40_custom README
Readme in grub.d shows the following:
All executable files in this directory are processed in shell expansion order.
00_*: Reserved for 00_header.
10_*: Native boot entries.
20_*: Third party apps (e.g. memtest86+).
The number namespace in-between is configurable by system installer and/or
administrator. For example, you can add an entry to boot another OS as
01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
the menu; and then adjust the default setting via /etc/default/grub.
Do you want me to copy and paste the backup files back to grub.d?
Revision history for this message
|
#54 |
hmm… and sudo grub-mkconfig does still gives you the same as posted above??
Revision history for this message
|
#55 |
Backed up grub.d folder(before executing your rm-r command) contains bin, proxified scripts and some entries.
The entries are:00_
bin contains- grubcfg_proxy
proxified scripts contain :custom, linux, memtest86+
Read me contains:
All executable files in this directory are processed in shell expansion order.
00_*: Reserved for 00_header.
10_*: Native boot entries.
20_*: Third party apps (e.g. memtest86+).
The number namespace in-between is configurable by system installer and/or
administrator. For example, you can add an entry to boot another OS as
01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
the menu; and then adjust the default setting via /etc/default/grub.
Revision history for this message
|
#56 |
vinu@vinu-
[sudo] password for vinu:
Generating grub.cfg ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set saved_entry=
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
if loadfont /usr/share/
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
set locale_
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=20
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
Found memtest86+ image: /boot/memtest86
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 85a28086-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 04328e64328e5b16
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Custom Menu"{
set root=(hd0,5)
search --no-floppy --fs-uuid --set 85a28086-
configfile /boot/grub/
}
### END /etc/grub.
### BEGIN /etc/grub.
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.
done
vinu@vinu-
GC window doesnt come up
Revision history for this message
|
#57 |
Did you run the rm command multiple times? The error messages said, that you there aren't files like this. And no, don't revert it, using the backup - it looks ok.
Anyway… another reason could be your /boot/grub/grub.cfg - Grub Customizer loads it to find out, if the saved configuration is up to date.
Please take a backup of the file (/boot/
Revision history for this message
|
#58 |
Yes I did it 2 times. First I typed the command and asked for the pw it didn't do anything and then i retyped the command, it showed the results which I posted above.
vinu@vinu-
[sudo] password for vinu:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found Windows 7 (loader) on /dev/sda1
Found memtest86+ image: /boot/memtest86
Found Windows 7 (loader) on /dev/sda1
done
vinu@vinu-
Revision history for this message
|
#59 |
Hey Good new Daniel!
I just ran gksu grub-customizer. It launched teh GC window I editted the entries and saved it :) Un believable :)
Guess the update worked after all!
Revision history for this message
|
#60 |
Thanks a ton for being so patient and guiding me throughout the problem Daniel :)
My thanks to actionparsnip and Eliah kagan. Thanks for helping me out Guys!
Revision history for this message
|
#61 |
That's great.
Ok, so the problem was the 40_custom because of the menu entry containing white spaces after the closing bracket. I'll fix this - gc really shouldn't crash because of a broken configuration!
(your problem using the rm command)
Please note: rm doesn't show any messages if everything goes well (as long as the "-v" isn't given) - so no need to run it again. This is the reason, you got error messages when running it again.
Revision history for this message
|
#62 |
Next time I'll be careful in not running the same command twice :)..
So the space really matters in 40_custom!
Revision history for this message
|
#63 |
Thanks Daniel Richter, that solved my question.
Revision history for this message
|
#64 |
> I am using Natty
But this is Maverick kernel and not even the updated one, which is 2.6.35-28.50.
> Found linux image: /boot/vmlinuz-
Natty has 2.6.38x
Revision history for this message
|
#65 |
Sam I had downloaded natty way back in first week of Jan. I had update problems since then. Now my system is not getting the natty updates due to pre release freeze. I had to reinstall my grub manager due to re installation of windows. So lots of issues with updates. Hope fully can fix it after 28th April.
Revision history for this message
|
#66 |
I guess natty beta version has this kernal. I have to update it after its official release
Revision history for this message
|
#67 |
Natty never had 2.6.35x.
- Quote -
Alpha 1 includes the 2.6.37-rc3 kernel which is based on the latest mainline release candidate kernel. This is a major update from the v2.6.35 in Maverick. The kernel is expected to roll forward over time to v2.6.38 for release.
- End -
http://
http://