[CentOS] Copying my system to another drive
Lorenzo Martínez Rodríguez
Lawwait at yahoo.es
Sun Dec 24 11:00:02 UTC 2006
Christophe,
I had written the procedure I use to migrate data between disks when my
server one has died (even moving /dev and conserving old permissions to
the files, I know "cp -a" does almost the same with files and
directories, but special devices mounted on /dev).
http://lists.centos.org/pipermail/centos/2006-October/071313.html
I hope this link could help you
Merry Christmas
Christophe wrote:
> Hi, I'm trying to copy my CentOS install to a new drive.
>
> - old drive is /dev/hda and had
> hda1 : /boot
> hda2 : swap
> hda3 lvm
> hda5 : lvm
> hda4 : /usr/local
> - new drive is /dev/hdb
> hdb1 : /boot
> hdb2 : swap
> hdb3 : /
>
> I decided to get rid of lvm which is useless to me. I've created and
> formated the new partitions and copied anything from the old drive to
> the new one excepted the /dev entries by issuing some cp -a
> With grub I did root (hd1,0) then setup (hd1)
> I've also modified the content of hdb1 /boot/grub/grub.conf and passed
> param root=/dev/hdb3 to the kernel
>
> I didn't find how to created all the /dev entries but I read somewhere
> that 2.6 kernels create them at boot time.
>
> So, what is the problem ? (I boot my server by selecting the new drive
> from the BIOS boot devices menu) : boot goes until 'checking root
> filesystem', then complains about something really wrong on /dev/hdb3
> and send me to a kind of rescue shell.
> I did a fsck on /dev/hdb3 which says the volume is clean
>
> Don't know what I've missed and what I have to fix...
>
> just in case, cat /proc/mounts gives me
> rootfs / rootfs rw 0,0
> /proc /proc proc rw,nodiratime 0 0
> none /dev tmpfs rw 0 0
> /proc /proc proc rw,nodirattime 0 0
> /proc/bus/usb /proc/bus/usb usbfs rw 0 0
> /sys /sys sysfs rw 0 0
> none /dev/pts devpts rw 0 0
>
>
> Thanks and merry Christmas to all !
>
>
>
>
>
>
> ___________________________________________________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
> questions ! Profitez des connaissances, des opinions et des
> expériences des internautes sur Yahoo! Questions/Réponses
> http://fr.answers.yahoo.com
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
--
Lorenzo Martínez Rodríguez
Consultor de seguridad informática
More information about the CentOS
mailing list