Questions tagged [busybox]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

how do I changed the password policy in LibreElec

I believe LibreElec is using some form of BusyBox. I've done lots searching and been unable to find where password rules can be changed. Since my LibreElec media player is not connected to the ...
0
votes
0answers
9 views

Failed to connect to lvmetad after shrinking linux partition with cfdisk

WARNING: Failed to connect to lvmetad. Falling back to device scanning. Device /dev/sda2 has size of 1113587712 sectors which is smaller than corresponding PV size of 1952473088 sectors. Was device ...
0
votes
0answers
10 views

Backbox ACPI error and a table of hardware interrupt

Environment: Dual boot (windows 10 and BackBox) Problem: after upgrading my BackBox OS, when i restarted my laptop it gave me option ACPI error and a table of hardware interrupt. "Enter root ...
0
votes
1answer
13 views

Linuxmint in virtualbox not booting to mint os

I was running linux mint in virtual box but today when I rebooted it landed in Busybox i tried reboot it lands in busybox.. i do not know what to doo next. i really need to get it working i have ...
0
votes
1answer
33 views

Alternative way to configure IP address

I am setting up an embedded linux device which should grab its IP-address and its MAC address at boot from files in the filesystem. Lets say there is a file /root/ipaddress with the only content "192....
4
votes
3answers
240 views

Get the exact size of files retrieved by find output

My shell engine is either Busybox 1.31.0 or bash 3.2 I need to get the size of the files retrieved from find command. I've been trying to find only files, which have been modified more than 60 days ...
0
votes
0answers
34 views

Start daemon with udev on Busybox

I have a USB device that contains a modem (a long with a few other cans of worms). The modem (an u-blox LARA) enumerates as /dev/ttyACM[1-6] on this embedded Linux (Yocto) box. This box has Busybox ...
2
votes
0answers
102 views

How to copy an overlay partition to a file, and how to mount such file?

I have a disk, with two partitions: # fdisk -l Disk /dev/mmcblk0: 7381 MB, 7381975040 bytes 4 heads, 16 sectors/track, 225280 cylinders Units = cylinders of 64 * 512 = 32768 bytes Device ...
1
vote
0answers
103 views

OpenWRT BusyBox init does not create /etc/init.d/rcS

I'm building an OpenWRT image (Chaos Calmer) that needs BusyBox to be configured to use init. So, in the busybox configuration, I enter the Init Utilities menu, then enable init, as well as support ...
2
votes
1answer
44 views

Docker busybox tar broken pipe

