Search My Blog

Saturday, January 2, 2010

Copy Your Linux Install to a Different Partition or Drive | Linux Journal

Copy Your Linux Install to a Different Partition or Drive

July 9th, 2009 by Ningappa Koneri in

If you need to move your Linux installation to a different hard drive or partition (and keep it working) and your distro uses grub this tech tip is what you need.

To start, get a live CD and boot into it. I prefer Ubuntu for things like this. It has Gparted. Now follow the steps outlined below.

Copying

  • Mount both your source and destination partitions.
  • Run this command from a terminal:
      $ sudo cp -afv /path/to/source/* /path/to/destination     
    Don’t forget the asterisk after the source path.
  • After the command finishes copying, shut down, remove the source drive, and boot the live CD again.

Configuration

  • Mount your destination drive (or partition).
  • Run the command “gksu gedit” (or use nano or vi).
  • Edit the file /etc/fstab. Change the UUID or device entry with the mount point / (the root partition) to your new drive. You can find your new drive’s (or partition’s) UUID with this command:
      $ ls -l /dev/disk/by-uuid/     
  • Edit the file /boot/grub/menu.lst. Change the UUID of the appropriate entries at the bottom of the file to the new one.

Install Grub

  • Run sudo grub.
  • At the Grub prompt, type:
      find /boot/grub/menu.lst     
    This will tell you what your new drive and partition’s number is. (Something like hd(0,0))
  • Type:
      root hd(0,0)     
    but replace "hd(0,0)" with your partition’s number from above.
  • Type:
      setup hd(0)     
    but replace "hd(0)" with your drive's number from above. (Omit the comma and the number after it).

That’s it! You should now have a bootable working copy of your source drive on your destination drive! You can use this to move to a different drive, partition, or filesystem.

Go there and see the comments and other info...
http://www.linuxjournal.com/content/copy-your-linux-install-different-partition-or-drive
--
Don's e-mail sig DonSongs links

God Bless,

Don


Check out my Web Pages and Blog’s too...


Don's Music and Poems at
DonSongs.com

DonSongs! Download Both Albums in MP3's Free! Also, there's Pages of my Songs, Poems and Pic’s of me and friends:>) www.DonSongs.com

DonSongs New Site With Music Players for Both Albums and New Page Design...



Download The Whole Living Beings - Climate Control Album Free!:) We have our New Album Out Now! With me, Don Bishop doing Vocals and Lyrics and Marty Splawn Playing all the Music! And You can Download the whole Album Free!

http://bishopco.com/LivingBeings/LivingBeings-ClimateControl-mp3.html



And here’s an alternative Living Beings download site that also has smaller 64Kbps M3U versions for Dialup connections and it has Streams of the complete album too if you just want to listen online without saving the MP3’s. http://www.archive.org/details/DonBishopLivingBeingsClimateControl



Living Beings Blog has some MP3 Song clips from our Living Beings - Climate Control album. Also, I put up some of my favorite Pic’s. http://livingbeings.blogspirit.com/



And here’s an alternative DonSongs download site that also has smaller 64Kbps M3U versions for Dialup connections and it has Streams of the complete album too if you just want to listen online without saving the MP3’s. http://www.archive.org/details/DonBishopDonSongs002



CMU - Christian Music Underground

CMU was started by Don Bishop to share the music of myself and of course the rest of you guys who are among the non commercial artists out there who work hard at their music and want to Glorify, Praise and Share the Love of our Lord Jesus.

http://christianrocker.com/index.php?mode=player&type=radio&id=79



DonSongs Blog... This is a Collection of Songs written & Sung by Don Bishop from 01-1991 to 03-2002.http://donsongs.blogspirit.com/

I need help starting a ministry for Kids. Do you love Kids and Teenagers? If you feel a calling on your life to help the least of these grow up and learn to live and love and believe in Jesus, then please check out our vision.

Psalms 68 Ministries http://www.Psalms68.com



My Web Site’s Business Page, the Entry Point for all the rest. My New Site is at http://bishopco.com/mambo/ and my old faithful is at http://www.BishopCo.com



Classified Ads, Place Your’s for Free Here! Try out my free Classified Ads Site.

Don's Deals Free Classifieds http://epage.com/js/csp/c44364/b44364/r571658/?csp=44364


No comments: