Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using Ubuntu 9.10 and Its working fine but yesterday I installed some updates from update manager and when I restart my Laptop It did not load the GRUB ( It show Grub... but without showing Booting option ubuntu 9.10 or recovery mode ........ it just got boot up and show the gnome login screen).
There is no menu.lst file in /boot/grub/
can this be a problem.
Please Help.
Actually its working fine but I have not changed my root password after installation
and I don't know the default password of root in ubuntu 9.10.
The only way I know to change it was to go to recovery mode and then droping in root shell nad changing it by passwd command.
Now grub is not loading so I'm not able to go in recovery Mode.
Please Help How can I make my Grub load and Is there any other method to change my root passwd if I dont know the old one.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by BlueSkull
Hi..
I'm using Ubuntu 9.10 and Its working fine but yesterday I installed some updates from update manager and when I restart my Laptop It did not load the GRUB ( It show Grub... but without showing Booting option ubuntu 9.10 or recovery mode ........ it just got boot up and show the gnome login screen).
There is no menu.lst file in /boot/grub/
can this be a problem.
Please Help.
Actually its working fine but I have not changed my root password after installation
and I don't know the default password of root in ubuntu 9.10.
The only way I know to change it was to go to recovery mode and then droping in root shell nad changing it by passwd command.
Now grub is not loading so I'm not able to go in recovery Mode.
Please Help How can I make my Grub load and Is there any other method to change my root passwd if I dont know the old one.
Thanks
Aduait
The menu.lst in Ubuntu 9.10 is called boot.cfg
To become root in UBUNTU 9.10 if that is what you mean use command sudo su at the same time and use you're own password.
If you can not find the error in boot.cfg post it , and we try to help you
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
I dont know much about it.
Just tell me the changes
or corrections to be made in it so that grub loads with booting options at the startup.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by BlueSkull
Its Mine grub.cfg file
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set ff2962f7-8e70-4397-8453-238f3ef31f50
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ff2962f7-8e70-4397-8453-238f3ef31f50 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
I dont know much about it.
Just tell me the changes
or corrections to be made in it so that grub loads with booting options at the startup.
Thanks
There are two thinks I do not know what you have done.
When you upgrade iF I remember it well there was a question about if it should use the local GRUb installation ore something like that .
The correct answer to that guestion is yes
Second looking to you're grub.cfg UBUNTU is installed on partition two
of you're HD .
Because (hd0,1) means installed on SDA partition 2
GRUB start counting by 0
What is the contents of partition 1 ?
In other words is UBUNTU you're only OS ?
If not post the outcome of fdisk -l (L lowercase ti)
This to know the the partitioning of you're hd and the file types
If UBUNTU is installed on the first partition than it should be (hd0,0)
You should read what it says at the beginning of grub.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
It is there for a reason. Do a grub-install instead of changing the file manually.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by BlueSkull
I have only ubuntu OS and I have installed it in 1st partition.
It was used to show booting from hd(0,0) when grub was used to load.
The output of command fdisk -l is
Code:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaa737648
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5221 41935872 83 Linux
/dev/sda2 5222 30401 202258350 b W95 FAT32
My 2nd partition is FAT32.
So to correct if it was my pc sudo su enter
password enter
nano /boot/grub/grub.cfg
And every were change (hd0,1) by (hd0,0)
ctrl O to save the changes be sure it write the changes
I made the changes
and restart my lap but grub boot options were not shown and ubuntu booted directly.
After entering my user name and password in login screen
System Hanged up.
mouse or keyboard none worked.
I have to shutdown lap by pressing shutdown key and then with live cd undo the changes.
Now its again same as before.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Than there is no other option than reinstalling UBUNTU , and when updating
beware of that question I stated before and be sure to give the correct
answer
You don't have to reinstall Ubuntu entirely just because the boot manager is failing. You went ahead and edited the grub.cfg manually although it's not to be edited. So now your in trouble.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by EricTRA
As stated before, do a
Code:
grub-install
You went ahead and edited the grub.cfg manually although it's not to be edited. So now your in trouble.
Run the grub-install.
Kind regards,
Eric
Why not ?
I can assure you that I did it already a couple of times .
Just like everything it should be done properly
But maybe you will share me you're knowledge why I should not do so.
And why every time I have done so fare everything is going great
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.