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

Time to clone #10

Open
Mikem124 opened this issue Apr 3, 2021 · 15 comments
Open

Time to clone #10

Mikem124 opened this issue Apr 3, 2021 · 15 comments

Comments

@Mikem124
Copy link

Mikem124 commented Apr 3, 2021

Hi, I'm new to this forum.
This is a general question regarding cloning or copying raspberry pi SD cards with applies to imgclone as well, please can anyone tell me why it takes so long to create the .img file, e.g., over 4 hours so create a 12.7Gb from the 16Gb source SD card?
Thanks
Mike

@tom-2015
Copy link
Owner

tom-2015 commented Apr 4, 2021

Depends on the access speed of your SD card, destination card, Raspberry Pi version and maybe other programs running on the Pi.

@Mikem124
Copy link
Author

Mikem124 commented Apr 4, 2021 via email

@tom-2015
Copy link
Owner

tom-2015 commented Apr 4, 2021

It is not as simple as 64Gb/66.3Mb because after creating the .img file it runs a file copy command. This means all files will be copied individually, each file generates overhead because it needs to be created / space assigned in the new file system. If you have a lot of small files there will be more overhead than the actual copying takes. Some USB drives/SD cards are more optimized for copying large files like photos and movies. But I must admit 4h for a 16GB card is quite long.

If you want high speed, remove the card use something like dd or Win32Diskimager.

@Mikem124
Copy link
Author

Mikem124 commented Apr 4, 2021 via email

@tom-2015
Copy link
Owner

tom-2015 commented Apr 5, 2021

Never had any problems with Win32Diskimager when reading a card.
You could also try CloneDisk if you don't like the Win32Diskimager.

@Nikhchan
Copy link

Nikhchan commented Jul 1, 2021

I am sitting here at 4:43 AM Copying an 8gb sd card to a USB drive. Its been over 3:30 hours. Can II just stop it in the middle? just shutdown?

@tom-2015
Copy link
Owner

tom-2015 commented Jul 2, 2021

Yes you can stop and shutdown but the image will just not be complete.

@Nikhchan
Copy link

Nikhchan commented Jul 2, 2021

Yes you can stop and shutdown but the image will just not be complete.

Thanks I did that. May be it has to do with the non-discript Chinese sd card I got along with my Genesis flash cart.

@LahaLuhem
Copy link

Not the most elegant solution, but if you have a rough estimate of your current file-system size, you van keep running clear && df -h continuously. You'll see the 'Used space' change continuously for your plugged in device, and check that against the file-system size from before.

@tom-2015
Copy link
Owner

That's what the -p command line parameter does automatically to show copy progress.

@LahaLuhem
Copy link

That's what the -p command line parameter does automatically to show copy progress.

I tried running imgclone -dp <imagename>.img with a sudo vairant and separating the flags, but it didn't work for me that way
Is it that the flags are to be used separately (as in -p instead of -d)?

@tom-2015
Copy link
Owner

tom-2015 commented Aug 17, 2021

Yes, like imgclone -d -p <imagename>.img

@LahaLuhem
Copy link

LahaLuhem commented Aug 24, 2021

Yes, like imgclone -d -p <imagename>.img

I tried imgclone -d -p test.img (while in /media//<drive_name>), but I get a Invalid argument test.img error.

Should I make a new issue instead?

@tom-2015
Copy link
Owner

Sorry, maybe try to swap -d and -p parameter imgclone -p -d <imagename>.img

@LahaLuhem
Copy link

Sorry, maybe try to swap -d and -p parameter imgclone -p -d <imagename>.img

Yes, this was accepted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants