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
46 views

Alpine ash seems to have trouble with a "while; do ...; done that bash is fine with [duplicate]

I was looking at the following, which I needed: Prepending a timestamp to each line of output from a command . I'm not using the accepted answer, I'm using the POSIX solution described in one of the ...
user avatar
2 votes
2 answers
40 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-...
user avatar
0 votes
0 answers
21 views

find: unrecognized: -ctime (radial/busyboxplus:curl)

In a docker container running in a kubernetes pod I am using the below busybox docker image: containers: - name: busyboxplus image: radial/busyboxplus:curl I need to run something like this: ...
user avatar
  • 871
1 vote
2 answers
78 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-...
user avatar
  • 204
1 vote
0 answers
25 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 ...
user avatar
  • 11
1 vote
1 answer
26 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 ...
user avatar
  • 11
0 votes
2 answers
53 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,...
user avatar
0 votes
0 answers
44 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 /...
user avatar
-3 votes
1 answer
49 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, ...
user avatar
0 votes
0 answers
44 views

raspberry pi initramfs busybox ping bad address but nslookup works

I already read: Busybox ping IP works, but hostname nslookup fails with "bad address" I have the exact same symptoms. cat /etc/*release* PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"...
user avatar
0 votes
0 answers
41 views

-sh: ./bin.bin: not found

https://developer.android.com/studio/releases/platform-tools#downloads I'm trying to run adb (link above) from my TinyCore Box, is a bare linux system running on busybox as user land. Anyways, issue ...
user avatar
  • 143
0 votes
0 answers
39 views

FTP user access to system logs - Busybox ftpd

I'm working with the ftpd package included in Busybox-1.24.1. In the menuconfig, I have selected the ftpd options: ftpd, Enable upload commands, Enable workaround for RFC-violating clients (though I'm ...
user avatar
1 vote
1 answer
299 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 ...
user avatar
0 votes
0 answers
20 views

How can I best track agrs in the environment without using ps?

I am working with a customer BusyBox v1.23.2 container, trying to track args being passed in the environment. I wanted to use pslogger to show when foo is sent in the environment. However, the ps tool ...
user avatar
0 votes
1 answer
216 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
  • 143
0 votes
1 answer
40 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 /...
user avatar
  • 1,329
1 vote
0 answers
97 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, ...
user avatar
  • 321
1 vote
2 answers
252 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?
user avatar
0 votes
1 answer
126 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?
user avatar
  • 160
2 votes
4 answers
183 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 ...
user avatar
  • 143
0 votes
0 answers
58 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 -...
user avatar
  • 2,893
0 votes
0 answers
95 views

Gentoo: Error Involving Glibc When Running Genkernel Cannot Find -lcrypt when Compiling Busybox

Trying to build a kernel using genkernel however the following error keeps recurring */usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypt *collect2: ...
user avatar
0 votes
0 answers
107 views

start-stop-daemon syslog as non-root

I have a Yocto based embedded Linux build using busybox-1.24.1 and its sylogd and start-stop-daemon utilities. root:~# ls -l /sbin/syslogd lrwxrwxrwx 1 root root 19 Nov 2 17:57 /sbin/syslogd -> /...
user avatar
8 votes
2 answers
810 views

Check dd's progress without USR1?

I'm on a Linux busybox 1.27 only system so no output=progress available, no busybox's own implementation of pv which is pipe_progress nor pv itself. I have two questions. The first is based on https://...
user avatar
  • 143
-1 votes
2 answers
153 views

How to substitute/delete a new line (\n)?

I got access to busybox 1.27.2 only. I'm currently processing a dictionary with more than half a million words and more than 6,000 pages (which was extracted from a PDF with ghostscript and converted ...
user avatar
  • 143
0 votes
1 answer
44 views

How to generate a string of concatenated key/value pairs in a script?

I need to build a string of --build-arg parameter using some key/value pairs (build.args file) in a busybox shell: script.sh #!/bin/sh one=$1 two=$2 shift while IFS= read -r line; do set "$@&...
user avatar
  • 1,329
0 votes
0 answers
508 views

Linux kernel init, /bin/sh exists but couldn't execute it (error -8)

The bug: Linux kernel boots, load's up initramfs/CPIO image but the init process fails with error -8 (NOEXEC) [ 3.499638] Run /init as init process [ 3.506228] Failed to execute /init (error -8) ...
user avatar
0 votes
1 answer
83 views

No batch processing when: busybox find . -exec

I have access to only busybox. I have a folder, like this: prueba/$: ls ./uno ./dos ./tres Each two subdirectories (uno, dos) have many files (with spaces in their names and non-ASCII characters) and ...
user avatar
  • 143
2 votes
1 answer
98 views

No output: busybox find . -exec sh -c ' readlink -f "$1" | tail -n +2 ' sh {} \;

I got access to only Busybox 1.31.1 I originally wanted to remove the current working directory of my output (the single dot). Example: /prueba$ ls uno dos tres When I: $ busybox find . . ./uno ./dos ...
user avatar
  • 143
0 votes
0 answers
68 views

how to use ftpget from a virtual machine (initrd from busybox)?

Trying to find a way to debug kernel code using debugger, I remembered I've setup initrd and kernel several months ago. So I tried if I can use ftp from the virtual machine to get the application and ...
user avatar
  • 269
1 vote
1 answer
86 views

hwclock's output is effected by DST when entering it, but not when leaving it

