Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [busybox]

BusyBox combines tiny versions of many common UNIX utilities into a single small executable.

4
votes
1answer
142 views

gunzip on Embedded machine

I'm using BusyBox 1.24.1 on my Embedded Linux machine (with kernel v3.10.31) and I get behavior I can't understand when unzipping files.  The gunzip command (often, but not always) fails, with no ...
3
votes
1answer
3k views

busybox and nfs mounts

As part of a startup a rescuecd uses busybox to mount a nfs share with data, but during the nfs share mount, busybox (version v1.18.2 from systemrescuecd) always fails to mount the nfs share. And i do ...
2
votes
1answer
2k views

How to correctly stop busybox shell process and child process?

The actual server process is spawned by a shell script I am trying to write an init script for djb daemontools within Entware on a router running busybox 1.24 (ash shell). The daemontools way to ...
1
vote
1answer
24 views

Truncated Syslog on OpenWrt

I configured OpenWrt to send syslog to a remote system. This has been working nicely for a long time, however I was missing logs from nginx. nginx on OpenWrt does not support logging to syslog, so ...
1
vote
1answer
2k views

How to Autorun a program using busybox after boot?

I am using an embedded linux with busybox. I would like to automatically run my app called "myApplication" (runlevel 5 after boot all the services are up). What I have done so far: I made a script ...
1
vote
1answer
117 views

Buildroot use classic GNU package instead of BusyBox one

I'm wondering how to use the "classic" GNU tools instead of BusyBox ones for a specific command. The command I want to act like on a classic Linux is mount, but I think it's the same for every ...
1
vote
1answer
114 views

Better way to retrieve n-th (index) positional parameter value in `ash` then `eval echo \$$n`?

I'd wish the user to select a file from a numbered list on screen in a mkinitcpio busybox ash environment. The list needs to be filled/sorted from top to bottom and printed in columns, like: 1) 2017-...
1
vote
1answer
496 views

Unable to boot into Zorin OS - ending in BusyBox

I'm running Zorin OS 12.2 (downloaded and installed in September 27th this year) on a Dell XPS 13. I installed Zorin instead of the pre-installed Windows 10 (I'm aware that Dell XPS ships with Ubuntu ...
1
vote
1answer
182 views

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How?

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How? Note: Debunking the myth of Linux Filesystems not getting fragmented. http://www.webupd8.org/2010/...
1
vote
1answer
197 views

What does it mean to “just add /dev, /etc, and a Linux kernel” - BusyBox

I have been reading the documentation of BusyBox with the intention of using its small filesize to make a bootable cd. The documentation states To create a working system, just add /dev, /etc, and ...
4
votes
0answers
1k views

Accessing regular linux commands in Huawei's Dopra Linux

Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping ...
3
votes
0answers
465 views

change ls color on OpenWrt

I am not able to change the color of dir entries for ls command (dark blu is a very annoying color to read) on my OpenWrt device. I've added the line LS_COLORS=$LS_COLORS:'di=0;37:' ; export ...
3
votes
0answers
3k views

Check if Keyboard and Mouse are plugged in

Is there a way to detect if a keyboard and a mouse is plugged in (and working) in Linux? This will be embedded in a PXE setup, so I only have Kernel + Modules and Busybox available. Bonus question: ...
2
votes
0answers
1k views

How to Install and run python and database over busybox

I purchased a a WiFi server terminal which runs Busybox and only comes with a http web implementation which pops up once you connect to the WiFi. I'd like to support for SQL (or some variation) and ...
2
votes
0answers
862 views

Logrotate on Busybox

I'm using "BusyBox v1.23.2 (2016-05-10 18:40:19 CST) multi-call binary." How do I achieve logrotate functionality on a particular log file?
2
votes
0answers
69 views

How to automatically switch between DHCP Server and Client mode on startup of several devices?

I do wan't to have several embedded devices to boot up at the same time and automatically select the first booted device as the dhcp server and the others as client. But every client can be the server ...
2
votes
0answers
351 views

Make changes to busybox/initramfs that are persistent?

I am in the process of recovering my 32-bit Debian Jessie box with a lvm+LUKS disk. I am coming back from a system that had a root partition but no boot partition. Grub executes, but either vmlinuz or ...
2
votes
0answers
495 views

