You are not logged in.

#1 2012-07-25 16:22:07

Yimgo
Member
Registered: 2012-07-25
Posts: 3

[SOLVED] /boot full after grub2 installation

Hi guys !

I decided to upgrade my old grub-legacy to grub2.
I followed the wiki page, everything is working well.
There is only one annoyance: after login, I get a notification telling me that /boot is almost full.
I installed arch months (years ?) ago and I choose default size for /boot, which happens to be 32M.

$ df -h | grep /boot
/dev/sda1        31M   28M  1.1M  97% /boot
$ ls -alh /boot
total 19M
drwxr-xr-x  4 root root 1.0K Jul 24 21:58 .
drwxr-xr-x 20 root root 4.0K Jul 24 22:14 ..
drwxr-xr-x  6 root root 1.0K Jul 24 22:33 grub
-rw-r--r--  1 root root  13M Jul 24 21:52 initramfs-linux-fallback.img
-rw-r--r--  1 root root 3.3M Jul 24 21:52 initramfs-linux.img
drwx------  2 root root  12K Apr 13 12:06 lost+found
-rw-r--r--  1 root root 3.3M Jul 20 08:27 vmlinuz-linux
# du -h /boot/
2.5M	/boot/grub/fonts
2.7M	/boot/grub/themes/starfield
2.7M	/boot/grub/themes
1.8M	/boot/grub/i386-pc
2.5M	/boot/grub/locale
9.4M	/boot/grub
12K	/boot/lost+found
28M	/boot/

/boot/grub weighs about 10M while grub legacy was about 500K !

Is there any solution to lighten /boot ? I see a couple of these:

  • removing /boot/grub/themes: I don't care about themes

  • reinstalling grub-legacy

I'm also surprised that initramfs-linux-fallback.img weighs 13M.

Or isn't this poor remaining size a problem ?

Thank you for helping,
Yimgo

(Please excuse my shaky English)

Last edited by Yimgo (2012-07-28 14:51:04)

Offline

#2 2012-07-25 16:56:20

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] /boot full after grub2 installation

Regarding the fallback image, do you have any unnecessary hooks in mkinitcpio.conf?  And have you tried different compression methods?


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2012-07-25 17:01:19

Yimgo
Member
Registered: 2012-07-25
Posts: 3

Re: [SOLVED] /boot full after grub2 installation

EDIT:

MODULES="i915"
HOOKS="base udev autodetect pata scsi sata filesystems usbinput fsck"

When setting COMPRESSION to gzip, image files weigh exactly the same.

Last edited by Yimgo (2012-07-25 17:17:03)

Offline

#4 2012-07-25 17:20:21

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: [SOLVED] /boot full after grub2 installation

If you don't use the starfield theme you can remove it. You can also remove unused locales I think.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2012-07-25 19:29:14

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] /boot full after grub2 installation

gzip compression is done by default if you don't set COMPRESSION.

Also, look into removing one or more of pata, scsi, and sata from HOOKS.  You really shouldn't need all three.

Last edited by alphaniner (2012-07-25 19:30:14)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2012-07-26 05:47:00

robin67
Member
From: the Netherlands
Registered: 2012-02-18
Posts: 45

Re: [SOLVED] /boot full after grub2 installation

Did you consider using syslinux instead ?
it is much lighter then grub2 is and easy to install

Offline

#7 2012-07-26 14:43:00

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,048

Re: [SOLVED] /boot full after grub2 installation

Compressing using xz for example the kernel?
big the /boot by about 10M (shink Swap if possible to reach the 10M)


Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::

Offline

#8 2012-07-28 14:50:48

Yimgo
Member
Registered: 2012-07-25
Posts: 3

Re: [SOLVED] /boot full after grub2 installation

Thanks for all your answers guys, it helped me a lot !

Offline

Board footer

Powered by FluxBB