LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2012, 07:04 AM   #1
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 112

Rep: Reputation: 2
Is there a smarter way of cloning a USB stick other than dd?


I've used dd to successfully clone USB sticks, but when the written data is a small percentage of the device's capacity, I was wondering if there's a smarter way of doing it.

What I'm talking about is scenarios when the stick has several partitions, that together stretch to fill 25% of the available capacity. The dd utility works well, but takes a long time to write a previously created image. Of course, I could create the partitions manually, and then use dd to clone each partition, one at a time, but that would be too cumbersome.

Do you guys know a simpler method?
 
Old 10-08-2012, 07:36 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Take a look at partimage (it should be available for installation in most linux systems). As stated in the official page:
Quote:
Partimage will only copy data from the used portions of the partition... For speed and efficiency, free blocks are not written to the image file.
Maybe this is what you're looking for.
 
Old 10-08-2012, 07:53 AM   #3
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 2
I see partimage does so on a partition level. My case has several partitions. I could use it just as dd, but would have to do so multiple times, once for each partition.
 
Old 10-08-2012, 09:59 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,030

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
You could try clonezilla which can do partitions and or drives.

http://clonezilla.org/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Rsync: Is it smarter to push, or smarter to pull? bubnoff Linux - Security 6 03-21-2013 02:19 AM
Cloning hdd, usb stick etc. Coolmax Linux - Newbie 10 07-14-2012 08:59 AM
Cloning USB stick question Packrat1947 Linux - Newbie 7 12-05-2009 06:11 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration