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

learn more… | top users | synonyms

0
votes
0answers
17 views

failed windows install Linux boot error to initramfs busybox vg-root no such device. ubipartman when try to fresh install? Please help

Had Linux 15 installed, was running so decided to install windows. Was trying to install Windows 7 and then 8. Both failed,but not before requiring me to create a new partition.(Windows said it ...
1
vote
1answer
12 views

Adding a custom preset build configuration to make

I'm building busybox from source and I have more than one configuration. (For different uses) As I have it now, each time I want to build something, I have to copy the correct .config file to the ...
0
votes
1answer
27 views

Unable to mount USB media in sagem fast3304 V2 router (busybox v1.01 inside)

I have a wireless router that runs busybox (V1.0). A media server (Twonky Media Version 3.4) running on this router. I would like to use its USB port to mount an external drive containing mutltimedia ...
2
votes
1answer
127 views

bash while/read loop behaves differently in a mips/musl/busybox based VM

On a musl/busybox based system running in qemu (mips), the script #!/usr/bin/bash printf '%s\n' "${BASH_VERSION}" > test.txt echo 'test.txt:' cat test.txt echo "No process substitution:" while ...
0
votes
0answers
70 views

How to auto-renew IP from DHCP if IP is lost or changed?

I have a Synology DS1515+ fileserver running "BusyBox v1.16.1 (2015-10-28 13:23:20 CST) built-in shell (ash)", stripped down from commands. Machine is running Linux 3.10.35 #5644 SMP Tue Dec 1 ...
0
votes
0answers
38 views

Ubuntu 15.10 system rescue on Busy Box after botched Deja-Dup backup attempt

I received an external hard drive for Christmas and attempted a backup of the home directory of my Ubuntu 15.10 system. Unfortunately, I botched it, and when I came back to the computer to check how ...
0
votes
1answer
25 views

Compress mtdblock with 'tar' before sending it via TFTP

what is proper command compress mtdblock with 'tar' before sending it via TFTP? tftp -l /dev/mtdblock3 -p 192.168.100.40
0
votes
1answer
43 views

Using dd command to download mtd block

How to use dd command to download mtd block from embedded Linux-based device? # cat /proc/mtd dev: size erasesize name ... mtd3: 003a0000 00010000 "DRTI2" I need download mtd3 block, so dd ...
1
vote
0answers
25 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 ...
0
votes
0answers
21 views

Install ifenslave in older busybox version

I would like to bond my ethernet interfaces and as much as I know, I need ifenslave for that. I use an older busybox version so it isn't installed how can I install or update it?
1
vote
1answer
40 views

Busybox pager with color capability?

I asked on Superuser about colors for git log in MobaXterm (on Windows), but it turned out that the problem wasn't MobaXterm—it's the lack of a -R flag in busybox's less. It would help my workflow ...
3
votes
1answer
84 views

How to fix “deauthentication by local choice”?

I built an embedded Linux using Buildroot and I have some trouble to stay connected to my AP. Cannot get an IP address more than once. I use wpa_supplicant to connect to my AP using WPA2-PSK. It ...
1
vote
1answer
66 views

How to find all files containing a specific string recursively on a BusyBox 1.4.2?

How to find all files containing a specific string within directory and all subdirectories on a BusyBox v1.4.2? I need to find string "AA:CC:DD:00:EE:55" or "AACCDD00EE55" BusyBox v1.4.2 (2012-06-01 ...
1
vote
2answers
233 views

How can I print the second to last line of many files into one file? [duplicate]

I have many CSV files in one directory which have various lengths. I'd like to put the second to last line of each file into one file. I tried something like tail -2 * | head -1 > file.txt, then ...
0
votes
0answers
123 views

Use dpkg in busybox

I am trying to install sensu inside a busybox docker container (busybox:ubuntu-14.04). To do that, I've downloaded the .deb package from the official sensu repositories and now I'm trying to install ...
0
votes
2answers
211 views

How to run the HTTP request without using CURL

I have ARM cpu based BusyBox v1.8.1 (Embedded Linux) with limited binaries. How can I http post or put without using curl? I have wget available: # wget BusyBox v1.8.1 (2015-04-06 16:22:12 IDT) ...
0
votes
2answers
59 views

Does ntpd have a default driftfile?

I have an embedded Linux with busybox's ntpd. My ntpd.conf is tinker panic 0 server pool.ntp.org iburst server 0.pool.ntp.org iburst server 1.pool.ntp.org iburst restrict default kod nomodify notrap ...
1
vote
2answers
134 views

Automatically entering ssh password from Busybox terminal

I currently am attempting to reboot a modem via ssh using a bash script. For reasons I don't feel like explaining, I NEED to start on an ubuntu server computer, ssh into a setup running busybox 1.21.1 ...
1
vote
1answer
359 views

Tftp file transfer via serial port

First , please excuse me for my very thin knowledge with Linux, just getting to learn it in work. So my question is if I can transfer files from my Linux machine which runs busybox using tftp over ...
1
vote
1answer
45 views

How to start a service in Netgear R7000(stock firmware)

I am working on Netgear R7000 build system(stock firmware).I want to start a service.I noticed that init is linked to busybox and busybox init does not use run levels.I have written a script in ...
0
votes
1answer
71 views

logrotate not compressing files as expected

With the logrotate config. below I was expecting the program to start compressing log files after creating the first backup file. Instead I am seeing this: [root@host ~]# ll /var/log total 1.2M ...
1
vote
1answer
79 views

Is sed run as a different user?

I have a sed script that changes some content in /etc/shadow. The actual change isn't important, I will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow ...
0
votes
1answer
202 views

Run shell scripts with -x for debugging system v boot

I need to debug the userspace part of the boot process and would like to run all the scripts with sh -x by default so I can observe what’s happening during boot. It's an embedded system that's using ...
0
votes
1answer
100 views

BusyBox : dhcp client seems to cause NFS mount to stop working

I have a BusyBox based embedded Linux system, mounting the RFS via NFS. This works fine except when I try to use udhcpd to get a DHCP address for eth0. This then causes the NFS mount to stop ...
2
votes
1answer
173 views

Relative path to anything not working (while running from initramfs)

I'm working in an embedded Linux system trying to get it booting its root file system in ram using initramfs. The system comes up for the most part but then has trouble in the init scripts. I've ...
3
votes
1answer
150 views

Start sh in a specified directory from inittab

I am currently working on an embedded Linux system. For it to be similar to our other products I need to have it start a shell in a specified directory on boot, accessible using the serial port. For ...
2
votes
2answers
44 views

Workaround for busybox head that drops NUL from data

TL;DR: Latest busybox (1.23.2) provided head is buggy and will happily drop NUL characters in the provided data. Replacing the binaries is not an option. I'm using head -[nc] -X in my scripts, is ...
2
votes
1answer
239 views

DD-WRT and mount command

I want to mount my usb drives using UUID or Labels. The busybox provided mount does not support these functions. I installed mount-utils from entware. However the busybox mount overrides the mount ...
0
votes
1answer
106 views

Cron not working at startup, but works if restarted?

For some testing, I need to reboot my system every minute. I have a busybox based system, installed cron using opkg. I setup a cron job using crontab, everything looks ok: root@SL1000-1103DC:~# ...
3
votes
4answers
521 views

How can I reboot my Linux system every 60 seconds?

I am debugging some embedded hardware that runs Linux 3.2.6 Angstrom distro, I need the unit to reboot every 60 seconds. I tried this: In /etc/rc5.d : S99reboot -> /home/root/test.sh ...
3
votes
2answers
233 views

What is stopping our UDP packets (how does it know the route is down)?

We have a server (camera) sending RTSP video packets via UDP. At a customer site it travels over several hops, one of which may be an unreliable WiFi link that drops the odd packet or five. Usually ...
0
votes
0answers
135 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 ...
5
votes
3answers
363 views

sshd not starting after boot on embedded linux built with buildroot?

I've done a minimal install using buildroot's default config for the Raspberry Pi. I also selected openssh and openssl from menuconfig: Package Selection for the target ---> [*] Networking ...
4
votes
3answers
685 views

RegExp testing with ash shell (BusyBox)

I need to do a RegExp pattern test on a certain bit of user input. This is the pattern I need to test the value against. ^([a-z]{2,3})\-([a-z][a-z]*[0-9]*)\-(\d+)$ An example match would be: ...
0
votes
3answers
110 views

Is there something like “common Linux commands”? [duplicate]

I come from the windows world trying to switch to Linux. Sorry for the naïve question but is there something like "common Linux commands"? For example in Windows, the command line is pretty limited, ...
1
vote
1answer
341 views

Overriding udchcp flags used by ifup in BusyBox

I am working on a system that I did not create the BusyBox build for. I do not want to recompile BusyBox for fear that my configuration will not completely match the original and besides this the ...
1
vote
1answer
191 views

I've moved my root directory accidentally to a folder, can't figure out how to move it back using busybox [closed]

I've moved my root directory into a website folder in /var/www. Have rebooted my server and am now in a Busybox rescue environment where I have found my root files in the website folder that I tried ...
0
votes
6answers
223 views

How can I filter out a specific part of a JSON response in ash shell

I'm using wget with -qO to a specific updater URL for OpenELEC which provides the following JSON response, similar to the one below. ...
1
vote
2answers
315 views

busybox tar or split large file to multiple smaller files

I am running Linux version 3.4.8 on an at91sam9g20. I want to take a large record and split it into multiple files. I have tried a number of methods, but none appear to function correctly, e.g. ...
0
votes
0answers
302 views

Auto login into router running Busybox

My router runs Linux with embedded Busybox. I'd like to autologin and run a web browser. Here is the /etc/inittab file: # /etc/inittab init(8) configuration for BusyBox # # Copyright (C) 1999-2004 by ...
1
vote
0answers
106 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
1answer
257 views

What is the proper way to activate VGs/LVs automatically on boot?

I have used Buildroot to create a system that runs in RAM on my ARMv5 Kirkwood SoC -based NAS-box. I use BusyBox as my init system, and /dev management is done using devtmpfs only. I've selected LVM2 ...
1
vote
0answers
37 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 ...
3
votes
2answers
63 views

Reason for BusyBox environment in debian-installer?

Debian-installer main menu has an "Execute a shell" option which starts an ash(Almquist shell) in BusyBox environment. One can exit this environment back to debian-installer with the exit command. ...
3
votes
1answer
721 views

What is the complementary command to 'rx' for xmodem transfer?

I have an installation of busybox on an embedded linux system that comes with a great little utility called rx: rx FILE Receive a file using the xmodem protocol This is perfect for transferring ...
1
vote
1answer
2k views

Installing Java JDK in busybox in an LXC container - java/lang/NoClassDefFoundError: java/lang/Object

In a web application I'm developing, users will be able to upload java code and I will need to compile and run that. For security reasons, I'd like to that inside an LXC container, and for footprint ...
1
vote
2answers
176 views

Using `sed` in Android without `g` modifier?

I have Stericson busy box installed in my rooted Nexus 10. I wanted to replace the first instance of </verse-sub-section> with </section> in the file here: <section>Psalm ...
1
vote
0answers
244 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 ...
0
votes
1answer
304 views

Monitoring network connectivity in Busybox/embedded Linux

I have an embedded Linux/Busybox system that needs to monitor its own network connectivity. I'm trying to figure out if the device is "all alone" on the network for more than say 10 minutes, and take ...
4
votes
1answer
2k views

How to interpret busybox “top” output?

I am using BusyBox on a small embedded ARM system. I'm trying to read the "top" output, in particular for the Python process listed. How much real memory is this process using? Also what does VSZ ...