When executing docker run --rm -v ldaps_ldap-config:/volume -v /tmp/tmp.VznAcI3PTA:/backup busybox tar c -Jvf /backup/ldap-config.tar /volume I always get the following output: BusyBox v1.31.0 (...
1
vote
1answer
115 views

How to Add Something Extra to a Busybox System?

So suppose that I have Busybox installed on an embedded device (e.g a router) and need to add something extra to it (a package). Now suppose that now I need to install a package to it besides using ...
0
votes
0answers
13 views

Particular USB Device not getting mounted - Embedded Linux

I have an embedded Linux, all the USB devices are getting mounted automatically except one. The usb device mounts on another Linux machine, so no problem with device. dmesg output, nothing seems to ...
1
vote
0answers
37 views

Dockerfile - Does USER directive make shell switch to its home directory?

As root, We are launching docker container with ansible: FROM python:3.7-alpine3.9 ENV HOME /home/someteam RUN apk add --no-cache --virtual .build-deps python3-dev gcc linux-headers musl-dev RUN ...
1
vote
0answers
118 views

Busybox locale not found

I install a Dockerfile from busybox but when I input "locale" or "locale -a", the command line return "sh: locale: not found". How can I fix this?
0
votes
0answers
116 views

Initramfs problem. Alert! /dev/sda9 does not exist. Dropping to a shell!

I installed a new copy of parrot OS and I am facing this issue. I wiped my entire disk and tried again. The same problem has persisted. After entering the 'exit' command. This is the output I get. ...
0
votes
0answers
42 views

How to install scheduler command “at” in BusyBox?

I have BusyBox on Termux app for Android, but the cron that has installed doesn't seem to work, then I want to try another scheduler command like at but when I try to install it is not located. $ apt-...
0
votes
1answer
574 views

Stuck in BusyBox initramfs while booting Parrot OS 4.7 I don't know what to do

I installed Parrot OS 4.7 on Dual Boot with Windows 10 and this happens during booting I tried deleting the partition and reinstalling Parrot OS again but still the same issue! As you can seeThe image ...
1
vote
1answer
206 views

How to avoid “can't access tty; job control turned off” when boot to initramfs

i'm testing my custom initramfs now, but everytime the log there will have the "can't access tty; job control turned off". The /dev in initramfs has four files: null, sda1, ttyS0. The kernel ...
0
votes
1answer
107 views

Rootfs permissions design

I wonder how design permissions in root file system should look for embedded device, with busybox onboard (buildroot environment). Several ordinary users may login to the system using ssh. My ...
0
votes
1answer
226 views

Convert received data bytes in serial to hex text

Hi now I write bytes data (for eg, \x00\x11\x22) from my PC to serial port of my device running unix at the ttyS1 port. I am able to print the data using either cat /dev/ttyS1 od -x < /dev/ttyS1 ...
1
vote
1answer
42 views

Reading data from serial port

FYI I am running busybox. I am able to send data to my ttyS1 using the following command: stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo echo -en 'data here' > /dev/ttyS1 But when I ...
0
votes
0answers
32 views

Enable DEVPTS_FS option in Linux kernel 2.6.26.5

Board with embedded Linux kernel version 2.6.26.5, for ARM target. Busybox 1.10.2. How to enable DEVPTS virtual filesystem support in kernel? I tried to find item CONFIG_DEVPTS_FS in config files, but ...
0
votes
0answers
51 views

How to make password prompt to the root shell accept any password?

Board running embedded Linux version 2.6.26.5 and Busybox 1.10.2 When accessing board via a serial console port, the access to root shell is password protected. How to make the password prompt accept ...
0
votes
0answers
17 views

Determining the network interface through which data is sent

I am working on a busybox embedded Linux platform which is running on a imx.6ull based development board. I have written a c++ application which enables the embedded device to collect data from ...
0
votes
0answers
60 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 ...
1
vote
2answers
85 views

Busybox: Find all files on partition that have been modified since power-on

I am trying to come up with a Busybox-compatible script (or one-liner) that lists every file inside a specified partition that has been modified since the last power-on. This should include files that ...
0
votes
0answers
69 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
1answer
204 views

Alpine 3.9.4 update busybox 1.30.0

I am using latest stable version of alpine 3.9.4 image. this image comes with busybox -1.29.3-r10. I need to upgrade to busybox 1.30.0. apk upgrade busybox command not upgrading the package. What is ...
1
vote
1answer
67 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 ...
0
votes
1answer
343 views

Ubuntu won't boot [duplicate]

My laptop ran out of power and when I went to plug it in and power it on, Ubuntu no longer boots. I get directed to BusyBox built in shell that looks exactly like: BusyBox v1.27.2 (Ubuntu 1:1.27.2-...
2
votes
1answer
180 views

Pass script to background using script itself

It is possible to do something like this: nohup ./run.sh > /dev/null 2>&1 & Which sends the process to background, discards its output and allows us to close terminal. Is there any ...
0
votes
1answer
98 views

Why does docker run busybox timeout not work?

I'm trying to make a script to quickly test whether the network connection works inside docker using busybox. All of these tests failed to timeout after 5 seconds (they took 30 seconds to timeout): ...
0
votes
1answer
150 views

Replacing busybox in an embedded device

I'm using busybox in an embedded device. The built-in busybox is rather limited. So I want try to replace busybox in place with new, more complete version. I find some info about replacing Busybox on ...
1
vote
1answer
64 views

How to test whether my tail is posixly correct?

I'm having problems with a vim interface for the theorem prover HOL: https://github.com/HOL-Theorem-Prover/HOL/tree/master/tools/vim I run it on MobaXterm, a cygwin-based system, and vim is freezing ...
3
votes
1answer
300 views

Where is the PS1 prompt variable set in ash shell?

I have a NAS drive from Western Digital. I can ssh into it, and when I log in, the first line that appears is: BusyBox v1.20.2 (2014-10-30 15:28:59 CST) built-in shell (ash) I don't like the default ...
0
votes
1answer
1k views

tftp - Error code 1: File not found

I need the correct syntax of tftp to get and put file. My ultimate goal is using busybox tftp (this should be second question), but it failed even trying to test with local Ubuntu tftp client. As you ...
1
vote
0answers
89 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 ...
0
votes
1answer
110 views

busybox - Can't detect grub binaries

I compiled GRUB from source, using pretty much default settings in a chroot debian sid environment using default --prefix so it installed in /usr/local. When I copied the files over to a system with ...
2
votes
2answers
2k views

date command in busybox not accepting formatted input date

I want to set the date using busybox's date command (BusyBox v1.21.0). My custom date to which I want to set the computer is of this form: Tue, 15 Jan 2019 10:46:13 GMT What my date command is ...
0
votes
1answer
192 views

Set date on embedded linux with limited busybox (no ntp)

I am trying to automatically set a date after boot on an embeddd linux with busybox ( I dont have a RTC). I also dont have ntp command in busybox, nor curl. My wget is very limited too, and I cant ...
5
votes
3answers
434 views

Portable way to invoke tar with a list of files from stdin

I want to create a .tgz from the content of a directory. I also want to strip the leading "./" from the tar'ed content. I had done this as follows: cd /path/to/files/ && find . -type f | cut -...
1
vote
1answer
127 views

Busybox USB Ethernet adapter

I have an embedded device running busybox on an ARM 7 processor. How would I go about using a USB -> Ethernet adapter for network connectivity? Currently I only have a serial console. The system ...
0
votes
1answer
32 views

nc server does not work if launched on startup

I wrote a (ba)sh script to write to a file the content received from a POST method: #!/bin/sh PORT=$1 FILE=$2 while true do echo -e "HTTP/1.1 200 OK\n\n" | ./busybox-armv7l nc -l -p $PORT | tr '[\...
0
votes
1answer
1k views

Why is there no /var/log/kern.log?

I have an embedded system running a slim installation of Buildroot Linux with kernel 3.10.105. Apparently most commands come from BusyBox here, and it seems those do not always implement the full ...
1
vote
0answers
169 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 ...
3
votes
2answers
771 views

Remove busybox from buildroot

As part of Linux hardening we want to remove busybox from filesystem created with buildroot. But I am not sure if system can boot without it. I am quite sure that there are init files that depends ...
2
votes
1answer
2k views

Cannot Install busybox on centos

When running sudo yum install busybox On Centos 07 I receive this error Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.vorboss.net * extras: repo.uk....
1
vote
0answers
284 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 ...
0
votes
1answer
242 views

if statement: 'fi' unexpected

I have made a shell with an if statment, all newline characters are LF (Linux), when i try to execute the shell, i get an "syntax error: 'fi' unexpected". if [ "$(ls -A /storage/$SDCARD_DIR/Android/...
0
votes
1answer
269 views

Change UEFI boot order from busybox

After generate a new efi boot entry with efibootmgr: # efibootmgr -c -g -L "Debian (EFI stub)" -l '\EFI\debian\vmlinuz' -u "root=UUID=955548bd-9c77-4893-8633-3a5e7966dfc9 ro quiet rootfstype=ext4 ...