Skip to main content

Questions tagged [busybox]

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

Filter by
Sorted by
Tagged with
-1 votes
0 answers
39 views

POP!_OS Computer Crashed, Booted Into Busy Box, And Is Now Stuck In Secure Boot

When I was using my PC, first my browser closed and then my screen froze. I then had to force shutdown my computer. After I relaunched it, it booted into busybox. I turned off my PC, because I wanted ...
f ff's user avatar
  • 1
0 votes
0 answers
17 views

How to enable NAT loopback/hairpinning with iptables on router?

I have a HG659b router, and have got shell access to the router, so I can configure the iptables. In the web page, I have configure a port forwarding setup to forward port 37777 to the host 192.168.1....
Jpac14's user avatar
  • 1
0 votes
1 answer
42 views

curl is not able to resolve host by default, --ipv4 switch works

I have a Linux Alpine (v3.18.6) container running on AKS. The curl command inside that container is not able to resolve a private DNS host. Also, nslookup throws SERVFAIL. However, when I provide --...
Snehasish Karmakar's user avatar
4 votes
1 answer
378 views

ps: invalid option -- 'p'

I'm using Yocto Project (honister) to build my OS image. When I'm trying to use vscode ssh extension, I'm getting an error: > ps: invalid option -- 'p' > BusyBox v1.34.1 () multi-call binary....
YoctoDragon's user avatar
2 votes
0 answers
33 views

UBUNTU Partition locked after run out of space

I am using ubuntu 20.22 installed on SSD driver with 250 GB. Last month my driver run out of space, and later on the partition was locked. I tried to use a usb-driver to reinstall ubuntu (Try ubuntu ...
William 's user avatar
1 vote
0 answers
48 views

Why does my USB HDD detect as /dev/sdr?

I have a Synology RT2600ac router with an OWC Mercury Elite Pro (USB, eSATA, FW800) external HDD. The drive is detected as /dev/sdr where any ol' USB flash drive is detected as /dev/sda or sdb. Why ...
MJA's user avatar
  • 111
1 vote
1 answer
37 views

Strange behavior with sed/head and named pipes/FIFOs (needs two writes)

I have a fifo created with mkfifo in a shell, opened in rw mode with exec 3<>fifo. When I run sed 1q <&3 and write a line to the fifo in another shell, sed doesn't print the line until I ...
SeetheMoar's user avatar
2 votes
0 answers
148 views

Predictable network interface names with BusyBox

I want to map each hardware NIC to a specific linux network interface (ethX) persistently, as currently when an ethernet cable is reconnected, it picks an interface seemingly at random. This is ...
px-wgraj's user avatar
-1 votes
5 answers
123 views

How to check the contents of an entire file against the pattern \s*{\s*}\s*?

How to check the contents of an entire file for compliance with the pattern \s*{\s*}\s* using busybox? You need to check the entire file from beginning to end, and not individual lines, as grep does. ...
Maxim's user avatar
  • 119
0 votes
5 answers
157 views

How to add content to a file before the last } character using Busybox utilities?

