how can set ubuntu grub menu back to defaults?

  Jwbjnwolf 19:09 05 Jan 11
Locked
Answered

I have got ubuntu netbook edition installed alongside windows xp and after some custimising i can now only chose the ubuntu option and no others.
Can i set settings back to default settings?and how?
I guess it would be via terminal commands

  GaT7 19:25 05 Jan 11

Is this click here any help about a similar problem? See post #6 for a syntax correction.

However, if you installed Ubuntu in XP (i.e. same partition using Wubi click here), the solution may be different. G

  Jwbjnwolf 20:13 05 Jan 11

I have manage to see what it says
It says that it is not a recognized device. Actualy I havnt even used the grub menu to get into xp
i used the windows os choice menu which i have annoyingly disabled. so i am stuffed
How do i configure getting it a recognized entry?
so annoying, meant to as do some school it work today which i needed to use xp but have not been able to.

  Jwbjnwolf 21:08 05 Jan 11
Answer

"#
# 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.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_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_entry="${chosen}"
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 {
}

if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=3
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/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.35-24-generic" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 04cc2bcdcc2bb7b6
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-24-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro nomodeset acpi_backlight=vendor mem=896mb acpi_skip_timer video=uvesafb:mode_option=1366x768-24,mtrr=3,scroll=ywrap splash acpi_osi=Linux pci=nocrs vga=769 quiet splash
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry "Ubuntu, Linux 2.6.35-24-generic (recovery mode)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 04cc2bcdcc2bb7b6
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-24-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single nomodeset acpi_backlight=vendor mem=896mb acpi_skip_timer video=uvesafb:mode_option=1366x768-24,mtrr=3,scroll=ywrap splash acpi_osi=Linux pci=nocrs vga=769
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry "Ubuntu, Linux 2.6.35-22-generic" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 04cc2bcdcc2bb7b6
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro nomodeset acpi_backlight=vendor mem=896mb acpi_skip_timer video=uvesafb:mode_option=1366x768-24,mtrr=3,scroll=ywrap splash acpi_osi=Linux pci=nocrs vga=769 quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Ubuntu, Linux 2.6.35-22-generic (recovery mode)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 04cc2bcdcc2bb7b6
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single nomodeset acpi_backlight=vendor mem=896mb acpi_skip_timer video=uvesafb:mode_option=1366x768-24,mtrr=3,scroll=ywrap splash acpi_osi=Linux pci=nocrs vga=769
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set c07c640c7c640010
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 04cc2bcdcc2bb7b6
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###"

  Jwbjnwolf 21:08 05 Jan 11

I do not understand what to do.
I am glad that i can access my documents and stuff on windows in ubuntu via places/computer/file system/host.
but i need to get to xp

been trying to follow this
click here
but i cannot make heads or tails out of it.
can someone go through with me about what need to do.
Be bossy if you like, say orders, i may find it easier if you do.

  Miké 21:11 05 Jan 11

Do you have your XP disc?

  Miké 21:20 05 Jan 11

The way I would go is to restore the MBR using the XP disc to boot and select 'Repair' then the command 'fixmbr'.

This will enable you to boot into XP but not Ubuntu.
We can restore this later!

  Jwbjnwolf 21:24 05 Jan 11

was preinstalled

  Jwbjnwolf 21:30 05 Jan 11

will check back tomorrow after school
about 4pm

  Jwbjnwolf 16:35 06 Jan 11

Just to let you know that
"### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set c07c640c7c640010
chainloader +1" is not a installed windows vista, it is my hidden partition.

I am actually hesitating to set it to default image if i ever do, which i know that setting it back to the state when first bought is all i need to do. I am hesitating because, if i do go to factory default, will it turn it into windows vista?
If so, i would be as mad as the mad hatter.

I am guessing that alt of you have worked out by now how much i HATE VISTA looking at most of my other threads that have mentioned vista in.

As ubuntu named classed the hidden partition is vista, is it likely that the factory default is vista?
how would i be able to find out?
and no, do not mention to put it to factory state to see because i am not.


Anyway, xp was preinstalled so therefore, i do not have the disk.

So can any linux expert go through with me of setting that as a proper boot path.

  GaT7 17:18 06 Jan 11

It looks like Miké was suggesting to use the fixmbr command at a command prompt via the XP Recovery Console (so it has nothing to do with Vista or Linux - don't make it more complicated than it already is!). click here for fixmbr instructions with screenshots - also use the fixboot command as it mentions at the end of the XP guide.

Once you can boot normally into Windows again, it may be possible to repair/reinstate the XP-Linux dual-boot options, or even reinstall Ubuntu towards the same end if need be. G

This thread is now locked and can not be replied to.

Huawei P10 review

1995-2015: How technology has changed the world in 20 years

An overview: What leading creative agencies are doing to improve diversity

New iPad, iPhone SE & Red iPhone 7 on sale now