I set system time and RTC to the following values. date -s 2021.08.30-09:59:30 >/dev/null 2>/dev/null //set system time hwclock -w //sync RTC to system time Also, /etc/TZ (which is the same ...
user avatar
  • 121
0 votes
0 answers
123 views

dd if=/dev/block/mmcblk0 | busybox nc -l -p 8888

I am making .dd image of my mobile device through this dd command: dd if=/dev/block/mmcblk0 | busybox nc -l -p 8888 Internal storage of mobile device is 8GB where as the image extracted through the ...
user avatar
-1 votes
1 answer
48 views

How to make a bootable DVD with buzybox? [closed]

I want to make a bootable DVD (from/with) busybox. Why? I don't know... yet. I read the official instructions, but just can't get it. So what the process is like? Can you give me an outline of it? I ...
user avatar
  • 11
2 votes
1 answer
158 views

Can busybox unzip tool overwrite symlinks?

I'm using the Busybox 1.32.0 package tools in an embedded device. When I'm in Ubuntu based x64 platforms, the unzip tool packaged there can extract over a destination directory without prompting any ...
user avatar
  • 133
0 votes
1 answer
304 views

wget: server returned error: HTTP/1.1 401 Unauthorized from BusyBox

I know that Axis camera API specific issue should be raised at axis developer community forum but the issue seems generic to http web access so trying to get some help here I have Axis IP camera ...
user avatar
1 vote
0 answers
315 views

command "not found" even though it exists

I'm trying to run /usr/local/bin/elm using the ash shell provided by Busybox. It exists, and it's executable: $ stat /usr/local/bin/elm File: /usr/local/bin/elm Size: 19573124 Blocks: 38232 ...
user avatar
1 vote
0 answers
135 views

How does htop measure ram usage? And why do thin inits use 4Bytes of residential memory

I have seen PID1(openRC) get reported as 4Bytes Residential memory usage in Alpine Linux. Right now I am running busybox init on the below machine. How do some of those processes use 4Bytes of memory? ...
user avatar
  • 11
1 vote
1 answer
48 views

How to save logfile in non-volatile memory

I have an embedded device with NAND flash as rootfs. Logfiles are kept in RAM, as they are usually boring and must not wear out the flash. But seldom the devices enters a defective state which I need ...
user avatar
  • 11.2k
1 vote
1 answer
269 views

Why can my statically compiled ARM binary of BusyBox run on my x86_64 PC? [duplicate]

Bit of a strange situation there. I compiled a static executable of BusyBox 1.32.1 for the ARM platform (32-bit) and strangely it runs without problems on both platforms. Look by yourself: root@...
user avatar
0 votes
0 answers
17 views

ASH scripting quotes in backticks works with echo but not with actual execution [duplicate]

I am creating a script for my router (running busybox). In my script I generate a command in a variable like nvram set option='value with spaces' but when it is executed it complains that arguments ...
user avatar
  • 101
1 vote
1 answer
519 views

Busybox equivalent for bashrc

I use a number of docker containers where the author chose busybox, which is linked to /bin/sh. Is there an equivalent in busybox for .bashrc or .profile? If so, where should it be located?
user avatar
  • 1,413
0 votes
1 answer
185 views

esx busybox shell script, reading line by line from a variable using while

I have a big file called file1 on my ESX host. I run some awk command on the file and extract useful blocks of data into a variable which works fine on the busybox shell. Now I want to read from that ...
user avatar
0 votes
2 answers
187 views

BusyBox date: retrieve date from the internet without ntpdate

Embedded poky linux, no ntpdate available. It looks like none of the following commands is suitable: # date -s "$(curl -s --head http://google.com | grep '^Date:' | cut -d' ' -f 3-)" date: ...
user avatar
  • 101
1 vote
0 answers
510 views

Gave up waiting for root file system device

Here's what it says when I first turn on my computer: BusyBox v1.30.1 (Debian 1 :1.30.1-4) built-in shell (ash) Enter 'help' for a list of built-in commands. I watched a youtube video expecting it to ...
user avatar
  • 11
0 votes
1 answer
540 views

How to change the language in busybox

I turned off the computer, but when I opened it again, it gave me an error: I find the solution of it,(i need to write fsck /dev/sda8) however my keyboard is in russian, so i can not type anything in ...
user avatar
2 votes
1 answer
333 views

Does busybox have a tool for dumping 4 byte words as hex on a little endian machine?

I am trying to use busybox to dump files in /sys and /proc. I happen to have an embedded device with busybox 1.31. I noticed that xxd does not have the -e option for little endian. I can't figure out ...
user avatar
  • 153
-1 votes
2 answers
585 views

partial match string in /bin/sh

Can someone explain to me why this doesn't partial match macaddress $mac? #!/bin/sh mac="f0:79:60:0f:d3:0e" if [[ "$($mac)" = 'f0:79:60*' ]] then echo "true" else ...
user avatar
  • 1
1 vote
2 answers
78 views

BusyBox ps etime format is not as documented: 9h25

I've been using ps -o etime,cputime in a script to monitor spikes in CPU usage but when the server has been running for a while, the time is no shown in the widely documented format [DD-]hh:mm:ss, but ...
user avatar
  • 121
0 votes
1 answer
255 views

fsck is taking a lot of time?(buffer I/O error)

I had a irregular powercut 4-5 times in a row within an hour. My ubuntu suddenly went into busy box mode and showed there are errors on /dev/sda5. I then tried: fsck /dev/sda5 -y It has taken a lot of ...
user avatar

1
2 3 4 5
8