There is a file with contents { "first_name": "John", "last_name": "Smith", "is_alive": true, "age": 27, "address": { ...
Maxim's user avatar
  • 119
2 votes
1 answer
41 views

Mismatch of size of /var/run/utmp and `struct utmp` in Linux built with GLIBC 2.38 (Y2k38 fix)

I am working on an embedded Linux system (kernel-5.10.24), which is a 32bit system, and it is using GLibc-2.38 to fix Y2k38. The rootfs is built from buildroot rel.2023-aug with Y2k38 fix. (built with ...
wangt13's user avatar
  • 441
1 vote
1 answer
71 views

Possible reasons for the shell's "not found" response?

What are all the possible reasons that the shell would respond with "not found" when trying to run an executable? The executable definitely exists and has execute permission (chmod +x). ldd ...
Dane's user avatar
  • 13
1 vote
0 answers
53 views

Busybox/Qemu Networking

I made a simple Linux Distribution using Busybox that i run in Qemu. How can i get networking to work? My Goal is somthing like that: I type in wget google.com and it saves the index.html file to the ...
pauljako's user avatar
0 votes
1 answer
67 views

How do I check if an IP-address or a network is contained in other network in BusyBox shell?

A BusyBox shell script has a list of IPs to be used as whitelist for a firewall ipset list. The whitelist may contain non routable IP's to be whitelisted. On the other hand firehol_level1 list (...
Pro Backup's user avatar
  • 4,994
0 votes
0 answers
45 views

Using ssh in a while read loop reading from stdin [duplicate]

I have a shell function that returns a list of hostnames and IP addresses: $ list_hosts hostA 10.1.1.1 hostB 10.1.1.2 hostC 10.1.1.3 I want to get a different address for each host: $ function ...
Tom's user avatar
  • 524
0 votes
0 answers
114 views

Switch to the root file system in BusyBox using a disk image with the file system inside

My disk image is downloaded from ubuntu-22.04-minimal-cloudimg-amd64-root.tar.xz using the following commands: fallocate -l 16GiB rootfs.img mkfs.ext4 rootfs.img mkdir rootfs sudo mount -o loop ./...
Zihao's user avatar
  • 1
0 votes
0 answers
119 views

How do I fix my initramfs for booting linux kernel image on qemu?

I am using an M2 mac. I built the linux kernel in a aarch64v8/ubuntu docker container. Here's the docker-compose.yml version: "3" services: dev: image: arm64v8/ubuntu platform: ...
V N's user avatar
  • 9
0 votes
0 answers
120 views

busybox stty: standard input: cannot perform all requested operations?

When I specified stty isig, the following error occurred. I found a similar problem but did not resolve it. I searched for a lot of information but I'm not sure what's going on. I have no clue, can ...
Vimer's user avatar
  • 67
0 votes
1 answer
155 views

Customized Linux systems cannot use crtl+c to terminate ping commands?

I customized the root file system using Busybox, and its version is 1.36.1. I don't know why my device cannot be terminated by ctrl+c when typing ping an IP on the monitor keyboard. However, when I ...
Vimer's user avatar
  • 67
0 votes
0 answers
106 views

Just Installed Parrot 6.0 and its automatically dropping me into "BusyBox". how do I boot into the operating system?

I just installed the new parrot os 6.0 on my 64 bit laptop and i ran it from a usb, installed it and i get to the grub screen. it automatically boots the first option and then is has the cool new ...
D3D_M4N's user avatar
0 votes
1 answer
227 views

How to add busybox with full version of commands?

I'm building a custom linux for an embedded device. For development purposes I added apt to my filesystem. The command works fine, I was able to install some package on the fly like curl, the problem ...
Edher Carbajal's user avatar
-2 votes
1 answer
100 views

How to trim directory from which output without basename?

For a shell script I need to call an executable by name, regardless of the path leading there; thus far I know this code reports the right name: tmpprog=`which program` prog=${tmpprog%%*/} if $prog=&...
jarnosz's user avatar
  • 200
0 votes
1 answer
379 views

Is it possible to build Busybox statically linked to Musl libc?

It seems like the answer is no, I just want to make sure I'm not doing anything wrong. I can't find a way to tell Busybox .config that I want to build for musl and not glibc, but it seems the Busybox ...
Brandon Ros's user avatar
0 votes
2 answers
196 views

Can Linux be distributed with UNIX systems other than GNU?

If I made a Linux distribution, could I add Busybox or another UNIX system other than GNU? Or are Linux and GNU entirely dependent on each other?
AcinonX's user avatar
  • 111
0 votes
1 answer
188 views

busybox nc server cannot accept new connection once the old one dropped out

BusyBox v1.36.1 (2023-07-17 18:29:09 UTC) multi-call binary. I run minimal nc server like: nc -lkp 12345 I can connect to it once nc localhost 12345. After ctr-C, the next attempt will fail. however ...
Wang's user avatar
  • 1,316
0 votes
1 answer
161 views

Loading the contents of the /opt/etc/profile file after reboot

I have a ZyXEL NAS326 network drive that runs BusyBox v1.19.4 with an additional OpenWrt repository. After each restart, the system does not see the path to the OpenWrt binary and does not remember ...
tgs's user avatar
  • 3
1 vote
1 answer
420 views

Alpine linux: replace BusyBox tail to GNU tail

I need to use the tail ... --pid=PID option in my docker container that is based on Alpine image in order to I can kill the running background tail process automatically. Unfortunately the BusyBox ...
zappee's user avatar
  • 211
0 votes
0 answers
64 views

Linux without initrd: unable to mount rootfs

Setup Partitions: # fdisk -l /dev/sda ... Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 51199 49152 24M c W95 FAT32 (LBA) /dev/sda2 51200 204799 153600 75M 83 ...
GooseDeveloper's user avatar
0 votes
1 answer
20 views

Working system, blank screen

Setup Partitions: # fdisk -l /dev/sda ... Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 51199 49152 24M c W95 FAT32 (LBA) /dev/sda2 51200 204799 153600 75M 83 ...
GooseDeveloper's user avatar
0 votes
2 answers
314 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
  • 365
0 votes
1 answer
111 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 ...
just a student's user avatar
0 votes
3 answers
221 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
  • 441
1 vote
0 answers
45 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
141 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
  • 534
1 vote
0 answers
36 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
862 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
2 votes
0 answers
88 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
1k 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
  • 441
1 vote
0 answers
48 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
  • 191
3 votes
1 answer
382 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
901 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
267 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
  • 441
2 votes
1 answer
586 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
  • 441
0 votes
2 answers
736 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
-1 votes
1 answer
784 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
52 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
121 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
1 vote
1 answer
3k 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
  • 143
2 votes
0 answers
749 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
1k 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

1
2 3 4 5
9