You are not logged in.
First of all I apologize in advance if this subject has already been brought up before. I did some researches but couldn't find anything that would answer my questions.
I would like to try Real Time (and Linux-ck later) but my /boot partition (100MB) won't let me put any file in it because there's not enough space. Here's what I got when trying to install the linux-rt package from the AUR:
{standard input}: Assembler messages:
{standard input}: Fatal error: can't write lib/ts_fsm.mod.o: No space left on device
{standard input}: Fatal error: can't close lib/ts_fsm.mod.o: No space left on device
lib/ts_fsm.mod.c:32:1: fatal error: closing dependency file lib/.ts_fsm.mod.o.d: No space left on device
"depends=";
^
compilation terminated.
/tmp/yaourt-tmp-pikachu/aur-linux-rt/src/linux-3.12/scripts/Makefile.modpost:111: recipe for target 'lib/ts_fsm.mod.o' failed
make[1]: *** [lib/ts_fsm.mod.o] Error 1
Makefile:949: recipe for target 'modules' failed
make: *** [modules] Error 2
I also tried to expand the /boot partition with some livecd and Gparted but it's apparently impossible unless I completely erase it. Should I back it up and make another, bigger one or is there another solution... or maybe some element I overlooked?
Hope I was clear enough. Thanks in advance!
Last edited by Marchare (2013-12-22 16:51:01)
Offline
This looks to be a yaourt issue (it chokes on large builds unless you point it at another build dir), not the size of your /boot.
Offline
This looks to be a yaourt issue (it chokes on large builds unless you point it at another build dir), not the size of your /boot.
Well, I also managed to compile a vanilla kernel with the rt patchs just fine but couldn't put the bzImage file in /boot because of a space issue so I guess it's a partition issue. I probably couldn't have installed linux-rt with yaourt with the exact same reasons I couln't install with "manually".
Offline
You can tell yaourt to build somewhere else, use --tmp commandline switch or edit /etc/yaourtrc, uncomment and change
#TMPDIR="/tmp"
to somewhere else.
You can compress the images so 100 MB should be enough.
Offline
I have the Arch vanilla kernel and initrd and my own custom kernel in /boot and am only using 39M. 100M should be plenty.
Offline
I use 469M but 392M is an iso image. However, it might depend what else is there. For example, if this is an ESP created by the Windows installer, I don't know how much space Windows might take up there.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
... but couldn't put the bzImage file in /boot because of a space issue so I guess it's a partition issue.
What commands did you use, and what were the actual error messages?
What is the output of `df -h`?
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Retry with makepkg.
Offline
try with 'make localmodconfig'
Offline
Wow, so many replies!
Sorry if my reply took long; had to yaourt the kernel again with TMPDIR="/var/tmp" in the yaourtrc config file. I got this error:
error: Partition /boot too full: 9047 blocks needed, 2048 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
By the way if it normal that I now find a folder called "linux-rt" that weights ~61 MiB in my /boot partition?
Also df -h gives me this (excluding other partitions):
/dev/sda5 97M 95M 0 100% /boot
Offline
That's your partition, you should know what's there and why :-)
Are you sure you never used linux-rt kernel https://aur.archlinux.org/packages/linux-rt/ ?
Offline
Why did you build the rt kernel in /boot? Build it somewhere else and then just copy the kernel and intrd there...
Offline
That's your partition, you should know what's there and why :-)
Are you sure you never used linux-rt kernel https://aur.archlinux.org/packages/linux-rt/ ?
Why did you build the rt kernel in /boot? Build it somewhere else and then just copy the kernel and intrd there...
I never used linux-rt, nor any other kernel than the default one before. Because I'm completely inexperienced I most likely screwed up somewhere in the process. The "linux-rt" folder appeared in /boot after trying to install the kernel with yaourt.
According to the tutorial (written in French here) I was using as a reference one is supposed to compile the kernel, make the bzImage file then copy it along with System.map to /boot.
Last edited by Marchare (2013-12-21 01:45:18)
Offline
What exactly is in that linux-rt directory?
Offline
What exactly is in that linux-rt directory?
Here is what I get with ls:
arch Kbuild Makefile README vmlinux
COPYING Kconfig Module.symvers REPORTING-BUGS vmlinux.o
CREDITS MAINTAINERS patch-3.12.5-rt7.patch System.map
Offline
Remove the directory and all of its contents and follow jasonwryan's advice https://bbs.archlinux.org/viewtopic.php … 0#p1362490
Offline
I don't exactly know what exact files initrd is referring to.
BTW should I move /linux-rt/arch/x86/boot/bzImage to /boot then?
Offline
In my /boot I only have
$ ls /boot
initramfs-linux-fallback.img initramfs-linux.img memtest86+ syslinux vmlinuz-linux
'memtest86+' and 'syslinux' are directories.
initrd is e.g. /boot/initramfs-linux.img
https://en.wikipedia.org/wiki/Initrd#Implementation
Offline
I don't exactly know what exact files initrd is referring to.
https://wiki.archlinux.org/index.php/Initramfs
BTW should I move /linux-rt/arch/x86/boot/bzImage to /boot then?
No. Please use the package manager for this purpose.
Offline
Please use the package manager for this purpose.
What am I supposed to do with the pachage manager? I will get the same error if I Yaourt the Linux-rt kernel, right?
Offline
Why would you get any error if you clear the space that is occupied by the contents of linux-rt directory?
You don't have to use yaourt, makepkg works too :-)
Offline
What am I supposed to do with the pachage manager? I will get the same error if I Yaourt the Linux-rt kernel, right?
With a package manager, you manage your packages. Yaourt is not a package manager, neither is makepkg. Pacman is your package manager. Makepkg is a great tool for making packages, that are then installed and managed with pacman. Yaourt is a great tool for preventing you from understanding anything that is happening in your system.
Use makepkg to make a pakage and pacman to install it.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Note that you shouldn't be able to build something in /boot because you should be building as an unprivileged user and /boot should only be writeable by root.
I don't even build stuff as me but I'm perhaps more paranoid than most. But I would certainly never compile code as root and neither should you.
Last edited by cfr (2013-12-22 03:07:18)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Alright, after downloading the package from the AUR and installing the kernel with makepkg, plus fixing some issue with GRUB Linux-rt is working fine now.
Thanks everyone for your help!
Last edited by Marchare (2013-12-22 17:53:55)
Offline