View previous topic :: View next topic |
Author |
Message |
Qu4rk n00b
Joined: 22 Mar 2005 Posts: 74
|
Posted: Tue May 10, 2011 4:37 pm Post subject: Do you use a separate boot partition? |
|
|
Do many users use a separate boot partition? And if so, which FS do you make it?
The installation guide which is old makes it an ext 2. I'm wondering do I need one at all & if so, whats the best FS to make it? |
|
Back to top |
|
|
andrewthomas Tux's lil' helper
Joined: 27 Apr 2010 Posts: 93
|
Posted: Tue May 10, 2011 4:41 pm Post subject: |
|
|
I vote no. Unnecessary. I think that this was due to not being able to boot from an extended partition. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue May 10, 2011 4:45 pm Post subject: |
|
|
I don't. _________________ Defund the FCC. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10687 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue May 10, 2011 4:54 pm Post subject: |
|
|
I do. The traditional arguments for:- I use some weird filesystem that Grub doesn't understand.
- My system is more robust if my kernel is loaded from a filesystem that isn't touched all day long. In fact, I don't even mount the boot partition unless I'm updating it.
- I have a machine with an old BIOS that can't see all of my drive. I use a boot partition to ensure that the kernel and/or initramfs files will never be placed beyond where my BIOS can read. (Contributed by NeddySeagoon.)
- I use software RAID0, RAID5 (or above) or LVM on my root partition, which legacy Grub can't handle and don't yet want to mess with Grub 2. (Also contributed by NeddySeagoon.)
- I encrypt my root partition so I need to load the kernel from an unencrypted partition. (Contributed by ccach0rr0.)
The traditional arguments against:- It's more complex and usually not strictly necessary. KISS.
- (Actually, I'm unaware of any other argument against.)
Comes down to choice.
If you do decide to have a boot partition, then ext2 is just fine; the choice is much less important than your root partition filesystem.
Edit: Going to make this post a compendium of all the legitimate reasons for and against that I missed in my original post.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Tue Jul 26, 2011 5:02 pm; edited 5 times in total |
|
Back to top |
|
|
Qu4rk n00b
Joined: 22 Mar 2005 Posts: 74
|
Posted: Tue May 10, 2011 4:55 pm Post subject: |
|
|
John, what FS do you use for your boot? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10687 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue May 10, 2011 4:58 pm Post subject: |
|
|
Sorry; was editing that in above as you were replying. Using the KISS principle, and noting that the boot partition filesystem choice doesn't affect day-to-day performance, I chose ext2.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54667 Location: 56N 3W
|
Posted: Tue May 10, 2011 5:37 pm Post subject: |
|
|
Qu4rk,
The small /boot partition became required when the BIOS could not read the entire hard drive. That first happened when hard drives reached 528Mb, which is a long time ago now. Its happened a few times since too, around 2G ,4G, 8G, 33G and 137G. It will occur next at 144115Tb. The small /boot ensured that the BIOS could read all the files needed to boot the system.
If you have an older system, with the 137G BIOS limit, fitted with a 160G (say) drive, all will be well until you get a grub or kernel update that leaves some of the binaries above 137G.
Such systems are rare today, so with a plain simple install a /boot is not required. However, if you use raid, except raid1, or logical volume manager. a /boot is essential as grub cannot boot from these volumes.
I use lvm on top of raid5. My /boot is ext2 because there is no point in using a journalled file system for such a small partition.
Today, I could use ext4 without the journal but it was not an option when I installed as grub would not boot from ext4 at the time. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue May 10, 2011 8:23 pm Post subject: |
|
|
i do use one, because for all of my systems the "root partition" is encrypted, as is everything else. So, grub would obviously not be able to read them:
e.g.
Code: |
/dev/mapper/root on / type ext3 (rw,noatime,commit=600)
/dev/mapper/var on /var type ext2 (rw)
/dev/mapper/usr on /usr type ext3 (rw,commit=600)
/dev/mapper/tmp on /tmp type ext2 (rw,nosuid,nodev)
/dev/mapper/home on /home type xfs (rw,nosuid,logbufs=8)
|
_________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
Frustie Tux's lil' helper
Joined: 31 Aug 2007 Posts: 102 Location: My own little planet.
|
Posted: Tue May 10, 2011 9:40 pm Post subject: |
|
|
I do as well (ext2), force of habit i guess,
back in the day it happened to be the only partition readable with a boot disk (yes i said disk as in 3.5" ) |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Wed May 11, 2011 4:32 pm Post subject: |
|
|
I tend to mess with different kernels and partition layouts (and distros),
so I use a boot partition (ext2) to make my life easier. I had a lot of
problems in the early days getting Windows and Linux to play nicely
together, and after having to edit the partition table by hand I didn't
want Grub messing with it again. So Windows has hd1-3 to play with,
and Grub boots off hd5. Whatever changes happen to the partititons
beyond hd5, Grub is unaffected, and adding a new kernel or booting
from a new root partition is just a matter of updating grub.conf.
Will |
|
Back to top |
|
|
Arkhelion Apprentice
Joined: 07 Sep 2010 Posts: 151 Location: France
|
Posted: Thu May 12, 2011 9:44 am Post subject: |
|
|
Hello,
As my system has root-on-LVM and I do not want to migrate to grub2 too early (I like the simplicity of legacy grub and can't seem to find my way to understand the mess in grub2), I do use a separate /boot partition.
As for others, this partition has "noauto", so it won't mount unless I specifically want to change something in it (kernel upgrade).
As for the FS I really don't think it'll matter that much, /boot partitions tend to have small files, not a long list of them, and are only accessed at boot time, I'm not sure the FS will weigh a lot in boot optimization, so I'd say anything your bootloader can read from. _________________ Arkhelion |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu May 12, 2011 10:13 am Post subject: |
|
|
partition as ext2 too
simply to only mount it when need, don't mess with the kernel, that's the thing n°2 to boot (grub is 1), but it's for my server where i wish keep away from everyone my boot section, on my personal desktop because i wish keep it away from my "breakmygentoo" experiments, on my work computer i didn't have one, i simply never play with it. |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 455
|
Posted: Thu May 12, 2011 11:08 am Post subject: |
|
|
I normally don't, but have made one exception:
A netbook I use as a HTPC that came pre-installed with WinXP and HD-based recovery mechanism. The boot mechannism was definitely not the 'standard bios/windows boot (customized or stripped BIOS even)', as it allows very early to press a key and select the recovery mechanism. I did not want to meddle with that, so I made a separate boot partition on a FAT based USB-stick, and point BIOS to boot from the USB stick.
On another machine I am considering moving a 32 bit gentoo to 64 bit gentoo. My plan is to create a separate partition for the 64 bit install, and use the current 32 bit partition as a boot partition containing both the 32 bit and the 64 bit kernels.
Once the 64bit install is completed, I'll remove the 32 bit install, shrinking that partition into just a boot partition.
So I see that sometimes it has its uses, but I don't need it on 'normal' installs. |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 726 Location: San Diego, CA
|
Posted: Tue Jul 26, 2011 7:20 am Post subject: |
|
|
I almost always use a single partition for the whole thing without a separate boot partition (because I like to keep things simple and I'm lazy). But once I had to create a boot partition, because this old thing's BIOS wasn't able to recognize a 320GB IDE hard disk.
__
sol |
|
Back to top |
|
|
chiefbag Guru
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Tue Jul 26, 2011 8:16 am Post subject: |
|
|
I always use ext2 on its own partition for boot and usually assign 128MB size, its probably just force of habit at this stage but I do think its nice to have it this way as your boot setup is untouchable in normal operation.
The only time I have not used that layout was when installing on a PS3 where the boot was part of the main partition. |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1152 Location: /dev/koelsch
|
Posted: Tue Jul 26, 2011 9:25 am Post subject: |
|
|
Only once I had to create a boot partition, because of an old BIOS that wasn't able to recognize IDE hard disks bigger than 8GB.
In all other cases i like to have boot and root on the same partition, not only cause the KISS principle.
Especially since my perferred GRUb legacy was able to boot from my preferred ext4 filesystem.
I like to seperate every installed Linux system with it's own bootloader on its own partition (home is seperate of course).
Then you can couple every different Linux system via GRUBs chainloader, or if you like via menue entry in first grub for direct start.
The advantage i see here is the following: If you're testing with lots of different distros, and most of the stupid once (not like gentoo) which prefers update automatisms for the whole distro, including boot loaders, they can't distroy any other bootloader as their own.
Every kernel in a distros /boot directory belongs only to one linux on the same partition, prevents confusing (ok, KISS), but also for reliability.
If you do something wrong, or got a hard disk crash, you can enter your Bios to say boot from an other disk, and that works too, cause this has it's own Boot loader.
I like this strategy and it was prooved and tested by me for a long time.
The only thing i had to learn before, is how to install grub safe for my needs, and how to repair or fix a broken GRUB installation.
But as often, it's a matter of taste and with gentoo its all about choice.
Andy. _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Tue Jul 26, 2011 12:42 pm Post subject: |
|
|
I use a seperate /boot for 2 reasons:
1. My harddrive is encrypted and I use lvm
2. I use grub2 and keep a systemrescuecd iso in /boot so when problems occur (or i break stuff) i don't have to dig out a cd or usb stick to fix them.
I don't strictly need it for the second reason but when booting from iso whatever partition it's on gets mounted and sometimes when trying to fix things you want/need to unmount the filesystem. |
|
Back to top |
|
|
darkphader Veteran
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue Jul 26, 2011 2:54 pm Post subject: |
|
|
I use many separate partitions including a separate /boot partition, although have switched from ext2 to ext4 (without journal or huge file support) for it. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Tue Jul 26, 2011 4:16 pm Post subject: |
|
|
/boot with ext2, rest is BTRFS. I did install way before GRUB did know about btrfs and I am not wanting to toy around with grub and experimental filesystems. The latter one is dangerous on its own _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
|