Re: Procedure? Move existing Wheezy from sda2 to md1
On Sun, 19 Jan 2014 18:28:39 +0000
Ron Leach <ronleach@tesco.net> wrote:
> May I ask a detail? Did you have to mark any partitions 'bootable'?
> Actually, did you have to mark bootable partitions on either or both
> disks in the RAID-1 pair? Or did you have to set any other partition
> 'flags'?
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) print
Model: ATA WDC WD1002FAEX-0 (scsi)
Disk /dev/sda: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 63s 2047s 1985s grub bios_grub
2 2048s 266239s 264192s boot
3 266240s 1953525134s 1919968655s main
/dev/sdb uses the same layout as /dev/sda.
Using parted, you'll need to invoke 'toggle 1 bios_grub'. parted(8)
doesn't mention this subcommand, but it works just fine in wheezy.
Names of partitions are arbitrary. Partition 1 is unused, it just sits
there for BIOS.
> > At very least, you'll also need to reinstall GRUB on the RAID1
>
> Happy with that; I seem to have spent half my life reconfiguring Grub
>
> > and rebuild initrd.
>
> But that's more serious.
Mount new root into, say /mnt. Mount new boot into /mnt/boot.
Bind-mount /proc, /dev and /sys into /mnt/proc (/mnt/dev and /mnt/sys).
Chroot into /mnt.
Invoke 'update-initramfs -k all -u'.
Exit chroot, unmount everything.
Poweroff, remove unneeded disks, poweron.
That's the procedure I've used for this.
Reco
Reply to: