LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2005, 07:08 AM   #1
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
moving to larger HD


My question is "Should this work."

Current Setup: (40GB laptop)

hda1 /boot
hda2 /
hda3 windows
hda4 swap

I've got a tar of my linux system, which I can apply to my new hard drive, now If I mount /dev/hda3 and do a   dd   if=/dev/hda3   of=/home/win.img   should I be able to do the reverse to apply that image to a new drive once I've replaced my 40GB with my new 80GB?
 
Old 10-17-2005, 08:04 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Sounds reasonable, but I never tried it on a windows partition. I guess the source and target partitions need to be exactly the same size. Is that possible? Can you put in both disks and dd directly? It seems a harmless thing to try, as it does not affect your original version.

Maybe wait for more expert opinion
 
Old 10-17-2005, 12:37 PM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Original Poster
Rep: Reputation: 46
I think the theory behind it is solid, I'm just not sure if it works in the "real world". I'm sure a few more people will lend their experiences.
 
Old 10-17-2005, 01:44 PM   #4
free_ouyo
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Ubuntu
Posts: 133

Rep: Reputation: 15
moving to larger HD

Hello,

My opinion is that it must work but you may have to copy the MBR of the drive.
I should try to make a full DD of the original drive and restore it on the new one after. The use of a external HD will ease the procedure. After the restore, create new partitions or resize the existings partitions.

When creating the dd image, you can win some disk space if you gzip the image.
--
free_ouyo
 
Old 10-17-2005, 03:56 PM   #5
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
You probably don't want to have /dev/hda3 mounted when you do this for the same reason that fsck doesn't like checking mounted partitions. The data on the hard drive might change, leading to a bad image. If you have to, mounting it read-only is safe.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving the system to a larger HDD LinuxSeeker Linux - General 4 07-26-2005 02:31 PM
Files larger than 4 GB Hamsjael Linux - Software 1 03-09-2005 01:51 PM
copying/moving stalls when moving a lot of data to a usb stick =X¥®µ§= Linux - Hardware 10 07-30-2004 05:29 AM
Larger HD ITTOscar Linux - Hardware 1 03-08-2004 12:31 PM
dvd larger 4,5 gb Dask Linux - Software 0 08-22-2003 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:54 PM.

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