Need help to umount initrd and mount real file system

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Tue Feb 6 14:07:17 UTC 2007


On Tue, Feb 06, 2007 at 01:02:16PM -0000, Rupesh Gujare wrote:
> hello all,
>  thanks for help..  and sorry for not stating my problem clearly
> so finally i was able to change rootfs.. Here is what i did at interactive shell by adding /bin/sh at start in /etc/init.d/rcS:--
> 
>  mount -t proc none /proc
>  mount -t ext2 /dev/sda1 /tmp
>  cd /tmp
>  umount /proc
>  pivot_root . tmp   #tmp exist on new-root
>  mount -t proc none /proc
>  exec chroot . /bin/ash <dev/console > dev/console 2>&1
>  exec chroot . /sbin/init <dev/console > dev/console 2>&1
>  umount /tmp
>  
> BUT HERE I GET ERROR AS:--
> Device or resource busy
>  
>  Where I am going wrong?

That script *has* to be init, not run from init. Try booting with
init=/etc/init.d/rcS and if it works replace /sbin/init with that
script.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070206/a89eee6e/attachment-0002.pgp 


More information about the busybox mailing list