View previous topic :: View next topic |
Author |
Message |
veggie2u Apprentice
Joined: 16 Oct 2002 Posts: 212 Location: Minneapolis/MN USA
|
Posted: Mon Jan 17, 2005 5:35 pm Post subject: Do you need /boot partition mounted? |
|
|
I have been running Gentoo for quite a while now, and it used to suggest in the Handbook to not have boot auto mounted (noauto in fstab), and that is what I do.
My systems run, so it must be ok, but when I mentioned in a forum on arstechnica.com here someone suggested that linux wouldn't run correctly without a /boot, and specificly mentioned that System.map needs to be available to the logger, and it should be in boot. So, I thought I would pose to Gentoo folks about what this may be about.
veggie2u _________________ http://www.cyberward.net
http://www.annieandchris.net |
|
Back to top |
|
|
AllTom Tux's lil' helper
Joined: 26 Nov 2003 Posts: 147 Location: Wherever danger lies...
|
Posted: Mon Jan 17, 2005 6:03 pm Post subject: |
|
|
I generally do not run my computers with boot mounted, although I haven't used Gentoo in a while. When I did use Gentoo full-time, I only ever mounted /boot when installing a new kernel. (Note most kernel installation instructions tell you to "mount /boot; cp kernel /boot/; umount /boot".) _________________ rtylershaw: "My computer doesn't even work and I love this distro. Weird." |
|
Back to top |
|
|
frippz Guru
Joined: 22 Aug 2002 Posts: 460 Location: Sweden
|
Posted: Mon Jan 17, 2005 6:04 pm Post subject: |
|
|
The /boot partition is accessed during the boot-up process. But after that, it isn't needed anymore. Save for putting new kernel onto it or configuring GRUB. |
|
Back to top |
|
|
veggie2u Apprentice
Joined: 16 Oct 2002 Posts: 212 Location: Minneapolis/MN USA
|
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Mon Jan 17, 2005 6:28 pm Post subject: |
|
|
I have no idea what System.map is for. I don't bother copying it to /boot anymore and everything still seems to work fine. |
|
Back to top |
|
|
veggie2u Apprentice
Joined: 16 Oct 2002 Posts: 212 Location: Minneapolis/MN USA
|
Posted: Mon Jan 17, 2005 6:59 pm Post subject: |
|
|
Ok, I found something here.
Quote: | To help us understand cryptic oops output, Linux uses a daemon called klogd, the kernel logging daemon. klogd intercepts kernel oopses and logs them with syslogd, changing some of the useless information like c010b860 with information that humans can use. In other words, klogd is a kernel message logger which can perform name-address resolution. Once klogd tranforms the kernel message, it uses whatever logger is in place to log system wide messages, usually syslogd.
To perform name-address resolution, klogd uses System.map. Now you know what an oops has to do with System.map. |
This appears to be the most important use for it. It is also mentioned that if it isn't in the /boot mount point, it will look in /usr/src/linux and use the System.map file there. If you only use one kernel, then you will be fine with it there.
Anyway, if you are not interrested in kernel 'oops' messages being readable or not, it appears to make little difference. _________________ http://www.cyberward.net
http://www.annieandchris.net |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Mon Jan 17, 2005 7:22 pm Post subject: |
|
|
Besides, almost every gentoo user will have a System.map available at /usr/src/linux as we all compile our own kernels. |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Jan 18, 2005 4:18 am Post subject: |
|
|
I personally leave /boot unmounted, unless I need to change something in it. Leaving it mounted really won't cause any problems, but I think most people leave it unmounted for system imntegrety reasons (ie. no files can get screwed up in /boot if it's unmounted). |
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Tue Jan 18, 2005 4:30 am Post subject: |
|
|
my /boot remained unmounted until i installed hal and his buddies, which seem to think it should be mounted. i don't notice a difference either way, except a reduction in mysterious-kernel-disappearance syndrome. _________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
Mayhem n00b
Joined: 24 May 2003 Posts: 70 Location: Spijkenisse, the Netherlands
|
Posted: Fri Jan 21, 2005 10:14 am Post subject: |
|
|
I've used gentoo on ppc for a while. It said in the docs that you shouldn't use a seperate /boot partition on that arch. Anyone know why?
I only have x86 hardware atm so it's just curiosity. _________________ I laugh in the face of danger... Then i hide until it goes away. |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Sat Jan 22, 2005 3:00 pm Post subject: |
|
|
Mayhem wrote: | I've used gentoo on ppc for a while. It said in the docs that you shouldn't use a seperate /boot partition on that arch. Anyone know why?
I only have x86 hardware atm so it's just curiosity. |
I think in the case of PPC you can't use grub or lilo (correct me if I'm wrong). So I guess whatever bootloader you do use may not be able to handle a seperate boot partition. This is only a guess though. |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Sat Jan 22, 2005 10:45 pm Post subject: |
|
|
Since you copy over your System.map, there still is a System.map available in /usr/src/linux.
There is no absolute truth to the advantage/disadvantage of having /boot mounted or not. Some say it's more secure (less chance on screwing your kernels), others say that screwing your / will make your system as unbootable as screwing with the kernel.
In my opinion, everything that isn't needed during regular system operation shouldn't be available. Mine is unmounted and, next to the kernel, also contains the configuration file (backup), partition table backup and some other small thingies that I rather have available on /boot (although they're also on a separate machine and backed up).
Others like to keep /boot mounted so they can immediately edit their bootconfig or put up a new kernel. It's all up to you to decide. The handbook doesn't recommend placing noauto, it states that some people like to have it not mounted automatically and informs you how to do the same. |
|
Back to top |
|
|
|