LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-28-2008, 06:19 AM   #1
maxsanders
Member
 
Registered: Jan 2006
Location: Southeast US
Distribution: Kubuntu Edubuntu Suse10.2
Posts: 53

Rep: Reputation: 15
How do I image a usb flash drive?


I purchased a USB flash drive with Kubuntu 8.04 , and it boots great.

Since there are no copyrights applicable (I assume), I would like to replicate an image of this flash drive.

In short, I hope to copy this bootable flash drive. Almost certainly the duplicated flash drive must be an image of the first assuming that the system goes to a particular place to get the initial boot info.

How is the data organized on the flash drive and how do I image it?



Thanks!
 
Old 06-28-2008, 08:22 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You are correct that you can copy and give away as many copies of Kubuntu as you like.

I like to use the partimage utility to make an image of a disk partition. Partimage automatically includes the master boot record in its archive file. Also, partimage does not copy the empty space on the partition so the archive file only contains data.
 
Old 06-28-2008, 01:11 PM   #3
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
Quote:
Originally Posted by maxsanders View Post
I purchased a USB flash drive with Kubuntu 8.04 , and it boots great.

Since there are no copyrights applicable (I assume), I would like to replicate an image of this flash drive.

In short, I hope to copy this bootable flash drive. Almost certainly the duplicated flash drive must be an image of the first assuming that the system goes to a particular place to get the initial boot info.

How is the data organized on the flash drive and how do I image it?



Thanks!
Easy way to create a mirror on another flash drive of IDENTICAL size is by using dd. You can either first dd to your hard drive, making an image file, or do it directly.
This is the way I would have done it:
dd if=/dev/uba of=/dev/ubb
Where "if" means input file and "of" means output file. This takes care of the boot record as well because the above copies every byte on the the drive.
I believe this will work with going from smaller drive to bigger, but to go from bigger to smaller you will need to first reduce the size of partition on the source drive to be same or smaller than the target drive.
Good luck.
 
  


Reply



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
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
Create Smaller USB Flash Drive Image? Githlar Linux - Software 3 09-25-2007 12:07 PM
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2 bluecog6 Linux - General 6 01-29-2007 03:18 PM
USB Flash drive and the Fedora Boot image... Galaxy_Stranger Fedora 1 11-30-2005 04:28 PM
Creating/restoring drive image on USB drive OneSeventeen Linux - Newbie 9 07-06-2005 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration