Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [busybox]

The tag has no usage guidance.

36
votes
6answers
176k views

How to display current path in command prompt in linux's sh (not bash)?

I would like to display current path in sh prompt (not bash shell), which currently just shows "#", I tried with introducing this env PS1="$(whoami)@$(hostname):$(pwd)" and set PS1="$(whoami)@$(...
4
votes
2answers
274 views

Attempting to test an embedded nand flash chip by filling up a file to drive capacity

I'm trying to test an embedded nand flash chip using the dd command (write random data to a file): dd if=/dev/urandom of=/nand/storage/testnand/test.raw bs=100000 count=50 2> /dev/null However, ...
4
votes
2answers
4k views

sed Command on BusyBox expects different syntax?

I hope I phrased the question correct. I have a script that makes use of 'sed' a lot. It works great on my ubuntu with the GNU 'sed'. But when I try to run it on BusyBox it fails. Is there a way to ...
4
votes
2answers
7k views

Run ifconfig without sudo

I have an embedded Linux running on a imx6 platform. This is a freescale embedded linux. The problem is that there is no sudo available for this linux, but I need to activate and deactivate the wlan0 ...
4
votes
4answers
3k views

Unmounting Detachable devices (eSATA,USB storage) in Linux

A detachable device like eSATA, USB drive can be abruptly removed (by simply pulling the plug). If there are open file handles on a partition, then this partitions won't unmount, i.e. the Linux ...
4
votes
2answers
9k views

Ubuntu fails to start after system update (displays BusyBox notice on command line)

I am running Ubuntu 10.x on one of my boxes. Yesterday the SPM popped up during a session, with the choice to install the latest updates. I agreed (like I have done many times before). This time, ...
4
votes
1answer
10k views

Ubuntu system drops to BusyBox prompt while booting, followed by “udevd [94]: timeout: killing '/ sbin / blkid-o udev-p / dev / sda' ” error

I have installed Ubuntu 11.10 on a netbook (Intel 1.6 GHz and RAM 1 GB) with Windows XP. One week ago, Ubuntu stopped. That day had not installed any upgrade or any software. When I try to start ...
4
votes
4answers
13k views

mount on busybox: invalid argument when trying to mount smb share

I am trying to mount a smb share on my embedded Linux running on ARM (3.6.9) with busybox 1.21 mount -t cifs //192.168.0.12/mydata /mnt/myData results in an invalid argument error: mount: mounting ...
3
votes
2answers
5k views

How to wait for a response on the inbound side of the socket using NC command under BusyBox?

I am having problems using the Netcat that comes with BusyBox 1.1.3 to make an HTTP request and then receive the response. The NC command seems to quit out as soon as it reaches the end of the request ...
3
votes
2answers
15k views

Ubuntu install boots into BusyBox

I'm trying to install Ubuntu on a wiped drive and for some reason when i choose the install option, it goes to the BusyBox built in shell. Can anyone tell me why it would do that and how to get to the ...
3
votes
1answer
456 views

Fastest way to transfer data to new QNAP disk?

I have (just) added a new disk to my QNAP NAS. What is the fastest way to transfer all data from QNAP disk 2 (2TB, 80% used) to the new QNAP disk (disk 5, 4TB)?
3
votes
0answers
142 views

Determine if a user exists on ESXi (Busybox)

I'm writing a shell script in which I need to check if a given user exists. On most Linux systems, I can use: id -u ${USER} 2>&1 || die "User ${USER} not found" or getent passwd ${USER} 2>...
3
votes
0answers
216 views

BusyBox Tar shows different ownership than GNU Tar

UPDATE: I discovered that I could view/extract with the original permissions using the "--numeric-owner" flag on GNU Tar. However, I'd still like to understand exactly what tar is doing here, as it's ...
2
votes
3answers
2k views

Are there non-GPL alternatives to Busybox? [closed]

Busybox seems to be sort stumbling block for vendors that want little embedded linux. There are even lawsuits regarding Busybox. Are there more liberally licensed (BSD, MIT or at least LGPL) analogue ...
2
votes
2answers
904 views

Search all files containing text

With Busybox, how do you search for an expression within a bunch of files recursively through a bunch of directories, but only look through text files? We don't know what the file's suffix is going ...
2
votes
2answers
5k views

How can I make the read only file system writable on BusyBox?

I want to change some files on my router. Firstly I can change everything in /var, but I want to change /etc/fstab. When I try to change it, I get an error message that says the file system is read ...
2
votes
1answer
358 views

