Small linux no gui

Thread Tools Search this Thread
# 1  
Small linux no gui

I want to execute from a grub a very small linux that only has commands, so at startup it executes this shell script I wrote and after that the user has an option to go back to the grub.

I've heard of busybox but that doesn't seem to be helpful?

Can anyone recommend a non gui distro, that can help me achieve this.

# 2  
I don't know of a real distribution for this. That's kind of overkill by definition. You don't need a package repository, you don't need much of anything at all, just a kernel and a bundle of files.

See initramfs on how to make that bundle of files. You'd probably use busybox in it -- it's a single swiss-army-knife executable which you can use like busybox cp source destination if you want cp, busybox cat filename if you want cat, etc, etc. Be sure to have a symlink /bin/sh pointing to /bin/busybox so scripts can run.

Just put whatever script you want into init instead of the stuff you'd use to chroot into a real system.

Going back to grub isn't trivial. You can't just "quit linux" and go back to grub. The kexec option allows you to boot another kernel, which would allow you to boot grub raw again without rebooting, but would take some fiddling to manage. The quick and dirty way to manage it is, of course, to just reboot...

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

5 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

RHEL/Linux Small Monitor

Hi, I'm using RHEL 4.5, and currently due to some special circumstances that required me to use this small monitor about 7" The problem is while using this monitor with windows, the monitor able to show the graphic/view.. but while using redhat it unable to detect. This monitor has no... (7 Replies)
Discussion started by: flekzout
7 Replies

2. Linux

Damn Small Linux Booting Problems

I recently downloaded a DSL iso file. I loaded the iso in VirtualBox and it worked perfectly, but when I wrote the iso to a CD using k3b and I tried booting it, I got an error. I tried booting from the disk in VirtualBox and got the same error. "FATAL: Could not read from the boot medium! System... (3 Replies)
Discussion started by: Bradj47
3 Replies

3. Linux

cant mount cd rom in damm small linux

hey guys im rather new to linux, im runnin damm small linux on an old HP. my problem is I cant mount the cd rom drive. when I try and mount I get the mount point is being used by another directory, i tried editing the fstab file. but that didnt work. any help would be greatly appreciated. (12 Replies)
Discussion started by: format
12 Replies

4. Linux

Why is linux console window in VMWare so small?

I install linux in VMWare, but Its console window is too small, Its size is 80*25, I can't change it even though I use full srceen mode in VMWare.How can I do? please help me! Thanks! (3 Replies)
Discussion started by: ChaoZhang
3 Replies

5. UNIX Desktop Questions & Answers

Need a gui for linux.

I want one that won't run too slugish on a slower system (p 200Mhz for example). I know kde is out, anybody think gnome will run ok (I got 128 megs ram on it btw...don't ask :))? (5 Replies)
Discussion started by: pudad
5 Replies

Featured Tech Videos