Ubuntu :: GRUB Is Using Menu.lst From Wrong Partition?
Jul 20, 2011
I have 2 partitions (sda1 & sda3). Both have Ubuntu installed on them. GRUB is using the boot/grub/menu.lst on sda3. How do I get it to use the boot/grub/menu.lst on sda1?
I have two versions of Ubuntu on my computer - 10.04 and an earlier one that i no longer use. I'd like to free up the space that the old partition is taking, but the computer boots from the grub menu.lst of that old version. How can I make the boot process use the menu.lst in the 10.04 partition?
where is the boot process situated anyway and how can you get at it?
A while ago I moved partitions from sda1 to sda6 because the original partition wasnt big enough. So when I update grub (now grub 2) it resets everything to sda1 and I've no idea how its doing it. Does anyone know where grub 2 gets the default partition from or does it just select sda1 automatically?
I got ubuntu 10.04 lucid lynx along with windows (dual boot) and using Grub. On my computer, I have my C:/ (programs) and D:/ (data). I've never used my D:/ before that day that I've lost my windows partition on my grub menu. I usually use my D:/ with windows. The first time I used my D:/ to store data with linux, I lost my windows option in my grub menu. I'm not sure what I did wrong but I do want to restore my windows option in my grub menu.
After "fdisk -l",
I checked in /boot/grub and there is no menu.lst to modify. how I can get back my windows option in my grub menu ?
I had to reload my XP partition and my grub menu disappeared. I followed direction from this web page [URL]. I followed Method 1. After I rebooted I got a command prompt with a notice stating Minimal BASH-like line editing is suppoerted. When I input the final command of sudo update-grub I get the unknown command error. I cannot get to either XP or Ubuntu is there anything I can do short of reloading my ubuntu?
New to Ubuntu and trying to ensure I can boot into Acronis Recovery Manager to be able to reimage Windows as and when appropriate. If I enable the Acronis Recovery Manager so that it overwrites the MBR then I run out of ROM I think which prevents it from loading. If I use the software CD that doesn't detect my sata drive. However, I made a rescue CD in Acronis and this does work but I'm only using my bootable CD drive temporarily in this system.I found this post (URL...) which seems to do what I would like and have managed to follow this to extract the files from my rescue CD into /boot/acronis. However this original post relates to Grub and as a newbie to Ubuntu I think I have Grub2. I can't figure out what the correct syntax is to make a new Grub Menu entry in /etc/grub.d/40_custom.
I have a dual boot system with Windows XP and Fedora12. Following is the partition structure of my harddisk.
Disk /dev/sda: 80.1 GB, 80060424192 bytes 255 heads, 63 sectors/track, 9733 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x5e5e5e5e Device Boot Start End Blocks Id System /dev/sda1 1 1912 15358108+ 7 HPFS/NTFS
[Code]...
I deleted the "/dev/sda8" through Windows Disk Management, and when i restarted the system. GRUB boot menu vanished and a GRUB console appeared. Then I booted my system using Fedora12 live USB and created a new partition at same place from where i deleted it, and then after restart my started working normally as it was before partition deletion.
But, I don't understand what actually happened. Can anyone tell me in detail what happened and why and what to do to avoid such things in future?
I have just updated my Ubuntu linux to Ubuntu 10.4, not my grub menu isnt letting me boot to Windows Partition.The problem seems to be with grubs new update from using an editable menu.lst file to using a non editable grub.cfg file. Everywhere I look it states "DO NOT EDIT THE GRUB.CGF FILE". I am at a loss as what to do. I figured that the new configuration has screwed up the Windows Boot File. Anyone have any suggestions on how to fix this. I am not sure if it is a windows issue or an issue with the Grub boot menu.
I am testing my crash recovery strategy for my linux system and I am having trouble with GRUB. I am basically restoring my backup (i.e. tar) unto a different hard drive, but I am having problems getting the machine to boot without me having to type the GRUB commands at the GRUB prompt that is presented when the machine boots up off the new hard drive. I have tried to restore the MBR in two ways (the 2nd one is the one that gets me to the GRUB prompt):
1. Get the MBR off the original drive and write it unto the new drive (all via dd), but that did not work at all: the machine hangs right away during boot up. It seems to hang right at the point where the BIOS tries to read the MBR.
Code:
On original drive:
# dd if=/dev/sda of=mbr+part.bin bs=512 count=1
On new drive (new drive is now in place of original drive):
reboot and remove FEDORA CD Using the 2nd option above, I get the GRUB> prompt during bootup. I can then boot into the system by issuing the commands that are in the menu.lst file, followed by the "boot" command. However, I would like for those commands to happen automatically, just like in the original configuration. It seems to me that GRUB is actually finding all its stage files because I doubt the GRUB program (the one displaying the prompt) fits entirely in the 446 bytes it has on the MBR. So, it must be loading its stage 2 (and stage 1.5??) files from my /boot partition. However, if GRUB is loading its stage files off the boot partition, why does it not load/read the menu.lst/grub.conf contained in the boot partition also?
3 partitions (in order): Windows 7, CentOS and shared data partition.
I need to increase the size of the Windows 7 partition (c:windowswinsxs seems to be something not easily remedied).
GParted didn't work in moving things around (bad sector) so I wiped out its partition (# 2 out of 3) and I was able to increase the size of the Windows 7 partition (I can reinstall CentOS easily and not much work lost).
Except ... no more grub menu (unsurprising). This incantation does allow me to boot into Windows 7.
Is there any way of rebuilding the grub menu short of reinstalling CentOS (5.5)?
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?
9.10 has no menu.lst file and hitting ESC to does not bring up the grub menu. How can we set bootup options or boot an alternate kernel? I would really like to set the resolution at boot time so that my console (Ctrl-Alt-F5, for example) has 80 columns instead of 40. (What a stupid default, gigantic Commodore-64-like text!) It would also be nice if the Login screen could be set to the resolution that I want.
In previous releases, there were ways to do this. In 9.10, I haven't been able to figure out how.
Is there a document explaining all of the radical changes?
9.10 has no menu.lst file and hitting ESC to does not bring up the grub menu. How can we set bootup options or boot an alternate kernel? I would really like to set the resolution at boot time so that my console (Ctrl-Alt-F5, for example) has 80 columns instead of 40. (What a stupid default, gigantic Commodore-64-like text!) It would also be nice if the Login screen could be set to the resolution that I want. In previous releases, there were ways to do this. In 9.10, I haven't been able to figure out how.
I try to add program to Kickoff menu with the menu editor, make settings and click "save" to save changes. System update configuration but nothing happen. The addend program does not appear int the menu. If I close menu editor the changes are gone. It looks like that menu editor can't save my settings. What is wrong?
The first is I seem to have 3 GRUB installs. So whilst I update the one from my live session, the change does not appear in the boot up menu. I had installed 10.10 from a CD into a different partition (sda6), but that will not boot, so I have just deleted this and done another grub install and update. The kernel I am using has just been updated from 10.04 to 10.10 too, and it is this that I use and the Grub I have been working on (sda5).
When I start the computer the boot menu doesn't prompt, when I try to load it manually it doesn't prompt neither, it just reset the command line.The grub.cfg was generated by update-grub.It's really annoying to load the kernel manually each time the computer starts.
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.
However, I think grub may have installed to my media drive and not my main HD.
Here is the output of fdisk -l:
Code:
dev/sda1 is my media drive and I think during setup grub-install may have been automatically run on /dev/sda1. If this is the case,
1) How can I remove grub from sda1 and install it on sdb? 2) Should it be on sdb1 or sdb2? 3) Can I change the naming so my main drive is sda and my media drive is sdb?
My soundcard seems to have problems working with a certain game in windows xp so I decided to create a different installation of windows xp to use with onboard sound drivers instead. I had a backup of my clean current install on a dvd, so thought I would use this to speed up the procedure. I have two hard drives - the sata has my normal windows boot on and my ext4 ubuntu installation. The id drive has only files on. So I decided to shrink the partion on the ide drive using gparted and then create a new primary partition. I then installed my backup to this newly created partition.
At first it did not appear in the boot manager. Then I did a sudo update-grub and it now does, however whichever windows installation I now select from the grub, it always seems to boot into the same (old) installation, rather than the new one I installed from a backup. How I can actually get it to boot into this new installation? It might be due to windows boot ini settings or disc / partition flags or whatever, as I tried fiddling with those.
Most times I use my brain but some how I really screwed up with deleting the wrong hdd's partition which was an 500GB NTFS with all of my custom programs, art, web design & so on which can not be replaced. Is there a way to reverse this process? Keep in mind I am not Linux friendly being I do not know the commands & so on so any copy paste commands with good detail on what it does would be greatly appreciated!
I used GParted to delete & already hit the accept but no other changes have been made on the HDD after that. I am currently running in Live mode as I was going to install on the 80GB which is the one I meant to delete but instead had a nice moment of insanity & deleted the 500 instead!
I'm really struggling to be able to boot into my Linux partion, so I'm gonna stop just taking stabs in the dark and ask for help.
My drive layout is:
750 GB : (sda) Data | Linux | Linux Swap
1 TB: (sdb) Weird Windows 100MB Drive | Windows <--- Primary in BIOS (Booted from)
For all intents and purposes my 1TB is my primary but because of how I plugged them in, that is sdb.
Installed Fedora once, but didn't see the bootloader, realised it was because I had installed it on sda and my BIOS was set to boot off sdb.
Installed Fedora again, this time successfully getting the boot loader, but when choosing Windows I was presented with "BOOTMGR.exe" not found. During bootloader setup I told it sdb1 was my Windows partition..?
Now I've just run a BOOTREC.exe from the recovery console, but obviously kissing goodbye to GRUB in the process.
The issue I have now is I got GRUB wrong twice with a GUI, I don't think I stand much chance doing it text based in a recovery console.
I've got myself the curious situation where, when I boot the system, I can get grub to start, but it always drops to the prompt.
I can run:configfile /grub/menu.lst
and this brings up the menu with no problems, and from there I can boot the system to either linux or windows. What I don't understand is why it wont go to the menu in the first place?As far as I can tell, grub/Kubuntu got confused when installing, as each of the hd#,# settings in the menu.lst have needed tweaking to let the system boot. (e.g. windows is actually hd0, but the original install had it at hd2. Likewise linux is on hd1, but the menu.lst had it at hd0). I've happily tweaked these to make the system boot, but would appreciate any help in convincing grub to actually load the menu without me having to use the prompt.
I started another thread about this to get help booting into openSUSE after Fedora rewrote my bootloader and deleted all other entries. I managed to fix it but I never did find out why the following commands caused my system to boot to the grub shell instead of the grub menu.
Code: grub root (hd0,3) setup (hd0) quit reboot
Can anyone explain to me why these commands caused my system to boot directly to a grub shell? It's as if there were no /boot/grub/menu.lst files for it to use, but after I got everything back to normal, the files were still there.
If it helps, this is how the drive was setup before and now, except Fedora was on /dev/sda4 and has since been deleted.
Code: Device Boot Start End Blocks Id System /dev/sda1 1 262 2104483+ 82 Linux swap / Solaris /dev/sda2 263 13316 104856255 83 Linux /dev/sda3 * 13317 14621 10482412+ 83 Linux
I have a used PC that came pre-installed with suse 11.2.Unfortunately, I do not have the install disk to use in case of whatever.I already know that when configuring a dual boot with Windows and Linux, it is recommended to install Windows first.I do not have that luxury now as 11.2 is installed and GRUB is the boot loader.Question is, if I boot the Windows 98 install disk on boot, how to not mess up GRUB and still add Windows 98 to GRUB menu?
One hard drive only here. 98gb free.It seems that W98 install will overwrite GRUB in this situation - causing problems. Maybe not, I don't really know for sure.I just need to install windows 98 on the same hard drive and if possible, have suse and w98 visible on boot in GRUB.
I loaded GRUB, and now when I reboot it goes straight into the 'grub>' command line. Initially GRUB had the root as (hd0,2), whereas the boot is on (hd0,1)...(hd0,2) is my '/home' partition, and (hd0,1) is my '/' partition... So on a bootup I ran...
Code:
root (hd0,1) setup (hd0)
Now when I boot I still get the 'grub>' command line, but now the root is correct.
From 'grub>' I can type...
Code:
grub> configfile /boot/grub/menu.lst
GRUB will then show the menu, and I can click the listings to load them. All's fine, but why doesn't GRUB just load the menu.lst without my prompting? How can I automate this process of typing 'configfile /boot/grub/menu.lst' each time I boot?