Fastest Bootable Linux-Distro Ever for a Syslinux boot?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fastest Bootable Linux-Distro Ever for a Syslinux boot?
Hello,
Aim:
The goal is to load/boot Linux directly from the first fat16 partition that is on the harddisk, very fast (probably with a busybox maybe) in 1-5 seconds, to allow to edit a file (terminal editor such as nano or MS Edit) which is located on the FAT16 /dev/sda1.
The PC machine has a /dev/sda1 with the vfat16 with syslinux on it. The /dev/sda2 has linux, and sda3 for the swap.
An image of a tiny linux as img maybe booting the /dev/sda1 would be maybe possible.
It would be simple to use the syslinux to get a menu which tells
1: Tiny Linux for /dev/sda1 FAT16 (/home/user/notes)
2: Normal boot (/dev/sda2, vmlinuz)
fastest? I think you need appropriate hardware for that, not a distro. You need to minimize the number of devices (also I think swap is not really necessary, but you know) and boot system into memory. Finally suspend it and instead of rebooting just wake it up. (That file should be available on a fast device)
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,501
Rep:
Quote:
1-5 seconds
To get that sort of speed you would be coming out of a suspended O/S.
Dos would boot in about that sort of time, but not a unix like system, as it has to check what hardware is available & load the relevant drivers, before giving you a VT.
1. Use a customized kernel that only includes drivers for the needed hardware. Not the hardware that is present, but only the hardware that is explicitly needed for the job. In your case that might be nothing more than a generic video driver, the driver for the storage controller and filesystem in use and a keyboard driver. Built all the needed drivers into the kernel, not as modules.
2. Create your own distro, using Busybox. Only compile stuff into Busybox that you really need. Busybox comes with a feature reduced clone of the vi text editor, if that is not enough you will have to built libraries and the text editor of your choice, too.
3. May not be necessary, but for single purpose systems like these I usually use the kernel's feature to attach the root filesystem to the kernel. This may help because it avoids as much disk access while booting as possible.
In general, keep the system as minimal as possible to keep loading times short.
.
2. Create your own distro, using Busybox. Only compile stuff into Busybox that ...
I have my own distro, it is called Tinydebianix -- hey hey It rocks and actually it uses syslinux menu. I had to make my own distro since the debian iso hybrid is pretty/quite buggy (still today) on modern hardwares. However, I do not have busybox on it, and I am not looking (due to important lack of time).
I guess that a very light iso would be fine, I could bought it directly with the syslinux (as live iso image).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.