[svlug] How to move the Linux OS ionstalled on two small HDDs to single large HDD
Sargun Dhillon
xbmodder at gmail.com
Wed Feb 14 20:25:02 PST 2007
You have an alternate option if you don't feel like rebooting so much:
1. Plug in the second drive
2. Setup the second drive with LVM/RAID/Filesystems
3. Setup your boot loader and kernel
4. mount your drive RO like this: "mount -f -ro,remount /"
5. mount your new drive on a temporary mount point
6. copy it to your backup drive like this: "rsync --exclude=/proc
--exclude=/mnt/new -av / /mnt/new/"
7. Rinse and repeat steps 4-6 for each partition you have.
8. Reboot
On 2/14/07, Rick Moen <rick at linuxmafia.com> wrote:
>
> I wrote:
>
> > 1. Boot a maintenance CD/DVD (Knoppix or whatever).
> > 2. Make target filesystems on the new large hard drive.
> > 3. Mount filesystems from your old two HDs.
>
> 3.5. Also mount your filesystems on the _new_ hard drive (in case it
> was not obvious).
>
> > 4. Use your choice of techniques in "Copying Directory Trees" on
> > http://linuxmafia.com/kb/Admin/ , to copy filesystme contents.
> > Personally, I like rsync.
> > 5. Re-do your bootloader on the new large hard drive.
> > 6. Profit!
>
> One of the reasons I suggest doing this from a live CD/DVD is to avoid
> accidentally copying things you shouldn't. E.g., copying /proc/kcore
> could ruin your whole day.
>
> --
> Cheers, "Don't use Outlook. Outlook is really just a security
> Rick Moen hole with a small e-mail client attached to it."
> rick at linuxmafia.com -- Brian Trosko in r.a.sf.w.r-j
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
>
--
Sargun Dhillon
President
Atarack Communications, Inc.
(925)-202-9485
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kenny.linuxmafia.com/pipermail/svlug/attachments/20070214/89c61ca9/attachment.htm
More information about the Svlug
mailing list