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 08-28-2013, 09:31 PM   #1
ctikfesi
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
How to clone bootable usb flash drive


Hello
 
Old 08-28-2013, 09:32 PM   #2
ctikfesi
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Clone bootable USB flash drive

How does one go about cloning a USB flash drive in Linux?
 
Old 08-28-2013, 09:42 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,697

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
I'd suggest clonezilla.

Boot to clonezilla cd and BE SURE to pick what you want to clone.


It may be possible to clone via dd.

Many other ways also.
 
Old 08-29-2013, 09:20 AM   #4
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
Quote:
Originally Posted by jefro View Post
It may be possible to clone via dd.
That's the way I'd choose. Either straight from one UBS to the other or dd'ing one to a img file first and writing it back to the same/other USB later (provided source and dest have same size).
 
Old 08-29-2013, 02:47 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,697

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
I agree that dd to identical drives may be a very good way. Kind of a dangerous task when backing up anything. dd is a very unforgiving command as well as most backup or clone tools. There is no substitute to being careful with any app or command on this task.
 
Old 10-23-2013, 11:00 PM   #6
AN28
Member
 
Registered: Apr 2013
Posts: 93

Rep: Reputation: 0
Hi Guys,

I am trying to make an LFS system I created, bootable from a USB. I created the system on a Virtual Machine and currently have a vdi file of it. I also have a Linux Live Key (using LiLi and Clonezilla.

I would like to know how I can use my system to run when the USB is inserted.

Also I have a small doubt with regard to the steps in creating the Linux live key. Step 3 is fixed to the LIVE mode. i cannot choose persistence. Any idea how I could make it persistent?
 
Old 10-24-2013, 05:50 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,697

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
I normally use a VM to create a clone. What you'd do is to attach the usb and then boot to a live cd/dvd iso image of some tool that allows you to clone the virtual hard drive to the attached usb.

Depending on what you built may be easy to almost impossible.
 
Old 10-24-2013, 07:32 PM   #8
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I agree that dd to identical drives may be a very good way. Kind of a dangerous task when backing up anything. dd is a very unforgiving command as well as most backup or clone tools. There is no substitute to being careful with any app or command on this task.
The advice I recommend to anyone running dd on a system which uses sudo is to type the command and after checking it go back and put sudo in front of it.
Personally I love this command and shun using any specialty program where the functionality is available in dd. However as always , "with great power, comes great responsibility." dd can do nearly anything, including destroy your system.
 
  


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] Bootable USB flash drive muhamed.ahmovic Linux - Newbie 2 10-17-2012 01:07 AM
Bootable USB Flash Drive saurabhchokshi Linux - Newbie 1 07-15-2009 07:42 PM
Can't make bootable USB flash drive sheine Linux - Software 12 04-30-2009 03:32 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 04:56 PM
Clone Linux Bootable USB Flash Drive hpnoobs Linux - Newbie 3 09-17-2008 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:13 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