Ubuntu :: Can't Update Grub - /etc/default/grub: 19: E: Not Found
Nov 12, 2010
I've been trying change the default OS in GRUB. I changed the value for GRUB_DEFAULT in etc/default/grub. However, when I run update-grub, I get the following error:
I foolishly let Ubuntu update grub yesterday on my Wubi installation and now cannot boot:First I get the error:Error: unknown command - loadfront.Error: File not found then the system reboots almost immediately so there is no chance to get to the grub prompt.I assume my choices are 1) restore from backup (I have one) or 2) boot from a LiveCD and edit grub (I don't know what changes to make).
But I would rather be able to update grub in the future along with other Ubuntu updates, so I'm really hoping someone knows what the error is in this last update and whether it will be fixed.
I have done the kernel compilation for linux-2.6.38.5 I have perform all the steps well ,once i am updating in /boot/ grub/menu.lst & giving command update-grub it showing this error
Code: [root@localhost grub]# update-grub bash: update-grub: command not found I have install it also through Code: yum install grub I gave this command Code: grub-setup --version still same error ]grub-setup not found
I gave sda1-2 for windows and sda 3-4-5 on an extended partition for my linux OS. I installed ubuntu on sda 7 (when I go into disk utilities it shows up as sda 7 idk why) alongside another ubuntu on sda 5 ( EXTENDEDPARTITION : sda 5-6-7 ) so I could remove mandriva bootloader.Since I did, I removed ubuntu (sda 7) since it wasn't necessary but after it gave me the grub file not found.Obviously yes, since GRUB was installed from sda 7 but i have another grub.conf on sda 5 and I would like to know how to change the path of the grub reader to sda 5? or must I install all over again de grub loader?
I had to dual boot my computer again with windows unfortunately for school. This is something I've dealt with dozens of times in the past but when I try to recover grub 2 with the ubuntu live cd I get this:
I have an old BIOS (only 149 GB detected in 160 GB drive). I have installed very few OS as a result - Windows in first 80 GB , 2 distros (20 GB each) in next 40 MB which is within the 149 GB. On issue of "update-grub" grub seems to detect all OS and generates grub.cfg. But on boot , one distro does not appear in the menu.
I'm currently setting up a dell server with hardware raid 1 on sas 6r. i got 4 sas installed on the server and configured to raid 1 as stated below, array 1: slot 0 & 1
array 2: slot 2 & 3
during the installation, the installer detect the array 2 as sda and array 1 as sdb.. so i proceed with installation on array 2. after completed the installation, the first reboot lead me to a 'grub-rescue" prompt. by following the guide at url Mode, i've noticed that the boot folder has changed to (hd1,1), which i believe it has changed to sdb1. default root device shows that prefix=(hd0,1)/grub.
I was unaware of the difficulties of installing and booting Ubuntu from the "onboard raid" that the NVIDIA nForce chipsets provide. However, I've managed to get it working reliably with one single caveat:
When update-grub builds the grub.cfg, it refers to all of my partitions as follows:
Code: menuentry 'Ubuntu, with Linux 2.6.35-27-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(/dev/mapper/nvidia_caifaefg,msdos5)'
[Code]...
So I'm guessing that the whole nvidia_blah,msdos5 is because of that. However, it doesn't seem to explain why Grub would THINK that would work and it in fact does not work. That's the biggest source of confusion on my part.
My questions are as follows: First off, because as an IT person I want to know: Why does this sort of change work? What does changing that device name change in GRUB's behavior? Is there a setting in /etc/default/grub that would change the way it's naming these RAID devices? Is there a value for this setting that would give me the device names that work, as explained above?
If there is no setting change I can make in /etc/default/grub, could I add a sed command on to the end of update-grub or can I make a modification to one of the scripts in /etc/grub.d? What sort of change would be recommended? How would I preserve this change through later package upgrades that would possibly rewrite these files?
In sda, I have 4 partitions, and I have windows 7 in one of the extended partitions [not in the primary partition].
In sdb, I have 3 partitions. 2 for storage, and 1 10GB drive for Ubuntu. Again, Ubuntu is not of a primary partition.
I had ubuntu 10.04 running on that for a long time. However, I wanted to reinstall ubuntu and use 10.10.This is what I did EXACTLY:Booted from Ubuntu install CD
Chose advanced istall
Selected sdb3 for Ubuntu
I installed GRUB2 on the SAME partition as Ubuntu aka sdb3 Installed then rebooted
I can boot into Ubuntu fine, but whenever I select Windows 7 bootloader from the GRUB menu, the screen goes black, and my PC reboots.
Boot Info:
Code: Boot Info Script 0.55 dated February 15th, 2010 [code]....
ls: reading directory sda6/: Input/output error
I have tried the testdisk/update-grub method, but it didn't work.
and I rebooted and grub menu not coming now. I have a dual boot with Win7. Ubuntu 10.04 is installed with WUBI. I can run WIN7 but can't run Ubuntu now.
After certain system-wide changes, like kernels updates, I obtain grub prompt on restart. However, if I put the hard drive into another computer (b), it boots up fine. Since, however, I use the present computer (a) regularly, I only use b to purge and reinstall grub using the chroot method. However, doing so every time is time consuming; and I cannot change anything in the defaults and run update-grub without obtaining a grub prompt on restart. How do I fix this?
I would like to know if there is any differences on how to install and to configure GRUB 2 in the different architectures (BIOS/IBM PC-Compatibles, EFI/MacIntel and Corebbot)? Does the Ubuntu installer automatically recognize the different architectures and install the appropriate GRUB 2 package ('grub-pc', 'grub-efi' or 'grub-coreboot' according to the arch)? Or does it just install 'grub-pc'? Is the location of GRUB 2's configuration files different depending on the arch of the computer? Or are they all located in '/boot/grub/', '/etc/grub/default' and '/etc/grub.d/', no matter the arch of the computer? Are the files' structure and options to configure GRUB 2 ('/etc/grub/default' and the scripts in '/etc/grub.d/') different depending on the arch of the computer?
I have already had Vista installed on another drive and from what i've read on the webs you get to dualboot if you install ubuntu after vista. when i did install it (i installed on a blank hdd with no partitions, choosing the "erase entire disk" option since for some reason default option was attempting to eat a part of my windows 1 gb drive instead of using disk i specially made for it) and the grub 2 loaded for the first time, there was NO option to run vista. only 2 linux (normal and recovery) and 2 memtests. I've ran linux and went to google this. I found that i should add something to some config files in /etc/grub.d/From reading the readme file i understood i could add my own files that are named like NUMBER_SOMENAME and insert code into them. Because it said:Quote: For example, you can add an entry to boot another OS as01_otheros, 11_otheros, etc, depending on the position you want it to occupy inthe menu; and then adjust the default setting via /etc/default/grub. But then i found a file 40_custom that said:
my Setup is Fedora 14 x64 + radeon hd 4830 i've downloaded .run package from ati site with latest driver for x64 systems. installed it, but didn't edited grub.conf becouse i didn't understood anything there (probably didn't spent enough time to get things understand) Now i've lost possibility to enter my Fedora system. during boot it lost it's modern blue boot screen (with filling drop), it was replaced by standard old boot screen with triple-color stripe. after this boot screen monitor start blinking going on and off. and on last step i'm getting "Fedora 14 boot bla bla bla something" on screen. nothing works except Ctrl+Alt+Delete. system reboots showing successful daemons shutting sequence. How can i edit grub menu from initial grub screen is it possible to it's own 'e' option or 'c' from grub command line?
I'm just slightly confused here, but... what the? Why does installing grub-doc remove BOTH grub-pc, and grub-common? So basically it seems like by installing grub-doc, I have uninstalled grub totally (yes, it is still there as the bootloader, but i have no way of updating it now!) from my system. What's the conflict between grub-doc and grub-pc, such that grub-pc has to be removed?
Ran the updater, went to boot to Win7 to use Photoshop and realized that the grub menu was gone. Ubuntu boots by default now. I tried running "sudo update-grub" at a virtual terminal and while it listed the various linux kernels ok, it then got caught in a loop spitting out some crazy looking errors. I rebooted and Ubuntu came up fine. I tried running "sudo update-grub" again from the gnome terminal and it hangs the whole computer for a few minutes and finally gives me this:
I'm trying to fix my booting problems on 10.04 by following this guide. Except the grub file is not in /etc/default. Grub is definitely installed (0.97 legacy) and the computer boots ok-ish so it must be somewhere.
I notice that 11.04 Natty has changed the grub boot menu such that older kernels are stored in a submenu under an older kernels menu item. This seems to cause either grub or startupmanager to miscalculate which is the default. For example I have just two linux kernels plus a windows OS. Setting windows to be the default via the startupmanager sets
Code:
GRUB_DEFAULT=6 in /etc/default/grub.
This ends up /boot/grub/grub.cfg as a line that reads:
Code:
set default="6"
When I reboot I find the GRUB is defaulting to the first menu item. If I manually edit the line in /etc/default/grub to read
Code:
GRUB_DEFAULT=5
and then
Code:
sudo grub-update
Then grub boots with the last entry (windows) as the default.So it looks like grub doesn't count items in sub menus whereas startupmanager does so sets a wrong value. Not sure if it is grub or startup manager that is in the wrong here.
So I got my DOS 6.0 entry in... but Grub reports file not found. I assume grub is fine, and DOS6 was working and I haven't done anything to it. Needless to say, I'm guessing that I'm telling grub to look in the wrong place for the dos bootloader. Here's what I have in my 40_Custom file:
I have UBUNTU 9.10 and WIN 7 installed on my computer. I turn computer on, choose UBUNTU, do what I need and shut down computer (or reset - doesn't matter). Turn on computer again and get message:
GRUB loading. no module name found Aborted. Press any key to exit. Operating System Not Found.
So I turn comp from Live CD, install GRUB and after resetting computer everything seems fine - but unfortunately not for long. Next reset and the problem is back again. The problem only occurs when I choose UBUNTU. There is no problem with WIN 7...
what I think will be a long post, but I want to include as much information as possible to get some help. I post my question here because it is mostly a boot issue and not strictly a server issue, although that is what I am trying to install. I bought a used server, motherboard has all IDE connectors for HD and cd/dvd. The board is am Asus cuv4x-d. It is a rather old board, introduced to market around Sept. 2000. The two IDE hard drives that came with the mobo have presented the problem as what I will describe for the SATA problem. I wanted to use my SATA-Hard Drive as my storage. I bought an SATA-to-IDE adapter. I installed the hardware and booted from the Ubuntu Server cd. Everything went fine and the installation smooth. When the initial reboot started, this is where the error comes. I get an error that says, Error: out of disk. The next line shows a grub rescue prompt. It appears that Grub can't be found. The motherboard has a Primary and Secondary IDE connection. I have tried connecting the adapter to both.
I installed Ubuntu 9.10 a few days ago, did the updates, surfed on the net, mounted a slave drive and read everything on it, shut down, pulled the slave out and now I can't boot.
After the post screens I get: Verifying DMI pool data Grub loading error: the symbol 'grub-device-open' not found grub rescue>
I think way back I had to reinstall grub or something on another machine I had but I don't remember anything about it. Is that what I have to do and how? Is it because I pulled that slave drive out that this happened? I want to get some more files off the slave as I wasn't finished.
I uninstalled ubuntu from my main HDD, and its now on a different HDD. when I turn on my computer I get:
Partition not found Grub Rescue
I've used my windows disk and repaired my mbr and boot (bootrec /fixmbr bootrec /fix mbr) multiple times, yet I always get this problem.
Only way I can boot windows is if I leave my install disk in my drive. It will say press any key to boot from cd / dvd I just wait a couple seconds, and it boots into windows. Without the disk, I get the grub problem. I have only 1 partition on my HDD, and that is my windows 7 partition, nothing else.