You are not logged in.
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
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
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
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
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
Did you consider using syslinux instead ?
it is much lighter then grub2 is and easy to install
Offline
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
Thanks for all your answers guys, it helped me a lot !
Offline