how to migrate a squashfs system to another filesystem that's read/write

Well, basically what i want to do is copy all of my router's files (even the dev file (because i'm running busybox)) to my usb flash drive and let my router by default boot from the usb device. it ...
2
votes
0answers
992 views

Why is my /etc/hosts.deny file being ignored?

I am using a small embedded linux setup generated by buildroot to run on a x86 device. It was generated to use busybox init system and also runs dropbear so I can ssh into the device. I wanted to ...
2
votes
0answers
904 views

System cannot boot, continuously scanning btrfs filesystem

On the previous boot I installed HAL to make amazon prime video streaming work, which it did (mostly), but after reboot the system could not pull itself up all the way to BASH and drops to a failed ...
2
votes
0answers
165 views

Busybox exits instantly printing 'SIGUSR1'

I was tinkering with my router these days. It runs on MIPS core and the OS is based on Linux. But the builtin busybox is very limited. I managed to export a binary of busybox compiled for MIPS through ...
2
votes
0answers
1k views

Run script as root under Busybox?

I have written a shell script that has to be run as root under Busybox. My first thought was to add the script to /etc/busybox.conf like this: /sbin/my_script.sh = ssx root.root But this only works ...
1
vote
0answers
48 views

A more permanent change to readonly squashfs mounted /etc

I have an IP-camera with the BusyBox v1.22.1 operating system that has some accounts either without or with public known passwords that I want to change to make it more secure. I have managed to log ...
1
vote
0answers
88 views

File not found when running a simple busybox system

I'm running Linux 4.1 and booting into a simple busybox environment. Busybox and shadow packages have been built as static and installed in my rootFS. Busybox is used for the /sbin/init and shadow's ...
1
vote
0answers
198 views

Cannot access nand or emmc partition from linux

I have a i.mx6 based board running using buildroot and linux. This board have two storages nand and emmc. The nand had full rootfs and kernel on itself. I am now booting from SD card. From the boot ...
1
vote
0answers
210 views

NFS Shares on an unmounted file system

I am trying to run a file system check. First, I want to unmount the device. umount /dev/md2 umount: /dev/md2: not mounted Seems good. Then, I want to run the check: e2fsck -fp -C 0 /dev/md2 /dev/...
1
vote
0answers
757 views

.ash_history file is not created

I am using a login session in my ash machine. My problem is, when executing history command in ash shell, it returns 0. This is because the .ash_history is not created. I tried to triage the issue by ...
1
vote
0answers
252 views

Embedded Linux TTY font change

I'm using Linux kernel + Busybox on an embedded system with a video console (fbcon) on LCD. I'd like to be able to change between compiled-in fonts (e.g. VGA 8x8, MINI4x6) on runtime. I know it's ...
1
vote
0answers
575 views

Ubuntu 16.04 booted to BusyBox, fsck repaired, now sudoers.so file has no contents

Upon bootup, my Ubuntu 16.04 system booted to busybox (initramfs). I ran fsck on the boot drive, found and resolved errors. The system now boots fine, but I am unable to do anything as sudo. I get the ...
1
vote
0answers
35 views

Can I debug download/network issues while using a standard ISO with debian-installer?

