Operating System - Linux
1748036 Members
4942 Online
108757 Solutions
New Discussion юеВ

Moving to new system disk

 
SOLVED
Go to solution
Eli_pok
Frequent Advisor

Moving to new system disk

Hi,

I'm having mechanical problems with my sda disk which has 3 partitions :
/boot
the entire vg00
and swap.
I inserted a new disk (sdb) and partitioned it as the sda.
vg00 - was moved with pvmove.
swap - was moved with swapon/swapoff.

How do I move the /boot partition ?

p.s.
I'm using a RedHat 4.4 with LVM2.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Moving to new system disk

Shalom,

You can use dd to copy the boot file system to the new disk. This will work and can be used to migrate or create a mirror copy of /boot

See the man page for syntax.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eli_pok
Frequent Advisor

Re: Moving to new system disk

Before using dd all I need to do is fdisk and mark the partition as beatable ?

Is there any thing I'm forgetting ?
Eli_pok
Frequent Advisor

Re: Moving to new system disk

I meant bootble (automatic correction).

Steven E. Protter
Exalted Contributor

Re: Moving to new system disk

Shalom,

If you are going to a new disk device, you may need to update /boot/grub/grub.conf

Take a look at it before you try and boot.

You may need to use the grub utility to update the system configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Heironimus
Honored Contributor

Re: Moving to new system disk

You'll need to install the grub boot block on the new disk to make it bootable. You should be able to do it with grub-install.