Copying my system to another drive

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



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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux