Having a hard time copying root filesystem to new drive...

Robin Laing Robin.Laing at drdc-rddc.gc.ca
Fri Jan 18 21:08:02 UTC 2008


Daniel B. Thurman wrote:
> Sigh... I pulled an all-nighter trying to copy my existing root filesystem
> onto a new drive due to running out of filesystem space.  Seems that
> I was able to cp -a the existing drive to my new filesystem partition,
> was able to properly setup the fstab, relabel, and so on, was able
> to see grub working but when it came to starting up the new drive,
> I get the following errors:
> 
> ....blah....blah
> Uncompressing Linux... Ok, booting the kernel.
> Red Hat nash version 6.0.19 starting
> Unable to access resume device (LABEL=SWAP-sda3)  <- have to rebuild the initrd file....
> mount: could not find filesystem '/dev/root'
> setuproot: moving /dev failed: No such file or directory
> setuproot: error mounting /proc
> setuproot: error mounting /sys: No such file or directory
> switchroot: mount failed: No such file or directory
> [hang]
> 
> What am I doing wrong?
> More importantly, what is the proper procedure in making a copy of your
> existing root filesystem onto a new drive partition?
> 
> Thanks!
> Dan
> 
> 

If you used LVM partitions, you only need to add another partition to 
that partition.  Then grow the file system.

If you have not used LVM, then look at splitting your partitions around 
and going from there.  How much space and what partitions do you have.

I normally put my home on a separate drive and then put the OS on it's 
own drive.

Can you supply a df -h of your system?



-- 
Robin Laing




More information about the fedora-list mailing list