Fedora Installation :: GRUB/LILO: Getting The Location Of The Boot Partition?
Feb 13, 2009
I somehow recalled a rule re the location of the boot partitions with LILO being required to be in the first part of the drive (1024 cylinders, it seems) and I found it indeed in an old doc:
Boot Partition: Your boot partition ought to be a primary partition, not a logical partition. This will ease recovery in case of disaster, but it is not technically necessary. It must be of type 0x83 "Linux native". If you are using lilo, your boot partition must be contained within the first 1024 cylinders of the drive. (Typically, the boot partition need only contain the kernel image.) Is this still valid in GRUB, esp in Fedora 10?
i installed it on a external HDD. my primary OS is windows 7 on my 1 internal hard drive. After i installed ubuntu whenever i boot up my computer i have to have my external hdd plugged in and turned on or else i get "cannot find GRUB" then some rescue thing comes up where i can type stuff. i would just like to move the GRUB loader to my primary hard drive or at least recover my windows loader but have ubuntu on it.
I have been following this tutorial [URL]. When I get to the end of the installation and try to install GRUB to the /boot partition I have set up it throws a fatal error at me. No explanation other than it can't write to the specified location. I double checked all the partition settings which were the same as the tutorial then skipped the GRUB installation and finished. The only thing I can think of that might be wrong is that the 250MB partition size specified for /boot in the tutorial is too small.
I am thinking about maybe trying "LILO" [URL] ....
For my boot loader, from what I have read it sounds even more tempting.
I am totally sick of GRUB, even though it is what seems to be the most popular,and is what normally is used as the "default" when any linux system is installed, that is what the install ISO's use, but anyway, that is another topic, over the years, "grub failing", has been a problem for me , many times.
I've run Debian on my laptop for quite some time now with no problems. I installed Slack to a new partition created in the free space of my hard drive, and I thik this was my mistake: I let Slack automatically configure the MBR with lilo (can't remember - I should stop operating on the MBR at 4 AM.) Now Slack runs just fine, but upon bootup I would like to be able to boot either Debian or Slack, but instead I just have a Slack splash and the only option is to press enter to boot Slack.
I believe sda1 is the root directory of my Debian install.
In the above table, sda10 is the swap I created for Slack and sda3 is the root directory for Slack. All other partitions were there before (my initial Debian install).
Thus my partitions are apparently intact and visible by the MBR (is it correct that the MBR holds the list of partitions on a disk?) but for some reason I don't have the option to boot Debian at all - just Slack.
I have a feeling this is a LILO/GRUB issue, but I don't know where to start.
EDIT: more poking around seems to reveal that it is the configuration of LILO that is the problem. Observe the following output:
Going from Fedora 12 to 13. Got to the point where I have to reboot to install, system reboots to 12. This is a triple boot system with Open Suse and Mint, and the grub2 bootloader from Mint is the bootloader for the whole shebang. In the "how to use preupgrade" instructions there's a line that says "dentify the drive and partition of your Fedora /boot folder." How? If that sounds odd, consider that in my set up "computer" shows 4 partitions (and with just three operating systems..?). I can mount them, but have a problem telling which sytem is Fedora, Suse or Mint. And getting the FEDORA bootloader to find the PREUPGRADE kernel ... Momma said there'd be days like this.
cat /etc/fstab just returned /dev/sda1 on /boot. I installed Fedora first, before Suse or Mint, so being on the first drive or partition sounds right, but the multiple drives throws me, and "just guessing" doesn't seem like the way to go.
I have a Dell Inspiron 1721. Recently I replaced Windows Vista Home Edition (32 bit) with Slackware Linux 13.
Lilo wouldn't work, when I turned on the computer it printed "Li" and then 20 lines of 090909... and then the computer would hang up. So I just used my Slackware-boot-flashdrive-thing that I created during installation to boot my computer and told myself that I would fix it later.
Also, when I installed, cfdisk (or it might have been sfdisk) complained that /dev/sda did not contain a valid MS-DOS partition table. fdisk still worked, so I used it to create a new table, and cfdisk worked fine and the installation went along normally.
I reinstalled Slackware about two days later (I realized that I had installed the 32 bit version instead of the 64 bit). Lilo still didn't work.
I thought it might be something wrong with the Slackware DVD, so I downloaded and attempted to install about 4 different distributions. None of the CDs would work. The computer would start up, Linux would start to load, and the computer would freeze.
Xubuntu was the only distro I had that I could get to install. Halfway through the installation, (Surprise!) I got an error, something like "Package Grub failed to install, you will not be able to boot your new operating system".
The rest of the install went fine, so I restarted my computer and tried to use another one of my CDs to boot Xubuntu. I got the error "/dev/sda does not contain a valid partition table", and later "ext4-fs: checksum failed on dev sda at sector...", and "please specify a valid partition for root=". I am absolutely positive that I entered the correct partition, I triple checked and entered other partition names to make sure.
I'd also like to add that the computer makes horrible crunching noises when it starts up and when I do stuff like press keys. So is something seriously wrong with my hardware, or is there another explanation for all of this? Because I really don't want to have to try to repair the computer and can't pay to have it repaired.
I am unable to change the installation location for the boot loader when installing Fedora 12 in the graphical installation mode. The 'Change device' button does nothing when I click on it during installation. I'd like to install the boot loader on my /boot partition. Is there some kind of bug that is preventing me from doing this?I am trying to install from the Fedora 12 386 DVD.
I am new to Debian but have some basic experience with Linux and am currently trying to triple boot Windows 7, Fedora 16, and Debian on an HP Pavilion dv7. I have the Windows Boot Loader on my MBR because I've heard that Windows updates can cause boot issues if GRUB is installed there. This means that I've been installing GRUB in the /boot partition for each Linux distro and creating corresponding entries in the Windows boot menu.
This has worked in the past with both Fedora and Ubuntu, but I have not been able to work around it with Debian. When I choose my Debian option in the Windows boot loader, it loads GRUB but hangs after it prints "Welcome to GRUB!", and I have to restart the computer. I would like to hear what more experienced Linux users have to say both about why this isn't working for Debian and about if keeping the WIndows boot loader is the right way to go.
Also, here is my partition layout:
Partition 1: SYSTEM (HP pre-installed) (209 MB) Partition 2: Windows Partition (472 GB) Partition 3: Extended (160 GB) 1: /boot for Fedora (524 MB) 2: Physical Volume for other Fedora partitions (79 GB) 3: /boot for Debian (749 MB) 4: Physical Volume for other Debian partitions (80 GB) 118 GB free space Partition 4: HP_TOOLS (HP pre-installed) (108 MB)
I had a dual boot system(WinXP and Ubuntu). But something happened and I was not able to boot into my Ubuntu partition. It gave GRUB missing error. I tried reformatting the dedicated 40 GB ubuntu partition to NTFS and again try to reinstall ubuntu. But now, when I install ubuntu through boot time install, it shows that my whole hard disk is empty( but I have windows XP on whole hdd at the moment) and do not give any other option but to use whole hdd.
Alternatively when I try to install it inside windows, then after rebooting it shows, no root file system defined error and neither gives any option to do so also ( this method worked earlier o my PC). At the moment, It still shows ubuntu and windowsXP at OS choice menu at boot time but when booting in ubuntu, it shows GRUB missing. (I don't have any ubuntu installation on my hard disk at the moment).
While installing with a separate /boot partition I cannot get two distinct copies of ubu installed on one machine and be able to choose between them. Each is installed on a different hard drive. x64 versions. I've had this issue both ways:
Stepsinstall mythbuntu install ubuntu Result
Two entries in grub. Both cause ubuntu to boot
Stepsinstall ubuntu install mythbuntu Result
Two entries in grub. Both cause mythbuntu to boot Grub 2 is so unfriendly for fixing these things. I don't know where to make changes. Ok, Grub 2 is very powerful, maybe it's the lagging documentation, or lack of tutorials that is the problem. But I don't know how to fix this. Do I start over without the /boot partition? Do I bail on ubu?
I'm dual boot with Vista(TM) and UBUNTU(tm) and ran out of space on Ubuntu partition:I booted Ubuntu 10.04LTS live CD and shrank the VISTA. It would NOT let me grow the extended partition? So now I have:
sda1 ntfs /media/TOSHIBA_SYSTEM_VOLUME 1.46GB sda2 ntfs /media/SQ004588V03 88GB sda4 ext3 THIS IS MY NEW PARTITION 15GB
I have fedora 12 installed on a laptop with an LVM partition, /dev/hda5 logiacal partion in the /dev/hda4 one, a boot partition on /dev/hda3 and a FAT on /dev/hda2 for win data. There was also a 10GB free partion left from older works on /dev/hda1. Now the /boot partition was set to only 0,2GB and this conflicts with the kernel updates. I freed the 10GB section, formatted it to ext 4 and copied all stuff from the /boot sector on it. now the old /boot is mounted in the grub.conf on a UUID and not the /dev/hda3 as it comes up on fdisk.
I would now like to swith the boot from the small /dev/hda1 partiotn to the larger /dev/hda3 one, but don't know how to manage it with grub (fedora, i understand it's grub-legacy).
I'm using fc14, and put the /boot directory on a standalone partition. Now, there's something changed in MBR, and the grub has been overwrote, now I wants to fix the grub by another bootable usb-disk with grub, to use 'setup (hd1)' to fix it. but the situation cause the /boot has nothing and the partition contain essential files does not under the directory 'boot'. then setup failed.
I set up my Dell Inspiron Laptop as Dual Boot -> Xp / Ubuntu 10.04. - all worked well. I had 2 installations of XP on this machine and I removed one - all worked well. I then went into XP and deleted the partion (4) that the old XP had resided on (using Easeus Partition Master) All NOT working well !! Now when booting the machine I get grub rescue> I did ls and got ....
Here's what I want to do. I have two separate HDD HDD 1 : 160 GB (dedicated to windows, already working) HDD 2 : 500 GB Will be using dedicated to ubuntu (not partitioned yet)
I want to use the HDD two only for linux and this HDD is not partitioned yet. What I want to do is - A dedicated Grub partition (/boot) on HDD 2 (Do I really need it when I am using just two os? Will it work on second HDD?) - / root partition - /home partition - /swap partition - /fat32 partition (do I need it to share files with win?)
Noobish question on multibooting multiple Linux distros. I have four of the current major Linux distributions. Each has been installed and run individually (no other Linux distribution installed) in a dual-boot configuration with Windoze. No problem.
What I want to do is install all four Linux distributions and multiboot them. Reading the internet it would seem this is a simple task with GRUB. The short version being - install a Linux distro with a separate /boot partition for GRUB and use GRUB to boot the other Linux distros from the GRUB boot menu.
So I installed one of the Linux distros with a separate partition for /boot. The distro installer installed GRUB in /boot and correctly setup a dual-boot configuration with Windoze. GRUB was installed to the MBR. Next I installed a second Linux distro in its own root partition and told the distros installer NOT to install GRUB to the MBR, but rather, to the boot sector of the root partion of the second Linux distro. Installation was uneventful (and I could access the second Linux partition from the first installed Linux distro, things looked ok). Then I added to following to the installed (MBR - /boot) GRUB's menu.lst:
Code: title lixux distro 2 root (hd0,7)
chainloader +1 After which I rebooted the system and the new entry for the second Linux distro now appears in the GRUB boot menu. I selected the second Linux distro from the boot menu and got the following GRUB error: Error 5 : Partition table invalid or corrupt [Code]....
now, I want to add my new Fedora system entry to my "central" lilo.conf, resident on another linux distribution. So, i've done
my lilo fedora entry boots fine but... at the middle of "after boot" loading the system hangs and stops the usual driver detection, etc (normally, it hangs on the CDROM detection or USB 2.0 camera detection).
Where can I install grub? I know it can be installed to the mbr of a hard drive. I also know it can be installed to a /boot partition. Can I install it to a lvm partition? Does it have to be /boot? grub-install --root-directory=/boot /dev/hda Does this command install grub to a partition and link it to a separate /boot? I have fedora, but this is a live cd. I need to learn where I can install grub2 to boot
I have a brand new thinkpad X301 with 4GB of RAM and thinking of getting fedora 11 on it. The plan is to have it triple boot with vista/seven and hopefully OSx86. I am aware of the 4 primary partitions limit on an MBR disk. I was thinking of having a swap file instead of swap partition and not creating a boot partition as well. If I install the boot loader(GRUB?) on the root partition will I be able to boot it without any problems by using vista's boot loader?
Or Maybe I should install GRUB on the MBR and add all the other operating systems on it? Does anyone have any objections for not creating a swap partition or a boot partition? When comes to desktop environment I've been using KDE in the past, is there any major advantage of using Gnome over it? KDE seems to look really nice on fedora where Gnome is maybe more stable?
I currently have a Slackware system an am using Lilo. I just installed Fedora 13 on a different root partition to play around with, I chose not to install Grub. How can I add an entry to Lilo to boot Fedora? Almost everything I am reading online says to use Grub and not Lilo, is there a reason for this?
I know there has to be an option to set the location of grub. It's been on various distros over the last decade and I've read articles that say it's available although horribly difficult to find but I really would like to pin this one down. In Maverick Meerkat 10.10 we can apparently only chose between putting it in the MBR and the Ubuntu boot partition but I can't work out how.It's for an Ubuntu installation after Windows and I want to put Grub in the Ubuntu boot directory Not on the MBR because I am going to use a Windows based boot manager and it would avoid any boot loaders walking over each other to take over the MBR.
I have a PC with 2 Hard drives one of which has Windows XP Pro installed. I installed Red Hat Linux 7.2 on the other drive choosing LILO as the boot loader. When I reboot LILO only displays Red Hat 7.2 When I boot Red Hat and go into KDE boot settings I can see that hda has Windows NT. hdb has Red Hat 7.2. I then tried to make the Windows NT partition the default entry. When I try to confirm this an error displays warning me of danger if I proceed. Is there any way to make LILO recognize Windows (preferably without having to reinstall Red Hat), perhaps by installing another bootloader application!
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 have just install both fedora 12 and slackware 13 on my laptop I did not install lilo because fedora uses grub I am able to use slackware by using the the DVD and booting from the command prompt I have attached my grub .conf file also when i boot from cd the command is as follows
I having a problem getting my grub loader to see one of my hard drives. I added a drive, and my grub loader lost track of where everything was. I couldn't get my old linux (Red Hat 9) so I installed SuSe on my new hard drive. But I need my be able to boot from my old hard drive because it has apps that only run on the earlier version. From /proc/partitions the old hard drive is sdd
major minor #blocks name 8 0 976762584 sda 8 1 2104483 sda1 8 2 20972857 sda2