Hello All, I am trying to use switch_root in order to switch the root from one partition to the other where my actual filesystem resides along with other binaries. I am using the following commands and getting issue:-
When the system boots up, we are trying to # mkdir newroot # mount dev/mmcblk0p14 newroot whole of system partition gets mounted on newroot successfully, after that:- # switch_root newroot sbin/init switch_root: failed to mount moving /dev to newroot/dev: Invalid argument switch_root: forcing unmount of /dev switch_root: failed to mount moving /proc to newroot/proc: Invalid argument switch_root: forcing unmount of /proc switch_root: failed to mount moving /sys to newroot/sys: Invalid argument switch_root: forcing unmount of /sys switch_root: failed to mount moving newroot to /: No such file or directory switch_root: failed. Sorry. I am getting the above errors. And not able to understand "Invalid argument". Can you please help me on this, how to use switch_root and change my rootfs to /media/mmcblk0p14/ where my complete filesystem is? Thanks in advance .. Regards, Kanishka Dutta _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
