Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: anything debian based, long live apt-get
Posts: 230
Rep:
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.
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?!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.