Stop Linux from allocating more memory to a process

I want to test that a process properly kills itself and restarts when it can't allocate needed memory. One idea I had was to start other memory-consuming processes and hope that OOM killer kills the ...
2
votes
2answers
4k views

How do I gracefully fall back to AutoIP when there is no DHCP service available?

I am developing an embedded device based on Linux and Busybox, and trying to make it adaptable to different network configurations. I want to: 1- At boot time, if there is no DHCP reply, use an ...
2
votes
0answers
79 views

sshd throws invalid password after date change

Problem I am working on an embedded device, while developing code it is really nice to have a ssh connection. The device is portable and sometimes completely disconnected from battery thus to keep ...
1
vote
2answers
3k views

Why does my busybox diff report 'Common subdirectories' for every file pair?

I am using this version of diff on my Synology NAS to verify a backup: xyz> diff BusyBox v1.16.1 (2014-05-29 11:26:15 CST) multi-call binary. Usage: diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U ...
1
vote
1answer
108 views

IF block statement in inside an execlineb script

I have a Docker Container based on Alpine which runs S6 Overlay to manage two services inside it (a music DB, and a web interface to manage it). The problem is that the second service is optional, and ...
1
vote
1answer
941 views

Set up git on busybox

I want to set up git on busybox. But I can't find any instructions on doing so. I found this previous question but the link is dead. What are the basic steps?
1
vote
1answer
5k views

How to set up git in NAS Server (git, ssh, busybox)

I'm trying to set up git using my Synology DS212J NAS Server. I've been following these instructions: https://www.wonko.de/2011/01/set-up-git-on-synology-nas.html But I am very much a beginner with ...
1
vote
2answers
8k views

How i can install BusyBox on Virtual Machine?

How i can install BusyBox on Virtual Machine? For instance, VMVare or VirtualBox? Where I can see some manuals about this problem?
1
vote
2answers
3k views

Generating a timestamp to usec accuracy in shell (Busybox)

I want to generate a textual timestamp in the unix shell with microsecond accuracy, without using the %N date option (I am using busybox, a smaller unix toolset that does not have this option), to ...
1
vote
1answer
3k views

devmem: can't open '/dev/mem': Permission denied

I have 2 phones (Samsung Galaxy S4 LTE I9505, Android 4.4.2 Kitkat) which I already rooted and have root access to the phones. Previously, on my rooted Samsung Galaxy S3 LTE I9505 running Android 4.1....
1
vote
1answer
213 views

Is this expected reverse DNS behaviour or something weirder?

Excuse me as I'm a linux noob: I have a system (specifically, a Nexus 7 running CM 10.2.1 with busybox), which, when I run host or traceroute on its nominal private IP (192.168.1.7) gives a hostname ...
1
vote
1answer
4k views

TFTP an entire directory, problem with spaces in names

I've done a bit of digging, but I haven't discovered a working solution yet (to my surprise.) I've been trying this: # for i in `ls`; do tftp -l "$i" -p 192.168.1.100; done I just want to TFTP the ...
1
vote
0answers
189 views

How to configure a listening-only NTP client?

I'm creating an advertisement display, based on RaspberryPi (no real time clock present) and piCore, which is busybox-based tinycorelinux. It will be behind a firewall, and even within its own network ...
1
vote
0answers
477 views

busybox' udhcpc can not be killed

On an linux device using busybox I use the following /etc/network/interfaces ... # Wired interface eth0 is using dhcp, enabled while system start auto eth0 iface eth0 inet dhcp pre-up [ -n "$(cat ...
1
vote
0answers
105 views

Debugging inetd issue on BusyBox

I'm having issues with connecting via FTP to an embedded ARM system running BusyBox on Linux 2.6. When I try to initiate a session, inetd correctly spawns a ftpd process, but it does not respond to ...
1
vote
1answer
355 views

How to grep literal match in list of domains

I have a hosts file full of hosts, like so: 127.0.0.1 home-domain.net 127.0.0.1 here.home-domain.net 127.0.0.1 home-domain.netn 127.0.0.1 home.domain.net 127.0.0.1 home.domain.net.some In an ash ...
1
vote
0answers
50 views

Ubuntu Machine boots into BusyBox

My ubuntu VM was working fine. Now when I boot up it boots into BusyBox. I have run the Unbuntu boot tool with no luck. Here is the log from the boot tool. http://paste.ubuntu.com/17567076/ How can I ...
1
vote
0answers
148 views

Allowing ::1 on busybox httpd

I'm running busybox 1.23.2 (compiled by myself from source) on Linux. I'm trying to prevent other people from accessing the files I put on my server, so I thought I'd configure the server: $ cat etc/...
1
vote
1answer
3k views

Adding a C compiler to BusyBox

I recently started using BusyBox to do simple tasks, but now I need gcc, tcc or any C compiler on it. I heard about adding an applet, but I don't know how to do it. I have gcc source, BusyBox source, ...
1
vote
0answers
1k views

how to set adduser home directory permission on busybox

I'm using busybox's adduser to create home direcory. adduser foo I found the directory which created in a strange permission drwxs-xr-x (with setgid flag) Is there any config file which can let it ...
1
vote
1answer
430 views

Actiontec Q1000 missing cp and rm from busybox

The new CenturyLink Q1000 busybox seems to be missing some crucial commands - namely rm, cp and ln.. It does have tftp so if I can, somehow find a server with binaries, I might be able to get those ...
1
vote
0answers
597 views

Adding udev for embedded linux

I am using an arm processor and linux busybox as my OS. I want to add udev running in my system. The system has mdev. But doesn't seem to fulfill my need. How can I add udev for my system? thank you.
1
vote
3answers
2k views

what is default username and passoword for busybox's ftpd [closed]

I am trying to ftp into my android device which is running ftpd server of busybox's multi-binary, As the ftpd applet quotes "Anonymous ftp server" but when I use anonymous as username and my email ...
0
votes
5answers
3k views

smallest possible linux distribution

I want to build a really small linux distribution which would be using busybox, possibly uClibc. In the beginning, just a ramfs would do. Plus, I dont mind not having a native toolchain. I went ...
0
votes
1answer
1k views

How can I find out the vfstype of a hard drive partition?

How do I find out the vfstype of a hard drive partition when it is unmounted in BusyBox? My question is specific for BusyBox since I am trying to do a mount during a Debian install. If I do fdisk -l ...
0
votes
5answers
314 views

moving files and folders to a subfolder

I would like to move all files and folder from one directory to one of its subfolders. How do I do that? I am using BusyBox and linux. ex: move all files and folder in /my/path/ to /my/path/...
0
votes
3answers
91 views

Why does less +F say “can't open '+F'”?

I just read about the advantages of using less +F over tail -f and wanted to try it out. When I do I get the following: less +F /log/nginx_error.log less: can't open '+F': No such file or directory ...
0
votes
1answer
321 views

This bash command runs on OSX but not on Busybox ..why?

I've got this bash one-liner , it runs fine on OSX, but doesn't on Linux, I'm suspecting the linux distro (Busybox) on my Qnap has got something to do with this . Here is the command that runs on OSX ...
0
votes
2answers
3k views

Can ActionTec routers (e.g. FiOS MI424WR) be tweaked?

Every site that I've looked for info on customizing a LAN connected to FiOS has offered variations of this: configure the ActionTec as a WAN bridge. buy a different router and customize that. connect ...
0
votes
1answer
2k views

udhcpc: How can I get the result of requesting option?

I use commond line like this: udhcpc -O domain But the teminal only shows like this: Sending discover... Sending select for 192.168.X.X... Lease of 192.168.X.X obtained, leasing time ... So where ...
0
votes
1answer
4k views

How to make BusyBox running where my backend operating system can be xyz?

I am trying to setup BusyBox on top of ArchLinux, Fedora or Ubuntu. So that when i telnet i can get something like this following: But how do i get started? Simply install Busybox on top of my ...
0
votes
2answers
436 views

dual booting(Windows 7/Ubuntu 10.10/11.04) not seeing any of the OSes

I've run into a problem on my HP laptop G32-301TX with i5 Intel processor and ATI Radeon graphics. I have a dual booting with Windows 7 and at first Ubuntu 10.10 every thing runs fine till I upgraded....
0
votes
2answers
2k views

Any reason why IDE disk hda1 shows up as sda1 under Knoppix Live CD

I'm running a debian system and today I ran aptitude safe-upgrade. It's been a while since I'd down that so it downloaded and installed a bunch of stuff including a new kernal image. Everything ...
0
votes
1answer
13 views

Extract line from file in .tar.bz2 Archive

I'd like to use stdin/stdout on a single line to display the version from a file within a .tar.bz2 archive without affecting the existing archive or leaving any temporary files behind. The file only ...