The tag has no usage guidance.

learn more… | top users | synonyms

18
votes
4answers
86k 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
209 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
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
8k 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 ...
3
votes
2answers
2k 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 ...
3
votes
2answers
13k 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
3answers
8k 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: ...
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
789 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
3k 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
2answers
2k 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 ...
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: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html But I am very much a beginner with ...
1
vote
2answers
5k 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
2k 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
277 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
2k 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
139 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
2answers
2k 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 ...
1
vote
1answer
2k 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
1answer
3k 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
49 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
2k views

How to force a longer `reboot` in Busybox v1.13.3?

reboot appears to make the root file system read-only almost immediately, causing a race condition with one of my processes which tries to write settings out to a file during its approx 1-2 second ...
1
vote
1answer
395 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
450 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.
0
votes
4answers
1k 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
715 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
1answer
123 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
418 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
3answers
955 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. ...
0
votes
2answers
899 views

How to check if busybox has a command?

In my case, I want to see if busybox has "md5sum" builtin. I am currently doing this: $ echo | busybox md5sum &>/dev/null && echo yes || echo no I have not been able to find any ...
0
votes
2answers
938 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 ...
0
votes
1answer
34 views

How to find files that contain a string in its content OR the path?

Find and grep does not work afaik because I need to create a list of files that satisfy EITHER requirement, not both. I assume this requires more than a one-liner. Any suggestions?
0
votes
1answer
139 views

How to run a script uninterrupted accross power-cycling

I'm stomped on how to accomplish this task. I need to run this script that fills up the nand flash on an embedded (linux-Busybox v1) device with random data, then continually repeats this process ...
0
votes
1answer
399 views

RSS Reader/Downloader on a NAS

First, I'm no NAS-pro and I'm no Unix-pro. Second, I read the other RSS-downloader question, but rsstail is a C-source and tvrss is a GUI-program. I also checked out NetVibes, but I can't sort by ...
0
votes
1answer
3k 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
1answer
219 views

Eject slot-loaded CD in BusyBox 1.18.4

I have a PowerPC Mac Mini that is running Ubuntu and when booted it fails to BusyBox. Problem is I cannot boot to live CD because there's a CD already in the slot and for some reason the eject applet ...
0
votes
1answer
240 views

Limited password-less user to run a single command

This is a pretty wonky setup -- hopefully someone else has gone through this kind of setup. I have a UPS that is connected to a bare-metal server which is running APCUPSD, which is working as ...
0
votes
2answers
1k views

Recursive touch command on BusyBox 1.01

I'm trying to write a bash script that will run on my QNap NAS to touch a directory recursively. I have this: find $1 -exec touch {} + However, find that comes with BusyBox 1.01 doesn't support the ...
0
votes
0answers
24 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 ...
0
votes
0answers
12 views

Date settings only last 30 minutes

I need to update the date for a Accesspro 4 access control. It uses busybox 13.4. I´ve configured the date via different ways #date -s "2016-06-13 14:00:00" or #date +%Y%d%m -s "2016-06-13 14:00:00" ...
0
votes
0answers
38 views

X11 download on BusyBox

I recently accessed BusyBox server (STMicroelectronics Base Distribution). My objectives are installing X11 server and switching runlevel to GUI mode. However i don't have anything to do so, ...
0
votes
0answers
24 views

udhcpd.conf for windows client

I have a embedded board running busybox that I want to use as a wireless file server. It does not connect to the internet. Using hostapd udhcpd and httpd it worked fine with ubuntu 14.04 and 12.04 ...
0
votes
0answers
26 views

Zeroconf on BusyBox v1.16.1

What are the options of adding zeroconf, mdns, bonjour like daemons on busybox, I need other computers on the network to be able access my busybox using hostname. udhcpc.script just updates the local ...
0
votes
1answer
34 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)?
0
votes
0answers
18 views

TFTP error code returned in bash

I have the below code to check on tftp error in my bash script. # fetch images from tftp server tftp_fetch() { echo "Fetching via tftp: $1:$tftp_path/$2" if ! tftp -g $IPADDR -r $...
0
votes
0answers
117 views

makemkv on synology nas (busybox)

I am trying to get blueray ripping setup to work on my synology NAS (DS215+) which runs busybox. I can get the source but can't compile it on BusyBox (or can't figure out how) since there is no gcc.
0
votes
1answer
96 views

Assigning unique IP ranges for multiple USB Ethernet gadgets on a single host

I am currently developing an embedded device running Linux, that allows being connected to a Windows host using USB. To achieve this, I am successfully using the USB Ethernet gadget driver on this ...