General :: How To Configure Grub To Actually Boot OS
May 13, 2010
I have yet to find any coherent instructions anywhere on earth on this and I am wondering if its ever actually been done before. Assuming I have root partitions on /dev/hda1, /dev/hda2, /dev/hda7. How would I do it? What would I type in the terminal?
While connecting to session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
bash: /boot/grub/menu/lst: No such file or directory
I am running fedora 11 and I am configuring my menu.ist file. I attached the menu.ist file in txt extension. What I want is:
1- I want the first option to be Windows XP (which is on the second HD) and I want the text to be Windows XP instead of Other. This option should be the default (so if I didn't press anything it will boot from xp). 2- To remove the 2.6.29.4-167.fc11.i686.PAE kernel from the list and keep the 2.6.30.5-43.fc11.i586.img available as a second option. 3- Increase the countdown time to 10 seconds.
For some time I have been using Clonezilla to backup/restore linux installations. I would like - instead to USB-key that is always not to be found, to somehow "move" the clonezilla (on a USB stick). What I have tried to is to make a separate partition to install this on, copied all the files on the USB -key to that partition, and then make a new entry in GRUB via yast. Then I point to the new wmlinus and initramfs. I would have been much surprised if something link this was working after first shot. But it was also not working after the 80. shot.
Okay on /dev/sda sda1 is windows xp sda2 slackware /boot /system files sda3 slackware swap sda5 Centos LVM
Now my question is when I install CentOS grub did not automatically setup the slackware partition and I have to configure it manually. This is my grub.conf file
[root@centos ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,4) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol01 # initrd /initrd-version.img # boot=/dev/sda default=0 timeout=5 splashimage=(hd0,4)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.el5) root (hd0,4) kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol01 rhgb quiet initrd /initrd-2.6.18-92.el5.img title Slackware root (hd0,1) kernel /vmlinuz-generic-2.6.29.6 title Other rootnoverify (hd0,0) chainloader +1
Problem: I have installed two Ubuntu servers, 10.04 32-bit and 10.10 64-bit, in a multi-boot environment (also have FDOS and WinXPsp3). The 64-bit will not boot because grub can't find the UUID for the disk with the 64-bit system.
Brief Background: Installed 10.04 LTS two months ago with no problems. 10.04 is in a primary partition on hda with FDOS.
Installed 10.10 (64-bit) in a new primary partition on the same hd. The install seemed to go ok, but the MBR and the fs on the 10.04 were corrupted; could not boot. Restored drive, and rebuilt grub.
Installed 10.10 on separate hd (hdb). In grub step all OS's were recognized so I pointed the grub to hda. Grub failed to boot.
Rebuilt grub from 10.04 on hda. All systems recognized but 10.10 will not boot because it says it cannot locate the UUID specified.
Compared the grub.cfg for both systems, the UUID specified for hdb is the same. Also, when I mount the drive for 10.10 on the 10.04 system the drive UUID is consistent.
I know I must be missing some thing, but I know not what. Have searched and can't find any clues. All other OS's boot ok.
Hardware: AMD64 4GB, 2 internal IDE drives (hda and hdb), 1 internal SATA (hdc WinXP), various USB and Firewire Drives (no bootable systems).
i installed slackware then i unistalled it and installed debian then i decided to go back to slackware but it wont boot because i have the grub boot loder how do i fix this
i am trying to change the boot order on the GRUB menu so that the countdown automatically starts on an older kernel. From what i can see all the solutions on the web want me to edit the /boot/grub/menu.lst file. The problem is that i don't have one. Someone also mentioned that if i don't have a menu.lst file then i should look for the grub.conf file. I don't have on of those either. The closest thing in /boot/grub is grub.cfg but that looks nothing like the descriptions i have heard of /boot/grub/menu.lst file
I've installed CentOS 5.5 64-bit on an external WD 500GB HDD. I went through the installation setup, and formatted the external HDD normally. (100M /boot, 250GB /, 248GB /tmp , 2.8GB swap). I also installed grub in the external HDD's MBR. After installation, I could boot up Linux on the same platform (Arrandale). However, as soon as I took it to a different platform such as Atom Pineview D525, it had all kind of problem on Grub, such as Grub Hard Disk Error, or it just hanged on grub loading stage {1.5,2}. Sometimes, if I'm lucky, I would get to grub command prompt, but rarely I could boot up. I would stuck at mounting file system.
I've searching a lot on Google, and people suggested to reinstall Grub, so I tried various method to reinstall Grub, but the same behaviors still exist. I can't guarantee the drive will boot...
I just recently installed a kernel, everything works fine after reboot except. When I use nano -w /boot/grub/grub.conf I get /boot/grub/grub.conf: No such file or directoryIs there something i have to do after installing a new kernel in Gentoo Linux.I can't access my /boot all that appears there is a symlink to /boot How can i see my kernels located in /boot.
I am new Linux, but have already installed a new HDD in my PC and successfully installed Fedora 14. Unfortunately, I am unable to configure my system for dual boot and my PC always boots right up into Windows Vista which is the original OS on my original HDD. I have searched the web, but only find examples of splitting partitions and dual booting into different versions of Windows. I apologize for the simple question, but I am certain that someone in here can point me in the right direction. My intention is to migrate to Linux entirely, but want to learn Linux before completing a full migration.
i have win7 already installed and working well on my hard drive and [FONT="Arial Black"]then i wanted to install ubunto 11 04 but i had a lot of problems .After several trials , I succeded at insalling ubunto (i had a message telling that installation was successfully done and asking me to reboot ) But after reboot I had no boot options . That is the boot went directly to win7 . Who can tell me how to fix this problem? If I don't find an adequate answer to my problem I will format the ubunto partition and give the free space to win7 (by the way I have given 50 giga space to ubunto )
I am trying to configure a system to boot Windows XP, CentOS 4 and RHEL5. I have one hard drive that contains both Windows XP and CentOS 4, and a separate drive that contains RHEL5. Until recently, I only had one SATA cable, so I could only connect one drive at a time. Under this configuration, everything works fine. When the RHEL5 drive is connected, I can boot into it. When the Windows/CentOS drive is connected, I can dual-boot into either OS. (GRUB was configured on this drive automatically when I installed CentOS into a new partition.)
Opening the box and moving the SATA cable is a lot of trouble, so I finally got a second SATA cable and enabled both SATA0 and SATA1 in the BIOS. I currently have the Windows/Centos drive as the primary, and I can still boot into both Windows/Centos. Now, I want to add RHEL5 to menu, but I can't find the file GRUB is using to present its menu at startup.
I have configured GRUB before on other systems, but I just know the very basics, such as where the grub.conf file should be. So, I spent a whole day reading advice online and asking friends who might have experience with these issues. Here are the steps I have taken so far:
I confirmed there is no /boot/grub directory, and /etc/grub.conf is a broken soft-link to /boot/grub/grub.conf. I did a find for grub.conf, which found nothing. I did a find for menu.lst, which found one item -- an example GRUB config file in /usr/share/doc/grub-0.95. I noticed that when CentOS boots, I see the GRUB commands printed to the screen, the first of which is:
root (hd0,2)
So, I did a grep -R "(hd0" * at the / directory, which also found only one item -- the example menu.lst file in /usr/share/doc/grub-0.95. I discovered that I can go to the command line grub from the grub menu and do:
cat (hd0,2)/grub/grub.conf
The cat command returns a printout of the grub configuration the system is obviously using. I didn't create this file, but the titles are identical to what I see in the GRUB menu, the default boot is Windows, and the timeout is very short. This must be the file. It looks like:
default=2 timeout=5 splashimage=(hd0,2)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.9-89.ELsmp)
[Code].....
I've also tried making the RHEL5 drive the primary drive. In that case, I can modify the existing /boot/grub/grub.conf file and see my changes at the GRUB boot menu. However, I can't get Windows to boot in this configuration. I've done a lot of google searching on the topic and added map commands to make Windows think it is on the primary drive. But, I'm still unsuccessful on this front as well. I think I'm closer to solving the problem with Windows/CentOS as the primary. However, if you think I will have more success with RHEL5 as the primary drive, I can provide more details as to my current grub.conf on that drive in a later post.
I had a dual boot machine with fedora 12 and windows vista and I could use grub boot-loader to switch between two. Few days ago windows got corrupt and I have to reinstall it. I put windows 7 now and as usual it erased grub. So to reinstall I put the fedora 12 installation CD on and followed some usual setup steps. When I got the command line I issued the command "grub-install /dev/sda" (sda not hda because It showed bunch of sda, sda1..) but surprisingly it said grub command not found. I remember doing it before while it worked fine.
I'm trying to install Xubuntu, but I don't have an empty CD and my computer boots only from HDD and CD. I've extracted ISO's contents into my HDD root and have installed a (non-working) Linux and GRUB. So I've tried this boot entry:
root (hd1,msdos1) linux /casper/vmlinuz initrd /casper/initrd.lz boot
But it boots same as the non-working Linux install
What is the generic way to create a boot CD for any given Linux distro using grub ? Can anyone give me the exact commands for creating the proper ISO image. From there I know how to burn the ISO image to CD.
I have a home-brewed Linux system that I've installed on a USB key. I'm plugging this into a laptop. I can tell from what is going on that it has successfully loaded the kernel and is running the shell script that is specified on the "kernel"he GRUB configuration.But... although I can get output from printk() calls in the kernel just fine, I get nothing from "echo" commands (or any other commands) in the initialization shell script. I can see that the commands are being run,t the output is just disappearing into the void.This is problematic because there are other problems, but I can't get debug output to track those down...Given that printk() output goes to the laptop screen as expected, it seems that GRUB must be sending other output to something other than the console, yet the grub.conf configuration is quite simple:
I am inexperienced in using Linux, and just installed Ubuntu 10.10 on an external hard drive. I didn't want to mess around with re-partitioning my hard drive, which has Windows 7. I figured that I could just run Ubuntu from the external, and if it gave me any problems with Windows, which I unfortunately need for work, I could just unplug it and boot normally. However, GRUB appears to have installed some component to the local hard drive. Whenever I try to boot from the local hard drive, I get this error message: "error: no such device: 8b84f351-7770-4908-b12f-0cbd31bc3662 grub rescue> " Another thing is that in the boot menu, only the CD/DVD drive and local hard drive are options, it won't even register the external. Any suggestions on what may have caused this error? I saw from other posts that GRUB doesn't like multi-drive systems. Also, would it be possible to delete GRUB from my system, then allowing Window's MBR to take over?
So i would like to change around grub, and i tried looking in /boot/grub/menu.lstbut apparently in Ubuntu 10.10, it doesn't exist anymore? So where is it?
I regularly update my ubuntu (10.04), and new minor versions keep accumulating on the GRUB screen. Right now I have 5 different versions listed on the GRUB, even though I always select the latest version to work with.
Am I supposed to do anything to get rid of the old version references? Do these old versions affect disk space/performance?
I used Windows to reformat my Ubuntu partition and now I can't boot anything. What's the best way to recover my netbook? I'm only able to use a 256 MB flash drive.
I just installed Ubuntu 10.04 onto my toshiba C655 iCeleron 900 2.20ghz 1GB RAM. I have win7 and I have a 4GB swap partition. How Do I change the Boot order in Grub? I saw instructions somewhere else to type sudo, etc in the command line and was getting access denies...
Slackware is my main desktop, however, I decided to give Fedora 15 a try and overwrote the MBR installing it with grub. Now I want to keep fedora and its grub, just I can't get slackware to boot.Fdisk:
Code: Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
I'm trying to install MS Windows from my Linux box. Because I have no CD drives nor USB ports, I can't use any live media to boot the computer and install Windows from the installation disk. So I've created a FAT partition and copy DOS files on that, so that I can boot this partition and install Windows from there. But the problem is I still haven't able to get it to boot.
Here's the output of fdisk -l code...
I created the partition by using cfdisk to format it as type 0B: WIN95 FAT32, and made dos filesystem on it using:
Code: mkfs.msdos /dev/hda1 But when I reboot and select the DOS entry in GRUB, it tells me that: "This is not a bootable disk. Please insert a bootable floppy and press any key to try again."
what I'm missing or doing wrong here? Do I need to change something on the MBR of hda1 etc...