The exact process of booting from a logical partition ...
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The exact process of booting from a logical partition ...
I apologize if this has been asked a hundred times, but I searched through the threads and posts here and did not find an answer that helped me at all.
What is the exact process of booting from a logical partition?
I have read several things, and all are confusing to me and I can't find a good answer.
Here's what I know and an example:
I've read this is easily possible ... some things I've read said something about it being complex and that you have to chainload. Some things I've read said it's very easy, but it has something to do with booting from the extended partition. Others said, no you use the logical partition itself. I can't clear up what anyone is talking about ...
When using openSUSE 11.1, the Live CD ... and trying to install it. It will give me problems when trying to boot from a logical partition, not to mention I don't want to do something wrong and add data or anything where it shouldn't be. I don't know what I'm doing, at all, and I can't understand people's explanations of this.
When using openSUSE, you can choose (when configuring GRUB using the graphical installation) "boot from extended partition" and use "custom boot partition: sda(1,2,3,whatever)" and it will work. If you choose to boot from the logical partition only, and don't check "boot from extended partition", it will say "no operating system found" when booting. What exactly is happening here, I'm completely lost. Choosing "boot from extended partition" can't cause any problems of any kind, can it? What is the proper way of doing things in this situation, what is really happening?
Booting from a logical partition is no different than booting from a primary. You simply have to get control transferred to the boot code on the partition. In GRUB, that is what the chainloader does.
But, you can't boot from an extended partition---in fact, you can't do anything with an extended---it simply acts as a container** for the logicals.
The fundamental truth is simply that any physical drive which the BIOS tries to boot must have boot code in the MBR (defined as the first sector or the drive---regardless of partitions). If you also put boot code on a partition, the MBR boot code (or more typically the config file) has to point to that partition.
The link below in my sig is old, but still might be useful. Also search here for member "Saikee" and look at his links.
An extended partition is actually just the beginning of a linked list---it points the system to the beginning of the first logical partition. The boot sector of the first logical has a mini partition table pointing to the actual partition and to the next logical----this daisy chain continues to the maximum number of logicals allowed.
I know using fdisk, if you use a to mark a partition as active, and you mark the extended partition as active, it will give you a warning ... warning: extended partition.
When I am installing openSUSE, say I have it this way:
2 is extended partition, 5 is /boot, 6 is swap, 7 is /
If I don't choose "boot from extended partition" on the menu, but choose to boot from custom partition: 5, it will not boot.
By default, it sets it so that the boot partition gets marked as active, using openSUSE's installer.
I have to check "boot from extended partition" AND "boot from custom partition: 5" or it WILL NOT WORK. I have no idea what I'm doing, I've looked at sites, I've read documentation on partitioning, I do not understand what is happening. What is the difference between picking "boot from extended partition" and "custom partition: 5"?
What happens when you choose to boot from extended partition and select custom partition: 5. By default it was setting it so that "boot from extended partition" and "custom partition: 1", which is a windows xp recovery partition (not for myself, but I was thinking about getting a new computer and giving this one away with windows xp on it). what happened in that case? This may seem like I want you to put a web site of information here, but I'm telling you I've seen these websites, I've seen this information, over and over and over again I've read things on this and none of it is specific as to what to do or what is happening, it's worded in a strange way and I see conflicting information on all of this (unless it's just openSUSE's way of doing things that is confusing me). It's ridiculous. Why would it mark my first partition as active, and change the contents slightly (which it did, it slightly altered the size!) by default!? I have read and read and read on this, I have no idea what this is doing, this is ridiculous.
I should add that when not choosing boot from extended partition , it will mark the extended partition as active, which would be the problem ... so you have to inform that you're booting from a logical partition?? If so, what are you doing to inform it that you are booting from a logical, and not the extended? It just marks the logical as active instead of the extended? It's confusing to me that if you choose to make 5 the /boot partition, but don't choose "boot from extended partition", it will mark the extended partition as active and try to boot.
So the reason that it marked the first partition and changed it's size slightly by default is because it installed the stage 2 bootloader there?
I thought I had a pretty firm understanding of this, and now I'm very lost.
What I'm saying is, I have trouble understanding openSUSE and extended partitions, but I have not had any problems with doing things this way using anything but openSUSE. I've installed this way before, and it was easy. Using primary partitions it's easy, using Ubuntu and logical partitions, it's easy. Installing openSUSE this way, I'm wondering what it is I'm doing when I do something. I'm used to either using fdisk or using fdisk to set things up and having the installer take care of the rest, sort of.
I just installed and updated openSUSE 11.1 using the "boot from extended partition" option and the "custom partition: 5" option. Obviously I think I understood what I was doing, but what it does by default was confusing to me.
I had one funny thing happen, only ... I was doing something, and twice the theme I had on here went away all of a sudden. Then I went to change it back, and it said possibly something's already running. Anyways, I restarted again, changed it back when it did it again, didn't receive a message, and now it seems to be working fine.
I'm sure I understood how to do it, then when thinking I had it wrong because of the way it does things by default, I went reading other stuff, and got confused by the way things were worded, and people's posts. So I had a good understanding, and it's just openSUSE that confused me. I'm sure I have it fixed, now, and understand what to do ...
I was just starting to think that maybe I really misunderstood what I was doing, and was relying on the installer more in the past than it seemed like I was, except I thought "I've used Gentoo and LFS and made the partitions myself and never had a problem, so it must be the way it is with openSUSE and I'm not really confused".
pixellany, or someone:
Using those choices for installation, which are the default choices using the openSUSE installation, it has done what I was talking about:
it marked my extended partition as active.
Can any problems be caused by this? It seems to be working fine, except when I use themes, the themes aren't showing up correctly in the theme selection window, but they do show up correctly otherwise (when selected). Also, I did have the problem I mentioned a couple of times, where it changed over suddenly to another theme (but not in the panel) and gave me messages that something could already be running. But it has gone away now.
Is it possible using the choices I already wrote down here, that any sort of problem could be caused? I guess I have to do more reading ...
again, I chose the default "boot from extended partition", but changed the "custom boot partition" to 5. The second (extended partition) is marked as active.
I don't see how there would be any connection between themes and marking partitions as active.......
Linux does not use the active flag, so you might as well try turning it off.
I chose the default "boot from extended partition"
This really puzzles me---I don't believe you can actually use an extended partition for anything---it is only the beginning of a linked list of the logical partitions.
What is the overall boot setup? i.e. what is in the MBR? Are you chainloading to the Linux partitions? Assuming that GRUB is in the MBR, please post the contents of the relevant /boot/grub/menu.lst (Take out all the commented lines to keep it concise.)
The theme errors don't make any sense to me, I was just wondering if maybe I don't know what I'm talking about ... I'd be surprised.
What I'm talking about is the default for the installation, the only other thing it did by default (when I didn't tinker with the grub setup options), was use the active flag on the first partition.
It always sets the active flag.
Assuming that this is the config file tied to the GRUB installed in the MBR, then you don't have any chainloading going on---i.e. you are booting directly into the 5th partition, which is mounted to /boot.
If you want to dig a bit further, do this:
[root@mherring-08140091110 printer]# dd if=/dev/sda bs=64 count=1|hexdump -C
1+0 records in
1+0 records out
00000000 eb 48 90 00 00 00 47 52 55 42 16 08 1c 7c d7 49 |.H....GRUB...|.I|
00000010 00 00 00 00 1c 7c d7 49 25 8a 25 8a 01 00 80 60 |.....|.I%.%....`|
00000020 5f 80 3b 01 b8 c0 07 8e d0 bc 00 08 fb 52 53 06 |_.;..........RS.|
00000030 56 fc 8e d8 31 ed 60 b8 00 12 b3 36 cd 10 03 02 |V...1.`....6....|
64 bytes (64 B) copied, 5.3081e-05 seconds, 1.2 MB/s
What this does is dump the first 64 bytes of the MBR. If you have GRUB there, you'll get something similar.
It's a Windows XP recovery partition. I don't use it, but I want to keep it there so that if I give this computer away I can give it away with Windows XP. I've been thinking about getting a new one.
I do recall choosing to install it to the MBR, actually.
When I installed openSUSE, I went to the GRUB configuration:
1: one option, that was there by default, and it wasn't a big deal, it was something that wouldn't cause problems - I just can't think of what it was.
2: install to the MBR.
then I put a 15 second timeout on it, so it would wait 15 seconds to boot.
Then I chose "boot from extended partition" and "custom boot partition: 5"
If I don't check the "boot from extended partition" and choose "custom boot partition: 5", it will say "no operating system found" when I try to boot. By default, it has "boot from extended partition" and "custom boot partition: 1" checked and configured.
I have not had a problem partitioning my system, and believing I understand what I'm doing, until I tried to use a custom configuration with openSUSE - but I've pretty much gone step by step and either let the installation take care of it (sort of), or just marked the boot partition as active.
I'm not an expert on partitioning, but I didn't think I'd run into trouble really, especially using openSUSE.
I'll have to do some more reading, anyways, I don't like not knowing the details. I thought I understood more than I did, now I'm confused.