Ask Your Question
0

Copy filesystem from HDD to HDD

asked 2015-06-29 04:48:38 -0500

mh419763 gravatar image

I'm considering buying a new notebook, and I was wondering if there is a way to copy my present OS from my old HDD to a new partition on the new HDD.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-06-29 11:31:31 -0500

aeperezt gravatar image

You can use dd

To clone a partition:

dd if=/dev/sda1 of=/dev/sdb1 bs=512 conv=noerror,sync

To clone entire disk

dd if=/dev/sdX of=/dev/sdY bs=512 conv=noerror,sync

This link has more information about how to clone a disk it is pretty complete and well documented

\https://wiki.archlinux.org/index.php/Disk_cloning

edit flag offensive delete link more

Comments

Thank you. I'll check it out.

mh419763 gravatar imagemh419763 ( 2015-06-29 13:08:17 -0500 )edit

Would it be possible for him to speed up the transfer by changing the bs parameter to bs=2M?

NuuN gravatar imageNuuN ( 2015-06-29 15:01:48 -0500 )edit

Yes it will be possible but it works better if you know the read and write speed of your drives that way you can set up bs accordantly

aeperezt gravatar imageaeperezt ( 2015-06-29 15:12:06 -0500 )edit

If he is using LVM2, dd may be a problem though. Better to use the lvm2 tools in that case.

NuuN gravatar imageNuuN ( 2015-06-29 15:56:47 -0500 )edit
0

answered 2015-07-01 04:59:07 -0500

mh419763 gravatar image

Hey, I didn't know I could do that. Will definitely read about it now. Thanks!

edit flag offensive delete link more
0

answered 2015-07-01 00:20:16 -0500

geforce gravatar image

You could use gparted to copy and paste the partitions to the new harddrive.

http://gparted.org/display-doc.php?na...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-29 04:48:38 -0500

Seen: 757 times

Last updated: Jul 01 '15