Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Should the /boot partition be only ext2 type?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
The_Saint
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2004
Posts: 108

PostPosted: Thu Nov 04, 2004 5:17 pm    Post subject: Should the /boot partition be only ext2 type? Reply with quote

Hi.
I have noticed that in the examples of the Gentoo installation instructions the type of the /boot partition is always of ext2 type (while the rest ones are ext3). Is there a reason for this? Can I choose ext3 for /boot? What about Raiser?
Back to top
View user's profile Send private message
kaffeen
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 139
Location: The Frozen North

PostPosted: Thu Nov 04, 2004 5:30 pm    Post subject: Reply with quote

I believe they show ext2 as the /boot filesystem so they can include a variety of filesystems (ie. ext2, ext3, xfs, reiserfs).

You should have no problems with either ext3 or reiserfs for your boot partition.
Back to top
View user's profile Send private message
tom purl
n00b
n00b


Joined: 01 Sep 2004
Posts: 61

PostPosted: Thu Nov 04, 2004 6:08 pm    Post subject: Reply with quote

Just remember to compile your /boot filesystem type into the kernel, not as a module. If your /boot partition is formatted as reiserfs and you compile reiserfs as a module, then your system will never be able to load that module.

All of my partitions are formatted as reiserfs except for my /boot partition. Here's my rationale:

  • The boot partition is very small and it does a very specific job, so things like extended metadata (XFS) and speed (reiserfs) aren't terribly important. Most of the files that are used in that partition are stored in RAM anyways.
  • The ext2 filesystem is the most stable fs available in Linux. Stability is extra-important when it comes to the boot partition.
  • In the past, most system recovery tools only worked with the ext2 file system, so your boot paritition had to use that fs. Today, with tools like Knoppix, this is no longer true, but it still doesn't hurt to have a /boot partition that is easily readable by lots of recovery tools.


HTH!

Tom Purl


Last edited by tom purl on Thu Nov 04, 2004 6:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Fitzsimmons
Guru
Guru


Joined: 01 Jan 2003
Posts: 415
Location: Waterloo, Ontario, Canada

PostPosted: Thu Nov 04, 2004 6:11 pm    Post subject: Reply with quote

ext2 is the best choice for /boot.

Check out this thread:

https://forums.gentoo.org/viewtopic.php?t=164592

Especially my post. 8)
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Thu Nov 04, 2004 9:02 pm    Post subject: Reply with quote

tom purl wrote:
Just remember to compile your /boot filesystem type into the kernel, not as a module. If your /boot partition is formatted as reiserfs and you compile reiserfs as a module, then your system will never be able to load that module.

This is true for the root partition, not boot.

The fs of /boot does not really matter as long as grub can read it.

robelix
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Thu Nov 04, 2004 9:26 pm    Post subject: Reply with quote

The_Saint,

Most newer filesystems are journaling filesystems of one sort or amother. That means that
1) Some space, usually 32Mb or more is allocated to the journal
2) Large journaled filesystems are faster to fsck thsn non journaled ones.

Since /boot is both small and almost never written, a journal fs is wasted and ext2 is perfectly adequate on /boot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DislexiK
n00b
n00b


Joined: 09 Nov 2003
Posts: 72
Location: /home/dislexik

PostPosted: Thu Nov 04, 2004 10:53 pm    Post subject: Reply with quote

Thats not correct,

You do not even need for filesystem support for Boot within the kernel, when lilo for example loads the kernel it loads the biginning of the kernel from raw location, then the entire kernel is loaded into memory, can you see why this is? Basically how do you load the kernel from /boot partition based on accessing the boot partition for example which may be ext2 if in the first case you do not have the kernel to do so - catch 22 ;) - so it loads it from raw location on the HDD.

However when it comes to booting your system past loading the kernel for example initiating the system into the different run levels you will require the filesystem in which / is created with compiled into your kernel or if modules create an initrd.

Hope this helps

DislexiK
_________________
DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users
Back to top
View user's profile Send private message
The_Saint
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2004
Posts: 108

PostPosted: Fri Nov 05, 2004 10:23 am    Post subject: Reply with quote

Many thanks, everybody.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum