Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-25-2006, 01:00 AM
|
#1
|
Member
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83
Rep:
|
Questions about a /boot partition
While Googling, I saw a suggestion to create a /boot partition. I'm assuming it would be a partition in addition to Linux Swap and Linux.
What would its purpose be, (1) in a linux only or (2) in a dual boot installation?
How is this done, and where would it fit into the partitioning scheme, eg. hda1 for /boot, hda2 for Linux Swap, hda3 for Linux?
What would be the size of this partition, and what would be written into it?
Thanks for any help.
|
|
|
03-25-2006, 01:16 AM
|
#2
|
Member
Registered: Nov 2003
Location: Jerryland
Distribution: LinuxMint
Posts: 59
Rep:
|
You can create one if you want to, but as far as I know, it's not needed for today's Linux distributions.
It used to be that lilo couldn't read the boot files past the 1024th sector on the hard drive, so a boot partition at the front of the drive was needed to house the boot files. Lilo has since overcome that limitation, so a boot partition isn't needed any longer.
|
|
|
03-25-2006, 02:00 AM
|
#3
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
If you have a multiboot setup where you are running more than one distro, you might have a shared /boot partition.
You would want to update the boot loader using the same distro each time, but a /boot partition <100MB could contain all of the kernel and initrd files no problem.
Another reason to have a separate /boot partition is to use a filesystem that is better supported by Lilo or Grub. For example, the other partitions may be a raid1+0 partitions, and having the /boot on an ext3 partition is easier to boot from and setup.
|
|
|
03-25-2006, 02:20 PM
|
#4
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
One reason creating a separate /boot partition is security -- in fstab, you can mount it read-only, thus creating another barrier against anyone/anything that tries to mess with it
|
|
|
03-25-2006, 03:19 PM
|
#5
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
an ext3 partition is probably not the best choice for a /boot partition - since it is small (all you store there is a few kernels and grub's files...) and seldom written to the simplest is the best - ext2 .
A filesystem check - should it be needed - on such a small partition (mine is 32 MB) takes less than a second.
Anything else would be wasted space for a journal you never really need - goes for reiserfs as well.
|
|
|
03-25-2006, 11:32 PM
|
#6
|
Member
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83
Original Poster
Rep:
|
I was looking for partitioning info when I came across the reference to /boot. As J.W said, it had to do with security. I gather then that it is not generally used.
Thanks everyone for responding.
|
|
|
All times are GMT -5. The time now is 04:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|