Re: CF disks images and centos

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



> > The size has changed. The original CF card was 7637M (255 heads/63
> > sectors/928 cylinders)
> > The new CF card is 8019M (255 heads/63 sectors/974 cylinders)
> >  
> > I simply do "dd if=cf.img of=/dev/sde" to copy the images to CF.
> 
> ARG!!! Don't do this!  You really, really don't want to dd a 
> raw disk image (including mbr/partition table) to a 
> *different* geometry disk -- it does not matter what the 
> 'disk' tech is (IDE. SCSI, SATA, SSD, etc.).

Even if the two disks have the same manufacturer and manufacturer part
number, different firmware revisions can fail to boot after

dd if=/dev/spinpoint.partnumber.fwrev1
of=/dev/spinpoint.partnumber.fwrev2

Been there, done that, got bit where the sun doesn't shine.

> Partition the new disk with fdisk (or something like that), 
> then use mkfs to make the file systems than use dump/restore 
> to move the file systems.  Finally use grub-install (or lilo) 
> to install the boot loader.

+1
sfdisk -d /dev/olddisk > /product/partition.layout
dump (whatever)

...years later...

sfdisk /dev/newdisk < /product/partition.layout
restore (whatever)
grub-install (magic tbd)
# SHIP IT
*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**

_______________________________________________
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