| Author |
Message |
penguinman007
Guest
|
Posted: Wed 20 Jul 2005, 02:16 Post_subject:
How to Clone a USB stick |
|
Hi If you've set up your USB puppy install on a usb stick,
and you'd like to make a copy:
1. boot up on the usb stick first.
2. plug in the new usb stick
3 open a terminal and type | Code: | | dd if=/dev/sda of=/dev/sdb |
This will copy the raw contents of usb1 (sda) to usb2 (sdb).
I've succesfully cloned an imation 256M stick to a ASTONE 1G stick.
This is a raw data copy, meaning that partition information and everything is copied, so I guess the 1G stick now thinks it is a 256Meg partition.
If you'd like to create an 'ghost image' on the network somewhere and then use this to clone to multiple usb sticks:
1. Connect to the network via samba lin neigbourwood.
2. mount the network drive
3. open a terminal and use
| Code: | | dd if=/sda of=/root/mnt/network_location_mount/image_file_name |
Then you can plug in usb sticks to and image them with the reverse process: | Code: | | dd if=/root/mnt/network_location/image_file_name of=/dev/sdb |
make sure that you copy to 'sdb' (the second usb stick)
Penguinman007
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Wed 20 Jul 2005, 02:25 Post_subject:
|
|
Very interesting (Mr Bond)
So now you have two of the devices to save the world . . .
Can we have a volunteer to put this on the wiki?
(Let us know when it is done)
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
schondie
Joined: 05 Sep 2011 Posts: 4
|
Posted: Sat 24 Sep 2011, 08:00 Post_subject:
|
|
I know it's an old post but if others are looking to do this, it works perfectly.
First I tried copying the contents of one USB to another - fail, as both the Kingston USBs were 2GB but had slightly different capacities. Once I used this method it worked like a charm.
Thanks for these tutorials.
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 841
|
Posted: Sun 25 Sep 2011, 20:17 Post_subject:
|
|
You should be able to avoid the unequal sized drives problem by controlling the "bs=xxx" and "count=xxx" parameters.
If the target is less than the source, then make the "bs X count" total slightly smaller. Of course if the source drive is completely full, the data will be truncated.
Cheers,
s
|
|
Back to top
|
|
 |
fresnofred
Joined: 04 Mar 2009 Posts: 13
|
Posted: Fri 30 Sep 2011, 22:28 Post_subject:
Using Pudd Sub_title: Clone USB stick |
|
I use PUDD, part of almost all puplets. But u have to have the same size usb sticks. U can copy a smaller one (say a 4gb drive that shows in gparted as a 3.81 gb stick to a 4 gb that is, say 3.85, but not the other way around (larger to smaller). What I do is buy 2 or more of the exact same sticks and then delete what is on them and then partion and format them to win32 in
Gparted and mark the boot flag to make them bootable and then install a remastered Puppy, or just a puppy, on the first. Then boot to a live cd and use PUDD to copy sdb to sdc, or whatever shows up when u first plug in the usb with puppy on it and then the next usb with nothing on it. Works quite well. Probably could clone 3.85 to 3.81 but this is beyond me. Just go to Staples when usbs are OVERPRICED and buy 2 or 3 or 4 or ?? of the same exact kind.
PS: takes a long time to do this. just walk away and come back 30-40 mins later when it says "complete"- even with 4 gb thumb drives it is rather slow.
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7833 Location: Stratford, Ontario
|
Posted: Fri 30 Sep 2011, 22:52 Post_subject:
Re: Using Pudd Sub_title: Clone USB stick |
|
| fresnofred wrote: | | it takes a long time to do this. just walk away and come back 30-40 mins later when it says "complete"- even with 4 gb thumb drives it is rather slow. |
It would be much faster to just install the syslinux bootloader on the new drive and manually copy everything from one drive to the other.
|
|
Back to top
|
|
 |
lmart
Joined: 25 Mar 2009 Posts: 90
|
Posted: Wed 05 Oct 2011, 12:42 Post_subject:
|
|
rcrsn51
how exactly would you do that?
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7833 Location: Stratford, Ontario
|
Posted: Wed 05 Oct 2011, 13:09 Post_subject:
|
|
| Code: | syslinux /dev/sdb1
dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb |
The first command installs the syslinux bootloader.
The second command installs the standard DOS boot code in the MBR. It may not be needed.
Check using Gparted that the boot flag is set.
Drag all the files from the source to the destination.
|
|
Back to top
|
|
 |
lmart
Joined: 25 Mar 2009 Posts: 90
|
Posted: Wed 05 Oct 2011, 13:14 Post_subject:
|
|
will try
thanks for such a quick reply!
|
|
Back to top
|
|
 |
|