Solved

Boot sector concept in linux unlike windows

Posted on 2011-02-20
21
846 Views
Last Modified: 2012-05-11
Hello
While installing linux os, installer expect boot sector to be created but in windows installation we do not create boot sector rather we start creating partitions, what is the reason in this difference?
Sham
0
Comment
Question by:mohet01
  • 7
  • 5
  • 4
  • +4
21 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 34937085
I dont understand? Linux will install from CD straight to a brand new hard disk.  The process may be different but that is because it is different!
What is the question? Give example
0
 

Author Comment

by:mohet01
ID: 34937569
in addition  to primary and extended partition, we also create boot partition in linux unlike windows, why is that?
Sham
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 34938121
A boot partition is just a Primary partition than is marked as bootable. It is not a different kind of partition.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34939336
The boot partition is a place to keep kernel images for system booting, just like MBR in Windows. It can be put with root partition under /boot directory, if there was not a separated partition.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 34943191
The key is in your title:  "linux unlike windows"

Don't expect linux, which is modeled after Unix, to act or be like Windows.  From the very foundation  they are different.
0
 
LVL 1

Expert Comment

by:praveen_expert
ID: 34945167
There is a big difference in linux and windows. However the boot sector partition is used to store linux loader (LILO).

When LILO is told to boot a Linux kernel it reads it directly from the disk. LILO needs to be run to generate a new map file. A new boot loader has been designed to overcome this problem.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 34945381
There are various definitions going on in this thread.  

Boot partition:  
- a partition marked as "bootable" or "active"  (Linux doesn't really care if it is marked that way or not.)
- a separate partition to hold the kernel images to boot from.  (Not as common as it once was and not *needed* as a separate partition, but can be useful to separate it out from the rest of the system.
- The MBR.  This is not actually a partition, but a space on the disk prior to the first partition to hold the initial boot loader (Could be NTLDR, LILO, GRUB, or ....)

The question is what does mohet01 really mean?  Also, it varies between installers for the various Linux flavors.

in addition  to primary and extended partition, we also create boot partition...

There is no such thing.  There are only primary and extended partitions on the disk (and the MBR before the partitions).  For Linux, if what is contained within one of the partitions is mounted on "/boot" it would be definition #2 above.
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 34945470
probably referring to the grub loader.. and how to set it .. in boot sector etc
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 34946212
Depending on either installation type you use Linux needs a FAT partition for installation as windows does not. Windows needs either FAT32 or NTFS formatted partitions to run. Windows does not come with a boot menu. Certain versions of linux come with boot menu's like lilo,grun, etc. Not entirely sure what your question is, but this sounds to be close enough what your asking.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 34946269
@Russell_Venable - Linux does NOT need any FAT partition for installation.  I don't know where you get your information, but this is just flat out untrue.
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 34946644
@mccracky, It sure as hell does not run on a NTFS!! My flavor of linux runs on FAT so you are wrong sir! Linux also runs on FAT32 as well! BOTH are FAT!!! Actually the information comes straight from the community. So I dont know where you have been looking at your information. If you ever went through the CEH, CNE or any other of the certification courses you would know this..... There is only 4 different partition types Fat16(FAT), FAT32, NTFS, and HPFS(OS/2). I have ran linux and many other Operating systems to know that when you install linux as a partition it must formated to some type of FAT format it even says it in the installation guide!!! Are you mad?
0
 
LVL 12

Expert Comment

by:mccracky
ID: 34946930
@Russell_Venable - You are showing your ignorance, sir.    

Please read up on the difference between partitions and file systems. "Fat16(FAT), FAT32, NTFS, and HPFS(OS/2)" are file systems, not partition types.  Also, there are many more file systems than just "Fat16(FAT), FAT32, NTFS, and HPFS(OS/2)"  Start your reading with these links:

http://en.wikipedia.org/wiki/List_of_file_systems
http://en.wikipedia.org/wiki/Comparison_of_file_systems

And for the various "partition types":
http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 34947331
I never said it was a partition type I said it was as a format. A type of file system. I'll take a hit on the partition types. I was thinking more on basic lines. Most people dont use those system types. As far as your trying to decipher my statement. Be very careful who you call ignorant. I know a lot more information then you currently know about me. To make a quick decision based on this is your fault and your ignorance. You never even clarified in your defense about FAT. All talk and no walk.
0
 

Author Comment

by:mohet01
ID: 34948785
Hello
As per the update , boot Partition has kernel images, can  u name the image file?
Sham
0
 
LVL 12

Expert Comment

by:mccracky
ID: 34948838
(This is almost starting to sound like an exam or homework question.)

Short answer, yes.  

What do *you* think?  What have you done so far?  What do you really need to know?
0
 

Author Comment

by:mohet01
ID: 34971973
Hello
I would like to understand why I create boot partition that I did from many years without knowing the exact reason?
What goes into that partition?
Sham
 
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 34973494
The whole point for partitioning is to split the drive and utilize its memory as multiple hard drives so you can have one system on one partition and pretty much w/e you want to place on the other one that was split into. You can also use a separate partition to make the main file system run more efficiently, store a backup image for recovery, system diagnostic tools, there are so many different ways to use it.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 34974793
For security, some machines unmount the /boot partition after things are up and running, if I recall correctly.

Historically, separate partitions were used to reserve space on the hard drives and not allow other systems to encroach on that space.  That's one reason some put /var on a different partition--if a runaway process starts filling up all the logs, it won't affect the whole system and fill the whole disk, but just the /var partition.  The same reasoning for the /tmp partition.  /usr/local and /home are typically separate partitions on some systems to save those parts across an OS upgrade.

Some of the historical reasoning is still valid and others are no longer as necessary with the size of disks one usually gets today.
0
 

Author Comment

by:mohet01
ID: 34985375
Hello
With respect to mccracky point, if /boot is unmounted  after os start, how do we restart the machine, because /boot is not accessible during restart
Sham
0
 
LVL 12

Accepted Solution

by:
mccracky earned 125 total points
ID: 34989335
Your boot loader will mount the partition to boot from it.  
0
 

Author Closing Comment

by:mohet01
ID: 35229339
done
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question