OpenWrt Forum Archive

Topic: debian on the openwrt

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want install debian  on openwrt.all things is ok however  with these comment i have problem:

1-mount /dev/sda /mnt/sd
2-mount -o bind /dev /mnt/sd/dev
3-mount -n -o move sysfs /mnt/sd/sys
4-mount -n -o move proc /mnt/sd/proc
5-cd /mnt/sd/
6-pivot_root . initrd
7-cd /root
8- exec switch_root /mnt/sd /sbin/init  "$@" </mnt/sd/dev/console >/mnt/sd/dev/console 2>&1

after latest line console is logout me and see this message:
switch_root:not rootfs
can you tell me why?
i need help you.

m44miri wrote:

switch_root:not rootfs
can you tell me why?

Sounded like there is no ROOTFS on the partition the system was trying to switch to.

can you explain more?
What do I need to do for chroot or switch_root ?

Please.I 'm waiting yet for any answer....

sudo adm
su -

I'm sorry!! what is this? ADM!!!!!!!
Your mean is that i should switch to the ROOT user?
But i'm in the ROOT user with console cable.
I using the RouterStation Pro

(Last edited by m44miri on 22 Oct 2012, 06:08)

The discussion might have continued from here.