LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2016, 03:24 PM   #1
ColJohnHannibalSmith
LQ Newbie
 
Registered: Mar 2011
Location: Harlingen, Texas
Distribution: Ubuntu 14.04.3 LTS Trusty Tahr x64
Posts: 25

Rep: Reputation: 8
Question Burn .MNG File To USB Stick


Hello,

I am experimenting with a TAILS-Like distro called Freepto and the download is in an .img format. I use UNetBootin all the time, to burn .iso's to USB Sticks; but it doesn't appear to offer an option to burn .img files. Also, I haven't been able to find any info about how to do this in Linux. I did however try to point to the .img file in UNetBootin and it accepted it; but listed the format as a Floppy Image. What am I not getting?

Any help appreciated.

Thanks, Hannibal
 
Old 01-24-2016, 03:59 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,320

Rep: Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008
The short answer is to use the dd command i.e.

dd if=file.img of=/dev/sdX (Replace sdX with your actual USB device ID)

The long answer...
An ISO file is an image file of a CD/DVD. The ISO comes from the CD filesystem type which is a shorten version of ISO9660. An ISO file can be bootable but the boot loader mechanism is not compatible with how a regular disk works. In a nutshell UNetbootin creates a bootable drive using syslinux with the selected ISO file. There are also ISO hybrid files that can be used to create either a bootable CD/DVD or flash drive. An image file can mean anything but typically an image of a disk or partition which can be created using the dd command. The disk image should already contain the boot loader code in the Master Boot Record so UNetbootin is not required.

Last edited by michaelk; 01-24-2016 at 04:00 PM.
 
Old 01-25-2016, 08:39 AM   #3
ColJohnHannibalSmith
LQ Newbie
 
Registered: Mar 2011
Location: Harlingen, Texas
Distribution: Ubuntu 14.04.3 LTS Trusty Tahr x64
Posts: 25

Original Poster
Rep: Reputation: 8
Thanks for the reply,

This piece of code "dd if=file.img of=/dev/sdX (Replace sdX with your actual USB device ID)" did copy the .img file to the USB-Stick; but did not make it bootable. Also, only the portion of the stick the same size as the .img file was allocated. The rest of the stick was left unallocated. I punted; and tried simply changing the file name to .iso; and then burning it to the stick with UNetBootin. Unexpectedly this worked.
 
Old 01-25-2016, 08:51 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,320

Rep: Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008
Good.

The documentation switches to Spanish so it was either me or them that messed up.
https://we.riseup.net/freepto-wiki/f...epto-usb-stick

Using dd copies byte for byte to the flash drive so it will appear the same size which is normal. UNetbootin requires the drive formatted as FAT32 and just copies the necessary files and therefore remains the actual size.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert iso file to burn to USB (don't even know how to mount) azeichne Linux - Newbie 8 05-03-2015 09:29 PM
I pay for windows7.iso burn to LINUX USB 8 GB STICK eurusd Linux - Software 1 01-26-2010 06:19 PM
Move file from a USB stick to an SD card otterbuff Linux - Newbie 1 05-15-2008 09:16 PM
cryptsetup with passphrase file on USB stick titopoquito Slackware 7 10-30-2007 06:37 AM
USB memory stick file system linmix Linux - Hardware 2 12-02-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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