1
vote
0answers
10 views

how to migrate a squashfs system to another filesystem that's read/write

Well, basically what i want to do is copy all of my router's files (even the dev file (because i'm running busybox)) to my usb flash drive and let my router by default boot from the usb device. it ...
2
votes
1answer
19 views

Debian installer - customize busybox and live system/environment

I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi ...
1
vote
2answers
548 views

SSH tunneling through a busybox router

I have a busybox router and I'm able to login to the console using telnet & I also have access to the web interface. My question is, how can I create an ssh tunnel from my local network through ...
1
vote
0answers
117 views

Why my linux does not detect USB storages at runtime? [closed]

I have an embedded system with Linux kernel v3.0.35 and Busybox v1.20.2. If I plug a USB flash drive in before starting the operating system the boot process mounts it to the proper place, with the ...
1
vote
0answers
34 views

Linux shell lagging one step

I upgraded busybox from 1.2.1 to 1.7.4 in my embedded system platform and it is connected to linux host via serial cable. Now when I type any command in shell on that embedded system platform like ...
1
vote
0answers
438 views

Busybox `uname -r` shows wrong kernel version

My kernel is 3.2.27 and /lib/modules/ contains 3.2.27 + folder. But when I am using /# uname -r 3.1.9+ It's showing a strange output. My problem is that for modprobe depends on uname when I put ...
2
votes
2answers
483 views

No /proc in a Busybox-based embedded Linux distribution

I am making an embedded Linux distribution and my board is a Raspberry Pi. My kernel version is 3.2.27 without initramfs and my root file system as follows: /lib /* contains ...
3
votes
1answer
4k views

Create and control start up scripts in BusyBox

I have compiled a custom linux kernel in BusyBox. BusyBox init does not support runlevels. When the kernel boots up in BusyBox, it first executes init which looks for the specified runlevel in ...
4
votes
1answer
340 views

inittab '-' character in process field

I have a an inittab file with the following entry: console::askfirst:-/bin/ash According to this Man page a '+' character in the process field means init will not do utmp and wtmp accounting ...
1
vote
1answer
673 views

How do I safely unmount a network share on Linux STB without crashing (I get GSOD)?

I have a network share named dreambox on C:\dreambox that is shared with the group Everyone in Windows. I have mounted it to /hdd on a Linux-based STB with OpenDreambox (OpenEmbedded) using Telnet ...
3
votes
3answers
409 views

How to remove a trailing CRLF from a file?

I have a binary file with a trailing CRLF (2 bytes total) that I want to remove. How should I do it? Please note that I'm using busybox and I don't have perl.
2
votes
0answers
107 views

Busybox exits instantly printing 'SIGUSR1'

I was tinkering with my router these days. It runs on MIPS core and the OS is based on Linux. But the builtin busybox is very limited. I managed to export a binary of busybox compiled for MIPS through ...
1
vote
0answers
414 views

Run script as root under Busybox?

I have written a shell script that has to be run as root under Busybox. My first thought was to add the script to /etc/busybox.conf like this: /sbin/my_script.sh = ssx root.root But this only works ...
6
votes
2answers
679 views

How to develop a small linux distro?

Since Linux uses open-source packages, I was wondering if I could develop my own Linux distro by compiling these packages. I tried to read the Linux From Scratch book but it's quite big and uses lots ...
2
votes
1answer
1k views

Linux 2.6.32, busybox, Identify physical SD device

I have a USB card reader with two SD card interfaces and two USB ports (so it can also act as a USB hub) all on the same device. I am running an embedded Linux device that is unsupervised in its use ...
2
votes
1answer
227 views

Can I bypass crontab command by putting the file?

I need to create and put my cron file with cat cronfile1 cronfile2 > cronfile crontab cronfile -u myuser This works for me, but I want to know if I can do directly cat cronfile1 cronfile2 > ...
4
votes
3answers
5k views

when does the system send a SIGTERM to a process?

My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send ...
7
votes
4answers
2k views

How does one atomically change a symlink to a directory in busybox?

I am trying to (as close as possibly) atomically change a symlink. I've tried: ln -sf other_dir existing_symlink That just put the new symlink in the directory that existing_symlink pointed to. ln ...
4
votes
2answers
6k views

Trouble getting busybox switch_root to work

I'm working on an embedded ARM Linux system that boots using initramfs. (Here's some background from a couple earlier questions, if you're interested.) So far, thanks in part to help received here, I ...
6
votes
3answers
3k views

How to generate initramfs image with busybox links?

Having been directed to initramfs by an answer to my earlier question (thanks!), I've been working on getting initramfs working. I can now boot the kernel and drop to a shell prompt, where I can ...