- installimage
- Created two soft RAID 1 arrays, one 512MB /dev/md0, one 207G /dev/md1
- mount /dev/md0 /boot
- cp -a /boot .
- umount /boot
- mdadm -S /dev/md0
- mdadm --zero-superblock /dev/sdb1; mdadm --zero-superblock /dev/sda1
- gdisk /dev/sda
- add new partition, full size
- w (changing sda to GPT)
- cfdisk /dev/sdb
- Change /dev/sdb1 to bootable and type linux (83)
- Write it back
- mkfs -t ext3 /dev/sdb1
- mount /dev/sdb1 /boot
- cp -a boot/* /boot/
- umount /boot
- grub-install --target=i386-pc /dev/sdb
- mount /dev/md1 /mnt
- edit /mnt/etc/mdadm.cnf to remove the now dead /dev/md/0 and rename /dev/md/1 to /dev/md/0
- edit /mnt/etc/fstab
/dev/sdb1 /boot ext3 defaults 0 0
and/dev/md/0 / ext4 defaults 0 0
Last active
November 23, 2018 19:21
-
-
Save chx/36e8d26646195f14fa3ba755fc66fc09 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment