LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07:15 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Rep: Reputation: 70
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, 07:37 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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, 07:58 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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, 01:21 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

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, 02:30 PM   #5
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
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, 02: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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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 02:39 PM.
 
Old 02-21-2009, 02:39 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 02:51 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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



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 08:54 AM
Differences between files .img and .iso ? bcostacurta Linux - Newbie 4 12-12-2008 09:18 AM
i edited the fedora9.iso files... how do i create bootable iso now? Yaniv-Fer Linux - General 3 11-04-2008 02:52 AM
How do you convert ISO to img to access RPM files MandrivaUser Linux - General 6 10-18-2006 05:06 PM
IMG and ISO files morneo Linux - Newbie 4 03-26-2005 03:38 AM

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

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