During the installation of e.g. Ubuntu with the debian-installer, is there any visible (debug) output, where I can see what is downloaded from where? (I have a local mirror configured, but it is so ...
1
vote
0answers
314 views

Using busybox with UBI files system on an MTD flash device, du and df commands give incorrect values

I have mounted a UBIFS on my MTD partition which is 191.9MB in size. When I run mtdinfo -a the partition shows: mtd6 Name: data2fs Type: nor Eraseblock size: 65536 (64KB) Amount of Erase Blocks: ...
1
vote
0answers
577 views

busybox tab completion in vi mode

When I use busybox and switch editing mode to vi via set -o vi then tab completion stops working. When I switch back set -o emacs then tab completion starts working again. # set -o vi # ls -l <TAB&...
1
vote
0answers
548 views

ext4 formatted sd card with rootfs.squashfs

I have an embedded system with an sd card that has an ext4 filesystem on it. I have a rootfs.squasfs that is placed in the ext4 filesystem and I am trying to boot to it. I built an initramfs where I ...
1
vote
0answers
251 views

Using vanilla + busybox Linux kernel, how to check if partition is encrypted?

I have a networked drive that runs off vanilla Linux Kernel, and ultra-minimalist BusyBox, on a Ralink SoC custom CPU. It has SMB inside, Telnet access, as well as HTTP server. Even basic commands ...
1
vote
0answers
1k views

Limit transfer speed rate by Iptables Rules

I have D-Link Router DSL-2730U that support busybox OS and iptables version 1.4.0 I managed successfully to block the host for being connect to the internet using the following command block by ip ...
1
vote
0answers
774 views

OpenEmbedded: root account doesn't exist!

I'm using the current OpenEmbedded system from: http://git.openembedded.org/openembedded-core/tree/ (For what it's worth, I'm also pulling in layers from http://git.openembedded.org/meta-openembedded/...
1
vote
0answers
834 views

How to properly start and stop shell script in linux, busybox?

I am trying to write a small shell script that would send some commands to my tv set from my set top box that has busybox on it. The problem is that it generates huge amount of zombie processes, and ...
1
vote
0answers
479 views

Looking for a list of modules that are used during boot sequence

I'd like to use deferred init calls. This function allows to load modules in userland, that should actually be loaded during the boot sequence. Just for testing I'd like to modularize as many entries ...
1
vote
0answers
378 views

Broken pipe with busybox

I have written a script which executes in init-bottom within the initram. So it uses busybox for the commands. I included gzip from my distro to initram (gzip 1.5 went to /bin). This is causing a "...
1
vote
0answers
82 views

Linux shell lagging one step

I upgraded busybox from 1.2.1 to 1.7.4 in my embedded system platform and it is connected to linux host via serial cable. Now when I type any command in shell on that embedded system platform like ...
1
vote
0answers
1k views

Busybox `uname -r` shows wrong kernel version

My kernel is 3.2.27 and /lib/modules/ contains 3.2.27 + folder. But when I am using /# uname -r 3.1.9+ It's showing a strange output. My problem is that for modprobe depends on uname when I put /#...
0
votes
0answers
16 views

busybox / init.d daemon to monitor result of script

I'm looking to run a script upon a GPIO pin being set (button press) on ARM. I do not want to use sysfs. I found a tool (libgpiod) that can read this event. I can run gpiomon and it writes to the ...
0
votes
0answers
29 views

Linux system process activity suspended

Introduction: I am running a cpp application on an embedded systems device with onboard Linux, which gathers sensor data, prepares it into a JSON formatted string payload and publishes the payload on ...
0
votes
0answers
137 views

Disable commands in Alpine Linux

I want to attempt to increase the security of some Alpine Linux Docker containers which run Nginx and other servers. I would like to disable commands like ls, cat, ed or sed, so that they are ...
0
votes
0answers
156 views

Use uClibc for single package

I'm having some issues using busybox and dns lookups. I found a claim that this a glibc problem. I'm on gentoo. I would like to compile busybox against uClibc, without replacing glibc on the system. ...
0
votes
0answers
211 views

busybox dmesg old timestamp format

I'm working on an arm board running an old kernel(3.14.29) I trying to to get the dmesg output and pass it to the bootgraph.pl to generate an SVG of kernel boot sequence. However after passing the ...
0
votes
0answers
351 views

Can't close luks volume on android (device busy)

I'm trying to use luks on my phone (android 4.2.2). I can create luks volume, mount and unmount it without problem, but when i'm trying to luksClose it here the problem start ..(in fact i can close ...
0
votes
0answers
96 views

Make home router accessible via Internet

Setup: I have logged in to a Huawei router using ssh. It's a busybox system with ash. Tools available are ifconfig, iptables and some others. What I want to do: Making all ports (http, ssh, telnet, ...
0
votes
0answers
532 views

BusyBox - Bash signal handler 'echo' issue

I have a Bash script that begins by opening a TCP client socket using nc and sending a start command over that socket. The server then sends me back data over the socket (which nc prints to stdout), ...
0
votes
0answers
885 views

How to compile wget or curl with https support statically on armv5tejl?

I have an IP camera with BusyBox. It has armv5tejl architecture When I want to use wget to download something from https://.... When I try to use it with https I get an error: wget: not an http or ...