LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2005, 04:59 PM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
/boot ext2 or ext3?


Alright, i'm talking to a friend who'se installing gentoo, and i got into an argument over this. It has to do with file systems for the /boot folder.

he has /boot in a different partition, with ext2 as his FS. I can understand why you'd have /boot in a different partition. My question is, must it be ext2?

From what i know, a FS is a FS, and ext3 is better than ext2 in terms of journalising, no data loss, no fragmentation etc.. and i'd be damned to stick my /boot in something which doesnt act like ext3....

In every slackware system i've installed on every computer, /boot is on my / partition, which is ext3. Which means that the /boot folder is ext3

Is there really a difference if i choose /boot to be ext2 or ext3?
 
Old 07-05-2005, 05:08 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
I really don't know, heck, why not make /boot reiserFS? I wouldn't really notice any speed difference or anything like that. This even goes back to old WindowNT4 configurations, where the C: partition would be fat16, and where the OS itself would reside in an NTFS partition. Though after NT4 Fat32 is supported, but really you could then choose Fat16, Fat32 or NTFS to boot off of, it wouldn't really matter much, I guess it would be a matter of preference, assuming of course your friend is not having the OS sit on an XFS partition, and he doesn't want to boot from XFS, since you can't have a superblock on XFS for some reason (I don't know why, but I just remember seeing the superblock option in the Slackware setup and it said that XFS should not be used to install lilo on XFS superblock). I personally would just leave /boot on a Reiser partition, even if the os itself would be on the same FS, just having two partitions, though, one small Reiser partition just for booting off of, and another for the os itself.
 
Old 07-05-2005, 05:09 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
----------
Is there really a difference if i choose /boot to be ext2 or ext3?
----------

the files in /boot are used only at boot, and if it's a separate partition,
it'll be very small.
so " faster " access or faster checking can't be a reason to choose one or the other.

but i wouldn't be suprised if your friend read somewhere on a gentoo forum
that ext2 is " much faster " and thus a musthave.

egag
 
Old 07-05-2005, 05:09 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's not that it MUST be ext2, there's just no benefit of having it as ext3. ext3 is just ext2 + journal. now a properly managed /boot would NOT be mounted at boot, and not used as part of a healthy system, it is only accessed at boot time, directly by the boot loader to get a boot image and maybe an initrd. consequently the journal is never used, and just wastes space and provides absolutely no benefit whatsoever.
 
Old 07-05-2005, 05:18 PM   #5
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
And we're talking about how much of a speed increase? or how much of time wasted?

I mean it just doesn't make sense to me Or is this the gentoo phillosophy of going through every possible detail there is?

EDIT:
Plus anyway, isn't ext2 a bit old now? I mean speed or no speed, you'd might as well tell me to go back to DOS coz its faster (exaduration).. if you see what i mean
 
Old 07-05-2005, 05:24 PM   #6
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
xushi

Can't comment on the ins and outs of ext2 versus ext3 but what I can say is that I have 2 Gentoo systems

System 1
Gentoo 2005.0, 2 x SATA Western Digital Raptor Hard Drives, software raid0, separate boot partition ext2

System 2
Gentoo 2005.0, 2 x SATA Western Digital Raptor Hard Drives, software raid1, separate boot partition ext3

System one I followed a tutorial, hence ext2
System two I made my own choices, hence ext3

Both work flawlessly

Pete
 
Old 07-05-2005, 05:31 PM   #7
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Heh, well, this was what i was agreeing with.. I don't find a problem at all, and you can technically say all you want that ext2 is faster than ext3 etc.... but its just not worth it..

The gentoo guys insisted otherwise.. but anyway, i don't want this to be any sort of flamewar.. i got my answer.

Thanks.
 
Old 07-05-2005, 05:33 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
There's no reason at all that they both won;t work fine.. because they are THE SAME THING. you are not making changes to /boot therefore the journal has nothgin to do. therefore they are aacting exactly the same. there is NO speed benefit anywhere, because it's not until the /boot partition has totally finished serving it's purpose that it's even possibel to write to it and therefore use the journal.

ext2 isn't "old", it's just superceded where beneficial, and it's not beneficial to use ext3 here at all.
 
Old 07-05-2005, 07:06 PM   #9
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I always use ext3. It has much better support than reiser.
 
Old 07-05-2005, 08:17 PM   #10
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
okay, the reason to use ext2 instead of ext3 on your boot partition is...

WASTE OF SPACE! your boot partition should be pretty small, and on mine a 32 mb journal would waste half of my space I could use for kernels. ext3 and reiserfs would be complete overkill, you'd waste space and never see the benefit
 
Old 07-05-2005, 09:09 PM   #11
Bluesuperman
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Hello,

I believe that some distro's do not have ext3 support built into the kernel, so they can only access the boot partition and initrd image until the ext3 modules is loaded.

That is why some distro's create the /boot partition as ext2.

Michael
 
Old 07-05-2005, 09:20 PM   #12
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
when you're loading the kernel, and fs support is in that same kernel,
how can the program that's reading it from disk have any knowledge about the fs. ?

it doesn't.
the fs support ( compiled in or in an initrd ) is used first when the kernel mounts the "/" partition.
and the kernel loader does it's work with raw disk access afaik.
( reading sectors rather than files )

egag
 
Old 07-07-2005, 12:57 AM   #13
Bluesuperman
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
HUH ?? I do not understand your post ...

First, modules can get loaded automatically depending on there need, for example the other day I was playing with CentOS 4 server (not by choice) and had some trouble with the kernel. The system was using grub and had the following:

/boot ext2 (built in)
/swap
/ ext3 (by module)

So at first I told the system to load the default kernel with out using the default initrd.img file, the kernel would start booting the system, mount the boot parition but fail in mounting the root partition because the ext3 module was located in the initrd.img which is on the /boot partition.

Now from my understanding no where is there a modprobe or ismod for ext3, when the mount command is run to mount the root parition, mount or the kernel know that hey this is a ext3 parition, lets load that module.

So they is why some people make the /boot partition ext2 because kernels from Gentoo (maybe) and RH or CentOS use module based kernels and the file system modules is kept in the initrd image on the boot parition.

Michael
 
Old 07-07-2005, 05:23 AM   #14
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Quote:
WASTE OF SPACE!
Are we talking about a few kilobytes of space and a few milliseconds of time ? I'm sorry, but i don't see how anyone should care even if its half a meg space saved, when nowadays people have gigs worth of space to spare.. Its like saying you prune your logs and delete temp internet files every hour to save on space...

Bluesuperman,
That's actually a very good argument there. I had the exact same problem on an old machine and didn't have a clue to what the cause was after compiling 2.6.11 on it. So i guess its more to do with failsafe reasons than speed/performance increase reasons for ext2 on /boot.
 
Old 07-07-2005, 08:18 AM   #15
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
Quote:
Originally posted by Bluesuperman
HUH ?? I do not understand your post ...

<snip>

So they is why some people make the /boot partition ext2 because kernels from Gentoo (maybe) and RH or CentOS use module based kernels and the file system modules is kept in the initrd image on the boot parition.

Michael
even if you make the /boot partition with reiserfs, and there's no reiserfs support in the kernel,
or in an initrd, the system will boot fine.
the kernel doesn't give a hoot about the filesystem on a separate /boot partition.
it needs fs support to mount the *root* partition.
it's lilo that reads the kernel into memory, and it uses no filesystem but sectornumbers to locate what it needs.

----from the lilo-doc----
* LILO does not know how to read a file system. Instead, the map
installer asks the kernel for the physical location of files (e.g. the
kernel image(s)) and records that information. This allows LILO to work
with most file systems that are supported by Linux.
------------------------

so there's no reason to choose any of the possible filesystems.
they are all ok, and don't need kernel support.

egag
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
EXT3 but expecting EXT2 ? no boot :-( Anarchon Linux - Newbie 13 10-25-2005 11:43 AM
ext2 | ext3 bruse Linux - Newbie 3 03-03-2005 08:10 AM
Ext2 or Ext3? Eidi Linux From Scratch 3 11-27-2003 09:21 AM
ext2 vs ext3 evano Slackware 5 06-25-2003 10:14 AM
ext2 or ext3 whitefox Slackware 13 04-20-2003 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration