LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2008, 01:33 AM   #1
kssuhesh
LQ Newbie
 
Registered: Aug 2007
Location: Kochi
Distribution: Mandriva
Posts: 24

Rep: Reputation: 15
Minimum space for a boot partition


Hi
I have to clear my doubt on the boot partition ...
The minimum size required for a boot partition ??

Most commonly use 100MB as the /boot size.. But I noticed the usage of the /boot partition in most of the system is less than 25%

Here I quote the disk usage of one of my system here only 9% is used.

=======================================================
[root@newvision ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 37G 7.9G 27G 24% /
/dev/hda1 99M 8.4M 86M 9% /boot
none 125M 0 125M 0% /dev/shm
192.168.1.200:/usr/home
73G 51G 16G 77% /home
=======================================================

Why we wasted the rest of the space...

Please made suggestions about that .....

Thanks
In Advance...........
 
Old 03-28-2008, 01:59 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You've got 16 Gig unused in /home, and you're worried about 86 *MEG* ????
 
Old 03-28-2008, 02:04 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
How big is that hard drive?

And you're worried about 86M of space?

I have many files larger than that.

If you won't be adding anything else, then it looks
like 9M is large enough. But why push yourself and
make it too small to add another kernel?

Here's mine on one of 6 comps:
Code:
/dev/sda5              93M   26M   68M  28% /boot

mingdao@silas:~$ ls -l /boot/
total 22644
-rw-r--r--  1 root root 1593139 2008-03-28 08:36 2.6.24.4-initrd.gz
lrwxrwxrwx  1 root root      37 2008-03-23 18:17 README.initrd -> /usr/doc/mkinitrd-1.3.1/README.initrd
lrwxrwxrwx  1 root root      25 2008-03-28 08:29 System.map -> /boot/System.map-2.6.24.4
-rw-r--r--  1 root root  743388 2008-03-28 08:29 System.map-2.6.24.4
-rw-r--r--  1 root root  844132 2008-03-19 15:22 System.map-generic-2.6.24.3
-rw-r--r--  1 root root  880295 2008-03-19 14:07 System.map-generic-smp-2.6.24.3-smp
-rw-r--r--  1 root root 1282654 2008-03-19 15:36 System.map-huge-2.6.24.3
-rw-r--r--  1 root root 1320434 2008-03-19 14:55 System.map-huge-smp-2.6.24.3-smp
-rw-r--r--  1 root root     512 2008-03-23 18:31 boot.0800
lrwxrwxrwx  1 root root      28 2008-03-23 18:26 config -> config-huge-smp-2.6.24.3-smp
-rw-r--r--  1 root root   82369 2008-03-19 15:22 config-generic-2.6.24.3
-rw-r--r--  1 root root   82657 2008-03-19 14:07 config-generic-smp-2.6.24.3-smp
-rw-r--r--  1 root root   82208 2008-03-19 15:36 config-huge-2.6.24.3
-rw-r--r--  1 root root   82606 2008-03-19 14:55 config-huge-smp-2.6.24.3-smp
-rw-r--r--  1 root root    5040 2008-03-08 08:26 diag1.img
drwxr-xr-x 10 root root    4096 2008-03-28 08:36 initrd-tree/
-rw-r--r--  1 root root 1743720 2008-03-24 18:35 initrd.gz
-rw-------  1 root root   36864 2008-03-28 08:36 map
-rw-r--r--  1 root root   15754 2008-02-22 08:08 slack.bmp
lrwxrwxrwx  1 root root      29 2008-03-23 18:26 vmlinuz -> vmlinuz-huge-smp-2.6.24.3-smp
-rw-r--r--  1 root root 1541144 2008-03-28 08:30 vmlinuz-2.6.24.4
-rw-r--r--  1 root root 2055448 2008-03-19 15:22 vmlinuz-generic-2.6.24.3
-rw-r--r--  1 root root 2167224 2008-03-19 14:07 vmlinuz-generic-smp-2.6.24.3-smp
-rw-r--r--  1 root root 4204984 2008-03-19 15:36 vmlinuz-huge-2.6.24.3
-rw-r--r--  1 root root 4369624 2008-03-19 14:55 vmlinuz-huge-smp-2.6.24.3-smp
PC = personal computer = your choice
 
Old 03-28-2008, 02:05 AM   #4
ashok choudhary
LQ Newbie
 
Registered: Mar 2008
Location: Jaipur
Distribution: el3,4,5 ,ubuntu,suse,fedora,whitebox
Posts: 1

Rep: Reputation: 0
By Niht Pvt.ltd. Jaipur-+91-9829251646

Hi,
when your system boots at that time it creats some temporary files
that's why we required some extra space for boot partition in linux/windows
 
Old 03-28-2008, 02:34 AM   #5
Natilous
Member
 
Registered: Sep 2005
Location: Iran
Distribution: Parsix 1.0 , Debian etch 4.0r1
Posts: 31

Rep: Reputation: 15
space of boot partition depends on your kernels...
if you have many kernels run in your pc, size of boot partition must be larger than 86MB .

good luck.
 
Old 03-28-2008, 03:31 AM   #6
aarcane
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
a standard desktop system can make due with 15-20 MB of space easily, and even less. however, having spare space allows, for example, sharing a /boot partition between multiple distros, or having previous or alternate kernels, for example, an rt kernel for music mixing, and a standard kernel for every day work stuff.

if you considder that you can't buy a harddrive smaller than 40G today, allocating 100M to /boot is perfectly reasonable. of course, if you're setting up a desktop, running only one distro, and using ext2 or any filesystem that grub supports natively, don't even bother with /boot.
 
Old 03-28-2008, 06:01 AM   #7
kssuhesh
LQ Newbie
 
Registered: Aug 2007
Location: Kochi
Distribution: Mandriva
Posts: 24

Original Poster
Rep: Reputation: 15
I just want to know the size of the boot partition mainly. The disk usage I mentioned is for showing the boot partition usage.

Is it possible to create temperory files in the /boot. At boot up the partitions are mounted as readonly then how it is possible ???
 
Old 03-28-2008, 06:28 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
A separate /boot partition is not required at all...If you think you need one, then there is no real penalty for making it 100MB.

I think that some systems initially mount partitions read-only, but then later change to read-write. Run the "mount" command after bootup to see.
 
Old 03-28-2008, 06:39 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
A separate boot partition is a good idea if your main partition is an LVM volume. If you reinstall in the future you could make the /boot partition smaller. 40-50MB would be fine and allow for 4 or more kernel/initrd's.
 
Old 03-28-2008, 07:41 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi

The main reason behind a separate '/boot' partition was to get under the '1024 cylinder limit' problem. This problem doesn't exist with modern Linux systems. The use of the '/boot' is for the system kernel(s), system information and possible 'initrd' uses.

If the 'OP' is using multiple boots and needs separate kernels and such then '100MB' in modern computer HDD is really small in comparison for a '/boot'. As stated this is a 'PC' and should be able to do as he/she wishes.
 
Old 03-28-2008, 03:48 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by onebuck View Post
Hi

The main reason behind a separate '/boot' partition was to get under the '1024 cylinder limit' problem. This problem doesn't exist with modern Linux systems.
This problem doesn't exist with modern *BIOS* - it was never an operating system problem, per se. Linux or otherwise. Windows used to require the first partition on a disk - this helps explain why.

As for size of a boot partition - some installers make ridiculous assumptions. On two separate systems I have had to increase my boot to accommodate Ubuntu upgrades because the partition was reported as too small. One had 48 Meg free.
 
Old 03-28-2008, 05:40 PM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by syg00 View Post
This problem doesn't exist with modern *BIOS* - it was never an operating system problem, per se. Linux or otherwise. Windows used to require the first partition on a disk - this helps explain why.

As for size of a boot partition - some installers make ridiculous assumptions. On two separate systems I have had to increase my boot to accommodate Ubuntu upgrades because the partition was reported as too small. One had 48 Meg free.
And the problem with my statement? The problem doesn't exist with modern Linux systems, I did not state operating systems. I never made a M$ statement.
 
Old 03-28-2008, 06:54 PM   #13
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
The bottom line is that you really don't want to run out of space in there, assuming that you have the necessary files for, say, "two or three" kernel-versions: the current one and a couple of earlier ones that you can use as fallbacks.

Many distros supply several kernel-images "just in case" you need them; if you know you don't, you can remove them. For example, your distro has installed four possibilities:
  • "Huge" RAM-sizes or "not so huge"
  • Multiple CPUs/Cores ("SMP"), or "just one engine."
You don't need them all.

As usual, "wasteful equals convenient," and sometimes "convenient" wins. If you're concerned about having too much space here, I think I'd worry about other things first. If you do determine what's the "minimum" size-requirement, well, you might do so by means of regret!

Last edited by sundialsvcs; 03-28-2008 at 06:56 PM.
 
Old 03-28-2008, 10:25 PM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The /boot partition is separate from the boot loader so that the boot loader can load in the kernel and initrd. A 50-100MB partition out of a 60GB drive doesn't amount to much.
 
Old 03-29-2008, 12:10 AM   #15
aarcane
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
a /boot partition is required because grub doesn't support such things as raid1, 5. lvm, encrypted, and compressed file systems as root. nor does lilo. you have to have the kernel and the initrd in a location that grub can find them. once they're loaded, you can have root wherever you want.

if grub can read your / partition, IE ext2, ext3, etc.. you can do without a /boot
 
  


Reply

Tags
partition



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
Resizing a boot partition to free more space harlikoen Linux - Hardware 4 05-06-2007 11:00 AM
RH7.2 ext3 reserve space minimum AlabamaPaul Red Hat 3 04-16-2007 01:23 PM
/boot partition space sujte Linux - General 11 10-18-2005 05:14 PM
Minimum HDD space requirements for Linux install adstafford Linux - Hardware 8 03-21-2005 02:57 PM
Vector Linux minimum hard drive space? mark_2811 Linux - Distributions 1 11-09-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

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