Sponsored Content
Full Discussion: nanobsd problem
Operating Systems BSD nanobsd problem Post 302716895 by turner on Wednesday 17th of October 2012 09:04:10 AM
Old 10-17-2012
nanobsd problem

hi
i have some problems with nanobsd still.
whether i set lots of WITHOUT s in CONF_WORLD or a few WITHOUT s , the image file's volume is about 600MB ...
what should i do in order to have a very light image ??

thanks ...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH Problem auth problem

Hi, Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode: warning: You have no controlling tty. Cannot read confirmation.^M warning: Authentication failed.^M Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies

2. Shell Programming and Scripting

problem with dd command or maybe AFS problem

Hi, folks. Sorry for bothering, but maybe someone could help me please. The problem is the following: there is some script that copies files from local file system to AFS. The copying is performed with dd command. The script copies data into some AFS volumes. The problem appeared with one... (0 Replies)
Discussion started by: Anta
0 Replies

3. Solaris

problem in finding a hardware problem

Hi I am right now facing a strange hardware problem. System get booted with the following error: Fatal Error Reset CPU 0000.0000.0000.0003 AFSR 0100.0000.0000.0000 SCE AFAR 0000.07c6.0000.1000 SC Alert: Host System has Reset It happen 4 or 5 times and get the same error every time.I... (8 Replies)
Discussion started by: girish.batra
8 Replies

4. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

5. UNIX for Dummies Questions & Answers

DHCP problem and eth1 problem

At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007). test007 returns the following version info: cat /etc/debian_version: lenny/sid uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4... (0 Replies)
Discussion started by: sllinux
0 Replies

6. AIX

AIX OS problem? network problem?

Dear ALL. I installed AIX OS on customer sites. but Only one site is too slow when I connected telnet, ftp.. Ping is too fast. but telnet and FTP is not connected.. of course i check the configuration file on aix but it's normal. Do any Idea?? thanks in advance. - Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies

7. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

8. BSD

nanobsd

hi friends can any one explain these for me : CONF_BUILD CONF_INSTALL CONF_WORLD and these WITHOUTs : http://phk.freebsd.dk/misc/build_options_stable_8_210741/ thanks (3 Replies)
Discussion started by: turner
3 Replies

9. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies

10. IP Networking

Router problem or ISP problem ?

Hi everyone, I am experiencing discontinuity of Internet service, this started 1 month ago. Everything worked very well for 1 year of intensive use, but now, I have problems reaching my gateway. The gateway is not my router but a node belonging to my ISP and I share the same public IP with... (3 Replies)
Discussion started by: remic
3 Replies
NANOBSD(8)						    BSD System Manager's Manual 						NANOBSD(8)

NAME
nanobsd.sh -- utility used to create a FreeBSD system image suitable for embedded applications SYNOPSIS
nanobsd.sh [-bhknw] [-c config-file] DESCRIPTION
The nanobsd.sh utility is a script which produces a minimal implementation of FreeBSD (called NanoBSD), which typically fits on a small media such as a Compact Flash card, or other mass storage medium. It can be used to build specialized install images, designed for easy installa- tion and maintenance. The following options are available: -b Skip the build stages (both for kernel and world). -c config-file Specify the configuration file to use. -h Display usage information. -k Skip the buildkernel stage of the build. -n Do not cleanup before each build stage. This suppresses the normal cleanup work done before the buildworld stage and adds -DNO_CLEAN to the make command line used for each build stage (world and kernel). -w Skip the buildworld stage of the build. The features of NanoBSD include: o Ports and packages work as in FreeBSD. Every single application can be installed and used in a NanoBSD image, the same way as in FreeBSD. o No missing functionality. If it is possible to do something with FreeBSD, it is possible to do the same thing with NanoBSD, unless the specific feature or features were explicitly removed from the NanoBSD image when it was created. o Everything is read-only at run-time. It is safe to pull the power-plug. There is no necessity to run fsck(8) after a non-graceful shutdown of the system. o Easy to build and customize. Making use of just one shell script and one configuration file it is possible to build reduced and customized images satisfying any arbitrary set of requirements. NanoBSD Media Layout The mass storage medium is divided into three parts by default (which are normally mounted read-only): o Two image partitions: code#1 and code#2. o The configuration file partition, which can be mounted under the /cfg directory at run time. The /etc and /var directories are md(4) (malloc backed) disks. The configuration file partition persists under the /cfg directory. It contains files for /etc directory and is briefly mounted read-only right after the system boot, therefore it is required to copy modified files from /etc back to the /cfg directory if changes are expected to persist after the system restarts. BUILDING NanoBSD A NanoBSD image is built using a simple nanobsd.sh shell script, which can be found in the src/tools/tools/nanobsd directory. This script creates a bootable image, which can be copied on the storage medium using the dd(1) utility. The necessary commands to build and install a NanoBSD image are: cd /usr/src/tools/tools/nanobsd sh nanobsd.sh cd /usr/obj/nanobsd.full dd if=_.disk.full of=/dev/da0 bs=64k CUSTOMIZING NanoBSD This is probably the most important and most interesting feature of NanoBSD. This is also where you will be spending most of the time when developing with NanoBSD. Customization is done in two ways: o Configuration options. o Custom functions. With configuration settings, it is possible to configure options passed to both the buildworld and installworld stages of the NanoBSD build process, as well as internal options passed to the main build process of NanoBSD. Through these options it is possible to cut the system down, so it will fit on as little as 64MB. You can use the configuration options to trim down the system even more, until it will consist of just the kernel and two or three files in the userland. The configuration file consists of configuration options, which override the default values. The most important directives are: NANO_NAME Build name (used to construct the working directory names). NANO_SRC Path to the source tree used to build the image. NANO_KERNEL Name of the kernel configuration file used to build the kernel. NANO_ARCH Machine processor architecture to build. Defaults to output of uname -p. NANO_BOOT0CFG Controls the options passed to boot0cfg(8); these dictate boot0's behaviour. NANO_BOOTLOADER The boot0 loader to use relative to the NANO_WORLDDIR variable. This defaults to boot/boot0sio and should be overridden to boot/boot0 to provide a VGA console. CONF_BUILD Options passed to the buildworld stage of the build. CONF_INSTALL Options passed to the installworld stage of the build. CONF_WORLD Options passed to both the buildworld and installworld stages of the build. FlashDevice Defines the type of media to use. Check the FlashDevice.sub file for more details. For more configuration options, please check the nanobsd.sh script. To build NanoBSD image using the nanobsd.conf configuration file, use the following command: sh nanobsd.sh -c nanobsd.conf It is possible to fine-tune NanoBSD using shell functions in the configuration file. The following example illustrates the basic model of custom functions: cust_foo () ( echo "bar=topless" > ${NANO_WORLDDIR}/etc/foo ) customize_cmd cust_foo There are a few pre-defined customization functions ready for use: cust_comconsole Disables getty(8) on the virtual syscons(4) or vt(4) terminals (/dev/ttyv*) and enables the use of the first serial port as the system console. cust_allow_ssh_root Allow root to log in via sshd(8). cust_install_files Installs files from the nanobsd/Files directory, which contains some useful scripts for system administration. FILES
src/tools/tools/nanobsd Base directory of the NanoBSD build script. EXAMPLES
Making persistent changes to /etc/resolv.conf: vi /etc/resolv.conf ... mount /cfg cp /etc/resolv.conf /cfg umount /cfg A more useful example of a customization function is the following, which changes the default size of the /etc directory from 5MB to 30MB: cust_etc_size () ( cd ${NANO_WORLDDIR}/conf echo 30000 > default/etc/md_size ) customize_cmd cust_etc_size SEE ALSO
make.conf(5), boot(8), boot0cfg(8), picobsd(8) HISTORY
The nanobsd.sh utility first appeared in FreeBSD 6.0. AUTHORS
NanoBSD was developed by Poul-Henning Kamp <phk@FreeBSD.org>. This manual page was written by Daniel Gerzo <danger@FreeBSD.org>. BSD
May 20, 2010 BSD
All times are GMT -4. The time now is 11:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy