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
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@centos.org http://lists.centos.org/mailman/listinfo/centos
le 24/12/2006 12:00, Lorenzo Martínez Rodríguez nous a dit:
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
Thank you for your answer - I presume did more or less what you did (cp vs tar, grub install vs grub shell)... I noticed that my old system have no entries in /dev when examined from LiveCD, so the 2.6 kernels certainly create them at boot time In fact, the error message I get is during the boot is : "attempt to read block from filesystem resulted in short read while trying to open /dev/hdb3 - Could this be a rezo length partition ?" This partition seems to be ok when mounted by using boot the system or the LiveCD
Any idea ?
___________________________________________________________________________ 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