Sponsored Content
Full Discussion: Small linux no gui
Top Forums UNIX for Dummies Questions & Answers Small linux no gui Post 302659277 by Corona688 on Wednesday 20th of June 2012 03:57:46 PM
Old 06-20-2012
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...
 

5 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Linux GUI

I got Linux 9 installed on my system with the GUI. One fine day....the GUI wouldn't start. How should i set it right? (2 Replies)
Discussion started by: preeya
2 Replies

2. 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

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

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

5. 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
update-grub(8)						      System Manager's Manual						    update-grub(8)

NAME
update-grub - program to generate GRUB's menu.lst file SYNOPSIS
update-grub DESCRIPTION
update-grub is a program used to generate the menu.lst file used by the grub bootloader. It works by looking in /boot for all files which start with "vmlinuz-". They will be treated as kernels, and grub menu entries will be created for each. It will also create the initial menu.lst if none exists, after prompting the user. It will also add initrd lines for ramdisk images found with the same version as kernels found. e.g. /boot/vmlinuz-2.4.5 and /boot/initrd-2.4.5 will cause a line of "initrd=/boot/initrd-2.4.5 or similar to be added for the ker- nel entry in the menu.lst. After update-grub has been run for the first time, the user is required to edit the generated menu.lst. The user must set the two options update-grub uses. Then re-run the update-grub script to update the menu.lst file using the default's that have been set. These are the options passed to the linux kernel: # kopt=root=/dev/hda1 ro Everything after "kopt=" is passed to the kernel as parameters. See bootparam(7) for more information. This is the grub device from which grub loads the kernel: # groot=(hd0,1) (hd0,1) is a partition in grub notation. See grub(8) for more information. This option controls if grub should create the alternative boot options in the menu entries # alternative=true # alternative=false This option controls if grub should lock the alternative boot options see grub(8) for more information. # lockalternative=true # lockalternative=false This option controls if grub should lock the old kernels. # lockold=true # lockold=false This options controls what is used for the alternative boot options, multiple altoptions lines are allowed. # altoptions=(some description) some kernel command line options # altoptions=(recovery option) single The description is placed in '()' and the kernel command line options follow that. # updatedefault=true # updatedefault=false This option controls if grub should update the default entry to keep booting the same kernel even if a new one is installed. The update-grub script can be ran automagically from the /etc/kernel-img.conf file by adding the following lines: postinst_hook = update-grub postrm_hook = update-grub do_bootloader = no For further information related to /etc/kernel-img.conf, see the manpage kernel-img.conf(5). SEE ALSO
grub(8), grub-install(8), kernel-img.conf(5) (contained in the kernel-package package), bootparam(7). The full documentation for grub is maintained as a Texinfo manual in the grub-legacy-doc package. If the info and grub programs are prop- erly installed at your site, the command info grub should give you access to the complete manual. AUTHOR
This manual page was written by Jason Thomas <jason@debian.org>, for the Debian GNU/Linux system (but may be used by others). Jason Thomas June 18, 2001 update-grub(8)
All times are GMT -4. The time now is 10:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy