Thursday, May 2, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 6499  / 2 Years ago, sat, april 30, 2022, 12:18:56

I have a usb stick with two partitions FAT 32 adn ext3. First one is used to boot from using SystemRescueCD. Second one contains the image I use with image recovery tool.
I have to copy such an usb 10 times so I thouhgt maybe there is an easy way to do this,
something like cp /dev/sdb ?


More From » partitioning

 Answers
0

you can clone it with dd.



assuming your flash drive is /dev/sbd and you are cloning it to a second flash drive, /dev/sdc



sudo dd if=/dev/sdb of=/dev/sdc bs=4096 conv=notrunc,noerror


You can save a compressed image to your harddrive



sudo dd if=/dev/sdb ibs=4096 conv=noerror | gzip > your_image.gz


Then use the image to make a new flash



dd if=your_image.gz | gunzip | dd of=/dev/sdc

[#41385] Monday, May 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amacal

Total Points: 457
Total Questions: 102
Total Answers: 116

Location: Thailand
Member since Thu, Apr 22, 2021
3 Years ago
;