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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2005, 04:22 PM   #1
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
disk image using dd


I currently have a Compaq Armada e500 laptop running at 800mhz. I plan on buying a new laptop in the near future. I am extremely happy with my debian instalation including all my settings, files, installed programs, etc.. When i get the new laptop, i want to copy the exact disk image over from the old laptop to the new one, bit for bit (an exact replica) and start from there. This is what I am thinking...

dd if=/dev/hda2 of=~/mnt/MIKE/S/diskimage.iso

that command would make an image of my current working partition to another computer on my network...then when i get the new laptop, i would boot up a live linux cd and run:

dd if=~/mnt/MIKE/S/diskimage.iso of=/dev/hda2

(assumming the partitions are set up in advance and hda1 is the swap partition...)

Does anyone see any major problems with this?
Does anyone have any other suggestions?

I really just want some input about this. Thanks a lot.

~fatrandy13
 
Old 11-15-2005, 04:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
as long as the partitions are identical that should be fine. note that as the entire file is a filesystem, the size of the resultant filesystem will be exactly the same size. it will not grow to fill a larger partition, but in reality you could then use resize2fs to enlarge it again afterwards, asssuming it's an ext2 / ext3 filesystem. don't forget the MBR too...

one point... it's not as iso file, as it doesn't contain an iso9660 standard file system... better off just calling it a .img or nothing at all.. how's that for picky?!
 
Old 11-15-2005, 04:39 PM   #3
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Original Poster
Rep: Reputation: 30
ok thanks for the input, i realize some amount of work will have to go into this after the image is made... i'll take note of resize2fs.
thanks
 
  


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
hard disk image nived Linux - Software 3 12-08-2004 09:05 AM
Disk Driver Image linuxboy69 Linux - General 3 11-07-2003 02:43 PM
Disk Image sgc Linux - Newbie 10 10-10-2003 08:33 AM
Disk image to CD unixgeek Linux - Software 3 09-25-2003 01:22 PM
Disk image to CD unixgeek Linux - Software 1 09-16-2003 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 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