Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto replication #76

Open
boyska opened this issue Sep 23, 2013 · 5 comments
Open

Auto replication #76

boyska opened this issue Sep 23, 2013 · 5 comments

Comments

@boyska
Copy link
Member

boyska commented Sep 23, 2013

From a freepto, it should be easy to create another one.

@boyska
Copy link
Member Author

boyska commented Nov 2, 2013

It should be enough to make something similar to

(dd if=$src bs=1 count=1048576; dd if=${src}1) > $dest

where $src is the source device, $dest is the destination one and 1048576 is just 2048*512

2048 is the typical start sector of the first partition; 512 is the typical sector size. This can be read by fdisk -l.

@boyska boyska removed the wip label Feb 9, 2014
@boyska
Copy link
Member Author

boyska commented Feb 9, 2014

also

parted /dev/sdX unit b print | awk '{ print $3 }' | grep -A1 End | tail -n1

will get the number of bytes to copy from /dev/sdX . It will probably be cleaner using python-parted

@ghost ghost modified the milestones: 1.1, v1.0 Apr 26, 2014
@ghost
Copy link

ghost commented Apr 26, 2014

moved to v1.1

@ghost
Copy link

ghost commented Feb 25, 2015

Who is working on it?

@boyska
Copy link
Member Author

boyska commented Feb 27, 2015

@paskao has something to show about it. yay!

@ghost ghost modified the milestone: v1.1 Jul 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant