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

Re: Trying to move root partition



[Please turn off html when posting to mailing lists.  Thanks.]

Paul Galbraith wrote:
> I want to move my root partition to a new drive.  I created a new partition 
> and formatted it, and then used cp -a from a knoppix CD to copy the root 
> parition files over to the new parition,

I recommend that you use 'rsync' for an image copy like that instead
of 'cp -a'.  In particular rsync can avoid /proc and your mount point
which avoids the recursion.  '-av --exclude /proc' et al

Even better would be to use the provided knx-install.sh (spelling?)
provided in /usr/local/bin by knoppix.  It will handle all of the
details for you.  You can dig into that script to determine what they
do differently.

> and changed fstab to point to the 
> new location.  However, when I reboot from the new location, I get this 
> error and a kernel panic, and the system freezes during boot:
> 
>    mout: /dev2/root2 is not a valid block device
> 
> Does anyone know what happened?

The knoppix boot sequence from a CD is not identical to the boot
sequence from the hard drive.  So cloning the CD directly is not
really what you want.  Use the knoppix installation script instead.

Bob

Attachment: pgpB4uXZQ7DrX.pgp
Description: PGP signature


Reply to: