LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-04-2009, 10:17 AM   #1
vansch76
Member
 
Registered: Aug 2007
Location: Asheville, NC, USA
Distribution: Mint 17 Rebecca
Posts: 145

Rep: Reputation: 18
Moving my current install to a bigger hard drive


Hi everyone

I want to install a bigger hard drive in my laptop and was wondering
if Ubuntu has a utility to move the install from one hard drive to
a different one. Im using Hardy Heron. I know windows has a utility
to do this but have not heard of one for Ubuntu.

I do have an external hard drive enclosure that I can put my new drive
into to copy my current install to if it is possible.

The reason Im interested in just copying my drive instead of just doing
a fresh install is I have everything working great, and to be honest, I
dont remember all the add-ons I installed to get it that way.

Do you think I should just go start over and do the fresh install?

My laptop is an IBM T40, 1.4ghz, 2 gig ram, with a 60 gig hard drive.
my new drive is 120 gig.

Thanks in advance

Vanessa
 
Old 02-04-2009, 12:16 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
I do this all the time first you need grub installed on your machine mbr. so last night I moved one system to another now a big thing I do is I never have a separate partition for home but it is ok if you do. just create a partition and point your fstab to it. so I booted up my pupplyinux in to ram and copied all the files from the sdb1 to sda2 then it took a long time. now after that I opened the /etc/fstab file and changed
Quote:
/dev/sdb1 / ext3 defaults 1 1
to
Quote:
/dev/sda2 / ext3 defaults 1 1
and you have to do the same thing if you change your swap location.
Quote:
then I went to the /boot/grub/menu.1st and changed the the (hd1,0) to (hd0,1) and changed root=/dev/sda2.
here is the kicker you have windows running and if you where booting with grub it mapped your system to see the old place. so you may have to reinstall grub or remap. I do not have this problem because windows is gone for ever since 1998. but you may need to down load super grub in case it goes bad it will get you booted into your system so you can run grubconf.
Quote:
if you are going to use a usb drive encloser you will run into alot of work
but if you can boot from the drive then just copy the system over with a live system like puppy linux why not use windows it for works different f.a.t.'s why a live system and you will be unable to copy your /dev/folder over and other running programs.if booted in that system. now go back and boot your old ubuntu and run grub and tell it to put the files on that drive and to put the boot loader on that drives MBR.
Quote:
I assume you already used gparted to format your new drive and set it to bootable right ... Right.
in the old days we would create a partion the same size .
Quote:
dd if=/dev/sdXX of=/dev/sdXX new one.
this made a mirror image of your drive. and if you had three partition on your those went along. This is a very powerful tool and not for the newbi

Last edited by Drakeo; 02-04-2009 at 12:45 PM.
 
Old 02-04-2009, 09:34 PM   #3
vansch76
Member
 
Registered: Aug 2007
Location: Asheville, NC, USA
Distribution: Mint 17 Rebecca
Posts: 145

Original Poster
Rep: Reputation: 18
Thanks Drakeo

Ill try it this weekend. I think your last statement is where Im at though.

"This is a very powerful tool and not for the newbi"

the whole process sounds like it is over my head for now, but I will try it.

I was hoping for a one or two clicks kind of thing in a software package.

Thanks again for the quick and detailed response.

Vanessa
 
Old 02-05-2009, 02:11 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You could also grab something like the clonezilla live CD, and clone the partitions from one drive to the other..
http://clonezilla.org/
http://www.linux.com/feature/115208
 
Old 02-06-2009, 10:06 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
hey farslayer is clonzeilla doinng mirror image or is it doing copy over why running in ram. as you know mirror images do that to the other hard drive any way you deserve a thanks. Because I want to go play with clonezilla to see what it is doing. ccoool
 
Old 02-06-2009, 10:58 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Clonezilla has multiple modes it can run in.. worst case scenario is that it falls back to dd. Better case scenario is that it copies just the data from the partition to an image. then you can write that data back to a partition that is a different size. copying jsut the data is obviously faster than copying an entire partition including the slack space with dd..

I recently had to clone a Dell Laptop due to a failing hard drive and was able to clone both the utility partition and the Windows NTFS partition to images on an external USB HD, then restore the images to the new Hard drive after it was replaced.. all using the clonezilla Live CD. Took a few tries to figure out the proper options, but it worked very well.

think of clonezilla as being similar to ghost.


another option is G4L ghost for linux
http://bhavesh.freeshell.org/cloninghd.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Moving hard drive with install intact Q.. Linux - Software 3 09-28-2008 10:40 PM
Preparing for Linux Install Question: Saving current Hard Drive State daedalus1618 Linux - General 2 08-06-2008 01:41 PM
Bigger Hard Drive - Clone? Snump Mandriva 14 11-21-2006 08:37 AM
Moving Hard Drive After Install PiscisBos Linux - Software 2 02-14-2005 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration