[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to switch root file system?



Sorry if it is silly,

I need to do something like:

1. boot the normal root
dd if=/dev/zero of=loop.fs bs=1M count=4

mke2fs loop.fs

mount -o loop loop.fs /mnt/loop

copy my second root file system to /mnt/loop

Now I want the current root / is changed to /mnt/loop.
How can I do that? can I do a

chroot /mnt/loop /sbin/init

or chroot /mnt/loop /bin/bash

I need the normal root, it means I can do everything
there (new root) like compiling programs etc...

Thanks 

=====
S.KIEU

_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



Reply to: