Re: How to migrate to new disk?

From: John-Paul Stewart (jpstewart_at_sympatico.ca)
Date: 12/05/03


Date: Fri, 05 Dec 2003 10:27:39 -0500


"Yvan@office" wrote:
>
> I have RH 8 installation on *one partition* on disk 1. It was suppose to
> be a test installation, but now that all is configured, I would like to
> move it to another HDD.
>
> I partitioned new HDD as I wanted, and now I am wondering how to copy
> entire installation on it.
>
> I Googled for a while and I believe that I found a solution:
>
> After "formating" partitions:
>
> # mke2fs -j /dev/hdfx
>
> I am suppose to:
>
> # shutdown now

There's no need to shutdown right now, AFAIK.
 
> and mount /dev/hdfx /mnt/new/x
>
> then:
>
> # cd /var
> find . -xdev | cpio -admpv /mnt/new/6
>
> Now that way I can copy /home, /usr and /var. What do I do with / ?

Same thing for /. Just be sure to exclude /home, /usr, and /var when
copying it.
 
> I also need to edit /mnt/new/1/etc/fstab and configure grub.

Yep. That's fairly straightforward to, although I use LILO rather than
Grub.

Have you read the "Hard Disk Upgrade HOWTO" from the Linux Documentation
Project? It should cover everything you need to know.

http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/index.html



Relevant Pages

  • Re: No Shutdown or Restart
    ... the Shutdown & Restart options do ... Assuming you have a working machine notwithstanding the shutdown problem, ... the HDD) should it be an OEM machine? ... I was responding to the answers I was receiving and leaving the ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: No Shutdown or Restart
    ... The other day my machine quit responding to the Shutdown & Restart ... the HDD) should it be an OEM machine? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: No Shutdown or Restart
    ... Assuming you have a working machine notwithstanding the shutdown ... the HDD) should it be an OEM machine? ... it probably would be wise to invoke the chkdsk /r command. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Spin down HDD after disk sync or before power off
    ... Because currently when I call "shutdown -p now", HDD is powered off at it's ... You don't have to spin down a disk before powering it off. ... Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: ...
    (freebsd-hackers)
  • shutdown vs. always-on
    ... the other "shutdown or logoff" thread piqued my interest as to what the ... when a system dies it's on startup. ... all the time because startup stressed the hdd more than just leaving it ... the most current opinion on the subject. ...
    (microsoft.public.windowsxp.general)