Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Duplicate Copy of a USB Pendrive?, Simple how to?< Next Oldest | Next Newest >
Iang Offline





Group: Members
Posts: 31
Joined: Nov. 2005
Posted: April 26 2006,11:01 QUOTE

Is there an easy way within Linux / DSL to make an exact duplicate copy of my pendrive?

I use a USB-ZIP install & would like to duplicate my pendrive on to a second device so I can experiment with settings, mydsl etc. but if I make a complete pig's ear of things (very easily done given my experience level), I can easily wipe the whole thing clean & go back to my known starting point on the other drive.

Need to duplicate both partitions, sda1 and sda2 as it's the USB-ZIP install.

Seems like it should be dead easy, but how?!
TIA.
Back to top
Profile PM 
pr0f3550r Offline





Group: Members
Posts: 378
Joined: Dec. 2005
Posted: April 26 2006,12:29 QUOTE

I'd start with dd,
something like dd if=/dev/xxx of=/dev/yyy


--------------
THE QEMU FORUM: http://qemu.dad-answers.com/index.php

QEMU ON WINDOWS: http://www.h7.dion.ne.jp/~qemu-win/

How to use floppy, CD-ROM and hard disk - http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html

How to use network - http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html
Back to top
Profile PM 
Iang Offline





Group: Members
Posts: 31
Joined: Nov. 2005
Posted: April 27 2006,09:43 QUOTE

Yes, that works. Thanks - just the trick I was looking for.

In case anyone else is interested, this is what I did:

Boot up from the pendrive (mine is a USB-ZIP install)

Plug in the second USB pendrive (already partitioned as required)

Mount all the drives (I don't know if this is required, but I did it anyway & it works)

Open root shell:

dd if=/dev/sda1 of=/dev/sdb1

takes a few minutes, then

dd if=/dev/sda2 of=/dev/sdb2

takes a few more minutes, then job done.

The USB-ZIP install uses 2 partitions, hence the need to copy sda1 to sdb1 and sda2 to sdb2. With a USB-HDD install, only the first command would be needed.

The result: an exact duplicate of the first pendrive, with all settings, configurations, myDSL applications etc.

Only one gotcha - make sure the second drive is at least as big as the first!
Back to top
Profile PM 
2 replies since April 26 2006,11:01 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Duplicate Copy of a USB Pendrive?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code