Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-01-2015, 11:55 PM
|
#1
|
Member
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664
Rep:
|
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)
Would have some ideas?
Greetings
Pat
Code:
default latest
timeout 15
prompt 1
label latest
kernel vmlinuz
append initrd=initrd.gz root=/dev/sda2
|
|
|
07-02-2015, 12:54 AM
|
#2
|
Senior Member
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199
Rep:
|
etc/fstab?
|
|
|
07-02-2015, 02:10 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,280
|
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)
|
|
|
07-02-2015, 05:33 AM
|
#4
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,708
Rep:
|
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.
|
|
|
07-02-2015, 09:25 AM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
|
1 members found this post helpful.
|
07-02-2015, 02:09 PM
|
#6
|
Member
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
.
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).
|
|
|
07-02-2015, 03:56 PM
|
#7
|
Moderator
Registered: Mar 2008
Posts: 22,182
|
Might peek at webconverger, not sure how they got it so fast. Maybe OpenElec too.
No matter how you go, the size of the kernal and init will be key to this along with parallel loading of any services.
One of the benefits to a live image is compression usually. It is a compressed filesystem.
Not sure why you want to use Syslinux exactly. A different choice may be to use LILO.
Last edited by jefro; 07-03-2015 at 03:50 PM.
|
|
|
All times are GMT -5. The time now is 03:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|