Uninstall software raid one for linux drive with data intact
Assumption:
Assume to have only one drive with several raid one partitions.
Steps:
1. Make sure to boot from some usb live OS (i.e. CentOS Live OS 5.2 under USB)
2. Use mdadm –remove to remove ALL raid one partitions
(i.e., mdadm /dev/md0 –remove /dev/sdb1)
3. Use fdisk to change the type of ALL fd partition to 83 (i.e. fd -> 83)
4. Use tune2fs to change ALL volume label for the new drive
For example:
tune2fs -L / /dev/sdb2
tune2fs -L /boot /dev/sdb1
tune2fs -L /workplace /dev/sdb4
5. mount the /boot partition of the new drive, and edit the file /boot/grub/grub.conf
(i.e. change root=/dev/md? -> root=LABEL=/ )
6. mount the / partition of the new drive, and edit the /etc/fstab
(i.e. change all related mount points to use the new labels)
7. Reboot the machine without the USB and test if it is OK and can be booted from the new drive