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
2 answers
24 views

How to disown a command in the busybox shell?

I'm trying to write a quick-and-dirty shell script daemon to run on a home router that has a busybox shell, which doesn't support disown. Is there any way to do either of the following? Run a command ...
joshlf's user avatar
  • 345
0 votes
1 answer
37 views

Customized system cannot obtain dynamic IP?

I am customizing the system using version 6.4.0 of the kernel, and the file system is created using busybox. However, I don't know why enp3s0 cannot obtain an ip. It seems that using udhcpc can obtain ...
ABeginner's user avatar
  • 101
0 votes
0 answers
25 views

How to make 'adb shell' to read /etc/profile or other configuration files?

I am working on an embedded Linux system (kernel-5.10.24), and it uses ash from busybox as /bin/sh. The system support login from serial console and adb shell from PC. Now I found the shell started ...
wangt13's user avatar
  • 327
1 vote
0 answers
31 views

How to $poweroff BusyBox from windows machine

I have an old windows xp pc and a Linux 2.6.15.7-ElinOS-453 i686 with BusyBox v1.6.1. I want to shutdown the windows xp computer from the Linux computer at the same time, and viceversa. (They are both ...
Kris's user avatar
  • 19
0 votes
0 answers
43 views

Busybox support for ANSI escape codes?

I am working on some scripts that must run inside of initramfs. One of the scripts does an operation that takes a few minutes, so I want to display a nice progress bar that updates in-place, add in a ...
Gogeta70's user avatar
  • 504
1 vote
0 answers
19 views

Manual removal of Nvidia driver fails due to init and busybox

I'm using PorteuX (Slackware based) and in the shutdown/reboot process I want to unmount everything, which works fine unless I boot with Nvidia drivers. In this case, just before reboot -f step if I ...
Fulalas's user avatar
  • 121
1 vote
1 answer
239 views

wpa_supplicant wired fails to authenticate

I'm trying to get wpa_supplicant working on an embedded controller with busybox as the OS. I'm running wpa_supplicant 2.7, but the authentication keeps failing. In the radius server I see the error &...
lode's user avatar
  • 11
0 votes
0 answers
27 views

miscutils error when compiling BusyBox for Android

I'm trying to compile Busybox for Android. Command used: make CC=$TOOLCHAIN/bin/$TARGET$API-clang \ AR=$TOOLCHAIN/bin/llvm-ar \ RANLIB=$TOOLCHAIN/bin/llvm-ranlib \ CFLAGS="-I/home/...
kpwn Apps's user avatar
2 votes
0 answers
64 views

Should programs terminate on ENOSPC error?

In bash, the command hexdump -C /dev/urandom > hexdump.txt does not terminate. It keeps going indefinitely, even if the filesystem is full. read(0, "\326\210L0\rL<\177\207\214\3\2237\vi\315\...
munikiel's user avatar
1 vote
0 answers
356 views

How to start and manage a process in busybox inittab, and rcS as early as possible?

I am working on an embedded Linux system where busybox is being used as init. I have 2 requirements on running my application. My application needs to start as early as possible; It needs to be ...
wangt13's user avatar
  • 327
1 vote
0 answers
28 views

syslogd not ouputting year information

I updated busybox to 1.35.0 and had the same settings as earlier but for some reasons the syslogd is not outputting year in the timestamp information. Prior to this I was using busybox 1.19.3 and it ...
m4n07's user avatar
  • 181
3 votes
1 answer
180 views

Launch process with limited capabilities on minimal Busybox-based system

In a minimal Busybox-based Linux system with access to the root user, how can one launch a process with a specific limited set of Linux capabilities(7) without requiring any tools beyond busybox?
Axel Fontaine's user avatar
0 votes
0 answers
360 views

Buildroot Login without Root Password

Starting with some of the trunk builds of Buildroot in 2023, I've been unable to login to my buildroot systems with getty. Honestly, I'd rather a mechanism to just be dumped into a root shell. But, ...
Charles Lohr's user avatar
1 vote
1 answer
120 views

Failed to login to Linux shell with passwd generated by mkpasswd -m sha-256

I am working on an embedded Linux system, where busybox (1.31.1) is used as init. I enabled login in /etc/inittab but I failed to login to system with invalid password. The /etc/shadow in rootfs is ...
wangt13's user avatar
  • 327
2 votes
1 answer
252 views

Error occurred in mounting file system during Linux bootup with busybox

I am working on an embedded Linux system, which uses busybox as init. When system bootup, there are two error logs shown as follows, [ 3.901185] Run /linuxrc as init process [ 3.909861] process '...
wangt13's user avatar
  • 327
0 votes
2 answers
224 views

BusyBox's tar --exclude doesn't exclude

Extract a tar file with content dir1/dir2/file, using --exclude dir2 switch. The gnu tar excluded but busybox's tar doesn't. Use --exclude dir1/dir2 works fine, but why? Is there a way to exclude any ...
kkocdko's user avatar
  • 101
0 votes
0 answers
152 views

initramfs prompt appears while booting - Error regarding zfs mountpoint

I am getting the following error if i try to boot my system: Busybox v1.30.1 Gave up waiting for root file system device. Common problems: - Boot args (cat /proc/cmdline - Check rootdelay= (did ...
cd4user's user avatar
  • 33
-1 votes
1 answer
505 views

xxx.sh: : not found

I'm debugging a shell script and coming across this error. I have no idea what's going on with my script. #!/system/bin/sh function SetEQ(){ prefFile='/mnt/media_rw/6633-3539/tmpFiles/com.smp....
preachers's user avatar
  • 151
0 votes
1 answer
45 views

How to execute wine command through busbox?

I am building minimal operating system using busybox.I am writing init file, I want to call script1.sh file from init file. Challenges I am facing are: After running init file it is showing ./script1....
Abhishek Borse's user avatar
0 votes
1 answer
80 views

How to integrate C program to minimal os using busybox

I am building minimal operating system using busybox. So I want to add my program in my operating system, so I can boot that program from BIOS. So how can I integrate aleast "Hello World" ...
Abhishek Borse's user avatar
0 votes
1 answer
1k views

How to run interactive busybox shell inside initramfs so that it's PID=1

Background I need to assemble my own initramfs and before writing its init script I want to do all the required operations by hand, i.e. from an interactive shell. My choice is statically linked ...
lvd's user avatar
  • 123
2 votes
0 answers
380 views

Can't boot and stuck on BusyBox

When i try to boot on my Linuxmint laptop, i'm stuck on BusyBox with this message -Boot args (cat /proc/cmdline) -Check rootdelay= (did the system wait long enough?) -Missing modules (cat /proc/...
macrico's user avatar
  • 21
0 votes
1 answer
523 views

How to enter rescue mode (RescueInitramfs) on Debian server?

I am trying to boot into RescueInitRamfs (https://wiki.debian.org/RescueInitramfs) on my Debian server after configuring DropBear as per https://benediktkr.github.io/ops/2015/05/01/remote-fde.html (...
louvifitaki-3130's user avatar
0 votes
1 answer
506 views

How Can I Transfer Files to a BusyBox machine with only ftpd, telnetd?

I'm trying to send and receive files from a Linux machine running busybox. The following commands are enabled, and I can't use anything else: [, [[, ash, basename, brctl, cat, chmod, chpasswd, cp, ...
helpmeplease's user avatar
3 votes
1 answer
268 views

Equivalent to "ps -p"

I'm using a board without the full ps command installed. What I need is ps -p equivalent (something that sets $? if a specific PID is found or not). Is there a way to accomplish this with another ...
DDS's user avatar
  • 323
1 vote
2 answers
657 views

One-way synchronize with cp and busybox

I need to one-way synchronize local folders using only cp and/or other tools available in the BusyBox 1.35 which has no rsync. I was hoping for something like: cp -auv /source/ /target, but it won't ...
rych's user avatar
  • 131
0 votes
1 answer
171 views

Why is /dev/null needed to run asynchronous jobs in busybox sh?

I'm curious why this special device is needed to fork the command and run it asynchronously in the minimal Busybox shell. BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash) Enter 'help' for a ...
round-down's user avatar
0 votes
1 answer
108 views

Is initramfs expandable when embedded in kernel?

If I embed initramfs in the kernel image, (I can do this by setting the config variable for the iniramfs file source location, and initramfs becomes located in data section I guess), and after I boot ...
Chan Kim's user avatar
  • 367
0 votes
1 answer
405 views

Syslog is overwriting logfile after 200k size

I am running Linux on a TI-J7 embedded board. It is using syslogd from busybox. But the issue I am facing with syslog is it overwrites logfile when it exceeds 200kb size and so not able to collect ...
K_peanutButter's user avatar
0 votes
1 answer
117 views

DBUS get free disk space of usb memory

I'm trying to determine how much disk space is free on an USB memory device by using a DBUS connector (sdbus-c++). For receiving signals of the connection status of the usb memory I use the org....
B-S-E's user avatar
  • 3
0 votes
1 answer
452 views

Understanding Sed Usage in Makefile

I'm trying to understand the usage of the sed command in Linux, specifically when it is being used in a Makefile. I have included the command I'm trying to interpret below. My interpretation so far is ...
Mike's user avatar
  • 1
0 votes
2 answers
2k views

Linux Kernel Boot: Failed to execute /init (error -2)

I'm trying to create a minimal linux distro using the tutorial "Build a minimal Linux with only Busybox in 1 hour" of "Write your own Operating System " all worked bue when I boot ...
Paolo's user avatar
  • 3
0 votes
1 answer
3k views

"Connection refused" when I try to send a UDP packet with netcat on an embedded-linux board

I'm trying to send a binary packet to a local process, via netcat (nc), like this: nc -w 1 -u localhost 10000 < my_binary_packet.bin The output is: read(net): Connection refused Anyone know what'...
Gabriel Staples's user avatar
0 votes
1 answer
81 views

How to simplify output redirection command line?

I have frequently used output redirection commands in my Linux environment, for example, echo mymodule set number 10 >/proc/aaaa/bbbb_cmd And I want to omit the echo .... >.... and use this ...
Hastings's user avatar
2 votes
2 answers
200 views

Setting time zone in a kindle bash file

I've recently jailbreaked my kindle to make it a clock that shows a certain image for each minute of the day. I used the instructions mentioned in this article https://www.instructables.com/Literary-...
Amr M. El-Dawoody's user avatar
1 vote
2 answers
889 views

How to delete files based on the creation date of other files?

I have a security camera running Linux (busybox 1.32.0) which I can set to record video continuously in (configurable) 30 seconds chunks in a folder structure: recording/2022/04/26/15/2022-04-26-15-30-...
FarO's user avatar
  • 214
1 vote
0 answers
239 views

Booting arm64 linux from PHRAM device on RAM failed on systemd processing

I'm trying to boot a busybox based ext4 Liunx image built by yocto, from the RAM, using PHRAM device(dev/mtdblock0) as rootfs. The machine is Intel FPGA board(Stratix 10). I have enabled PHRAM in ...
yoyozi's user avatar
  • 11
1 vote
1 answer
2k views

How to add DNS server via script?

How to add DNS server via script if nameserver is not written in resolv.conf . like first check following lines are there or not in resolv.conf file: nameserver 8.8.8.8 nameserver 8.8.4.4 If not then ...
shadab's user avatar
  • 11
0 votes
2 answers
945 views

dual boot Windows and Linux, SATA Mode

I have Windows 10 and Ubuntu 20.04 next to each other, recently I had updated my BIOS version(such a mistake), and couldn't boot any system, so I set up default BIOS version. So now I can load Windows,...
shnon_bell's user avatar
0 votes
0 answers
208 views

Can't Chroot into archlinux

I have Installed the generic aarch64 rootfs to an sdcard , and have placed It inside my phone and am trying to chroot into it - via a superuser adb shell , by running busybox chroot /data/local/mnt /...
Bilal Ahmed's user avatar
-2 votes
1 answer
285 views

What is BusyBox?

Just wondering what BusyBox is used for and if I can use it for my project. I have seen the Philips Hue Bridge runs BusyBox and I would like to use it on a relatively small, but powerful controller, ...
Nathan Ellis's user avatar
1 vote
1 answer
1k views

Pop OS BusyBox FSCK Not Found (Beginner)

I broke Windows 7 and can't fix it, Windows 10 on my laptop broke itself. Decided I'd leave Windows behind and give Linux a test drive since my laptop's OS is pretty ruined. I did the install, my ...
I Am Confusion's user avatar
0 votes
1 answer
729 views

Linux Mint: ALERT! "UUID" does not exist. Dropping to a shell!

I am trying to duel boot Linux Mint with ChromeOS from an SD card. I installed it from a bootable usb and when I run it from the SD card, it stays on the boot up screen for a few minutes, then this ...
Random Person's user avatar
0 votes
1 answer
47 views

Why can't I prune this directory?

busybox version 1.33.0 I'm trying to copy the entire home folder. Inside of home, /dev/sda2/ is mounted, like so: /home/user/sda2 /home/user/sda2/root /home/user/sda2/home_backup Above you can see ...
abacox's user avatar
  • 143
0 votes
1 answer
175 views

How to replace content of nested files?

I need to find all project.updated files in some nested directory and use these files for content replacement of project.json file in the same directory. I'm using BusyBox (1.33.1). /apps /...
user3142695's user avatar
  • 1,539
1 vote
0 answers
104 views

lsblk alternative for busybox? [duplicate]

I installed busybox on my Android device. The command list is very long but lsblk is no supported as this log shows: ... Currently defined functions: [, [[, acpid, adjtimex, ar, arp, ash, awk, ...
zomega's user avatar
  • 873
2 votes
2 answers
2k views

How to load kernel modules for current hardware in init of minimal Busybox-based system

In a minimal Busybox-based Linux system, which commands must be invoked as part of the init script to ensure all kernel modules for the current hardware are loaded?
Axel Fontaine's user avatar
1 vote
1 answer
2k views

what does the -s option in busybox --install [-s] [DIR] stand for?

When typing busybox --help, one of the usages is: busybox --install [-s] [DIR]. What does the -s option stand for?
Huzi's user avatar
  • 342
2 votes
4 answers
642 views

Why this word can't be grep?

I have access to busybox only, v 1.27. I'm trying to use a huge TXT file I extracted from a PDF document as a TXT dictionary, to be console friendly. The word I'm trying to get is the very first word ...
abacox's user avatar
  • 143
0 votes
0 answers
268 views

EXIT trap is ignored on Ctrl-C when PID == 1

a.sh: trap 'echo cleanup' EXIT sleep 3 To reproduce, press Ctrl-C before the script finishes: $ docker run --rm -itv $PWD:/app -w /app alpine:3.14 sh a.sh ^Ccleanup $ docker run --rm -itv $PWD:/app -...
x-yuri's user avatar
  • 3,233

1
2 3 4 5
9