Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Sep 2014, 04:13
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Clone a USB stick
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
penguinman007
Guest


PostPosted: 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: 15117
Location: Paradox Realm

PostPosted: 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
View user's profile Send private message Visit poster's website 
schondie

Joined: 05 Sep 2011
Posts: 4

PostPosted: 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
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: 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
View user's profile Send private message 
fresnofred

Joined: 04 Mar 2009
Posts: 15

PostPosted: Fri 30 Sep 2011, 22:28    Post subject: Using Pudd
Subject description: 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
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9113
Location: Stratford, Ontario

PostPosted: Fri 30 Sep 2011, 22:52    Post subject: Re: Using Pudd
Subject description: 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
View user's profile Send private message 
lmart

Joined: 25 Mar 2009
Posts: 90

PostPosted: Wed 05 Oct 2011, 12:42    Post subject:  

rcrsn51

how exactly would you do that?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9113
Location: Stratford, Ontario

PostPosted: 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
View user's profile Send private message 
lmart

Joined: 25 Mar 2009
Posts: 90

PostPosted: Wed 05 Oct 2011, 13:14    Post subject:  

will try
thanks for such a quick reply!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0635s ][ Queries: 11 (0.0073s) ][ GZIP on ]