LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 07-01-2015, 11:55 PM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
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
 
Old 07-02-2015, 12:54 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
etc/fstab?
 
Old 07-02-2015, 02:10 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,280

Rep: Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696
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)
 
Old 07-02-2015, 05:33 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,708

Rep: Reputation: Disabled
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.
 
Old 07-02-2015, 09:25 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
Old 07-02-2015, 02:09 PM   #6
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by TobiSGD View Post
.
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).
 
Old 07-02-2015, 03:56 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,182

Rep: Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646Reputation: 3646
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
distro with fastest boot - terminal only (dd, parted, fdisk) zz^ Linux - Distributions 5 09-16-2011 07:04 PM
Linux Distro with the fastest boot? deputyjones Linux - Desktop 21 12-06-2010 02:15 PM
Making Syslinux boot a different partition also with Syslinux. tokico Linux - Software 6 03-04-2009 10:37 AM
"Installing non-distro Linux on USB key" or "Using syslinux to boot a jffs2" lymae Linux - Newbie 6 12-31-2006 11:00 PM
Kernel image for syslinux bootable floppy??? the_rydster Linux - General 1 02-22-2004 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration