LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2009, 08:15 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 801

Rep: Reputation: 68
Question .img files and .iso files and bootable USB sticks...


Hi all,

Firstly, is an .img 'raw image' file the same as an .iso 'disk image' file? I mean, exactly the same format but for the different file extensions? Some googling I've done would seem to indicate so, but I've not found anything definitive and more often than not, the combination of "raw" and "image" entered into a search engine just throws up a lot of stuff about digital photography.

Secondly, in the belief that the two file types are identical, I've tried making a USB rescue stick by copying an .iso image file over to it using programs like All Image and Self Image, but the resulting stick isn't bootable and Linux just sees it as a CD rom device, placing a CD icon on the desktop. What am I doing wrong??

TIA,

CC.
 
Old 02-21-2009, 08:37 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,849

Rep: Reputation: Disabled
There is a very useful site that explains just about every known extension. Here it is pointing at the .img extension You can then type in .iso and you'll see the difference.
http://filext.com/file-extension/IMG
Google is your friend.
cheers
jdk
 
0 members found this post helpful.
Old 02-21-2009, 08:58 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,061

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-21-2009, 02:21 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You cannot take a dvd.iso and just burn it to a usb stick and expect it to work. Just like you cannot put the DVD.iso on a HD or FD and just boot to it. Each type of media has a different area that they look at for boot information. If you look on the wiki of most distros they now have instructions on how to make a bootable usb/flash stick.
 
Old 02-21-2009, 03:30 PM   #5
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 801

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by lazlow View Post
You cannot take a dvd.iso and just burn it to a usb stick and expect it to work. Just like you cannot put the DVD.iso on a HD or FD and just boot to it. Each type of media has a different area that they look at for boot information. If you look on the wiki of most distros they now have instructions on how to make a bootable usb/flash stick.
That's exactly the info I was hoping for and expecting to make sense out of this, thanks!
CC.
 
Old 02-21-2009, 03:37 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
you would need 'syslinux' to do this, depending on your distribution you are using to create your bootable thumbdrive it might already be installed

a good start would be to take a knopix iso
mount it with mount -o loop knoppix.iso /mnt/knoppix (first create the directory /mnt/knoppix)
then mount your thumbdrive to say /mnt/thumbdrive

copy the contents of the knoppix iso to the thumbdrive (cp -rv /mnt/knoppix /mnt/thumbdrive)
rename the isolinux.cfg file to syslinux.iso
unmount the thumberive

as root (using su or sudo) run syslinux /dev/sda (where /dev/sda is the device node for your thumbdrive
also make sure to fdisk (again as root) your thumbdrive and set the partition to bootable
reboot your computer and make sure you tell it to boot from the thumbdrive and see if it works

Last edited by frieza; 02-21-2009 at 03:39 PM.
 
Old 02-21-2009, 03:39 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
A .img file could be simply be an image of a partition. (short for image)
One way to find out is using the file command.

file sample.img

This will tell you if it detects an iso9660 filesystem (cd and datadvd); a UDF filesystem image (Video DVDs); or a bootable filesystem.

You can't rely on what the extension is. The file may have been misnamed or the extension may have a number of uses.
 
Old 02-21-2009, 03:51 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 13,279

Rep: Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775
Quote:
You can't rely on what the extension is. The file may have been misnamed or the extension may have a number of uses.
good advice , in my case a *.img( or .imq) is normally a photo from a spacecraft on The Planetary Data 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
how to convert .img to .iso files Rory in Toronto Linux - Software 9 11-03-2013 09:54 AM
Differences between files .img and .iso ? bcostacurta Linux - Newbie 4 12-12-2008 10:18 AM
i edited the fedora9.iso files... how do i create bootable iso now? Yaniv-Fer Linux - General 3 11-04-2008 03:52 AM
How do you convert ISO to img to access RPM files MandrivaUser Linux - General 6 10-18-2006 06:06 PM
IMG and ISO files morneo Linux - Newbie 4 03-26-2005 04:38 AM


All times are GMT -5. The time now is 02:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration