LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2009, 02:55 PM   #1
devinmcelheran
Member
 
Registered: Jan 2009
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 145

Rep: Reputation: 16
Burning a .img file


I need a program to burn a .img file, I have k3b, and it won't accept it, neither will Brasero. I'm running Sabayon 4.0 r1 Gnome. All suggestions are appreciated. Thanks.

Also, what's your favorite archiving tool?
 
Old 01-22-2009, 03:01 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I Googled using ".img file" and concluded there is a solution. No time at the moment to figure it out.

archiving? How about TAR?
 
Old 01-22-2009, 03:39 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Well the only way I do things like that since I deal mainly with CLI and rarely with actually burning CDs within linux... would be...

dd of=/dev/cdrom if={image file location}

but not certain if dd would actually work that way or if any options might be needed. It's the only suggestion I got I am afraid =/.
 
Old 01-22-2009, 04:50 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,453

Rep: Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930
Quote:
Originally Posted by devinmcelheran View Post
I need a program to burn a .img file, I have k3b, and it won't accept it, neither will Brasero. I'm running Sabayon 4.0 r1 Gnome. All suggestions are appreciated. Thanks.

Also, what's your favorite archiving tool?
What is a .img file??? How do you create it? Normally, CD/DVD images are .ISO's....
 
Old 01-22-2009, 09:32 PM   #5
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
Try mounting the image file as root:
# mount -t iso9660 -o loop ./my.img /mnt
If you know it is not an ISO file, then replace the file type (iso9660) with some valid param.
If its mounted, have a look at /mnt (or wherever it was mounted) and see if it's valid.
From that point on you can use k3b for burning by writing out the contents of /mnt (or wherever it was mounted) to a disk.
 
Old 01-22-2009, 09:32 PM   #6
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
Try mounting the image file as root:
# mount -t iso9660 -o loop ./my.img /mnt
If you know it is not an ISO file, then replace the file type (iso9660) with some valid param.
If its mounted, have a look at /mnt (or wherever it was mounted) and see if it's valid.
From that point on you can use k3b for burning by writing out the contents of /mnt (or wherever it was mounted) to a disk.

Debian

Last edited by servat78; 02-19-2009 at 12:14 PM.
 
Old 01-23-2009, 01:13 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
An .img extention as noted doesn't supply a lot of information on what the file is. You could use "file <filename.img>" to possibly learn what the file is. It probably stands for "image" but that could be a hard drive image, a euphemism for .iso or some proprietary format that is possibly compressed or excludes unused filesystem space (such as a norton ghost disk image).
 
Old 01-23-2009, 02:20 AM   #8
bhupc
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
mounting is a very good option. You can mount to the cdrom device in case an application expects it here. Usually cdrom device is /dev/hdc.

http://linuxreviews.org/howtos/cdrecording/

ISO CD images can be burned to CDs by using the program cdrecord. You can use it like this with a SCSI burner:

cdrecord -v speed=XX dev=0,Y,0 -data cd_image.iso

XX sets the speed, dev=0,Y,0 is the burners (SCSI) ID. Run cdrecord -scanbus to view your drive(s) and their ID(s)

For IDE CD burners (most likely what you got) you must use -dev ATAPI:/ and add the link to your device:

cdrecord -dev ATAPI:/dev/hdc -data cd_image.iso

It is also possible to use a numbered ID when using IDE/ATAPI: cdrecord dev=ATAPI:0,0,0 Run cdrecord dev=ATAPI -scanbus to find the valid IDs.
 
Old 01-23-2009, 01:40 PM   #9
devinmcelheran
Member
 
Registered: Jan 2009
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 16
I got it to work, I installed "udftools". "udf" stands for Universal Disk File, or Format, not sure, but it works through K3b now, I just have to take off the file filter and set it from .iso to "all files", and select the .img, and it deals with it without any problems. But a.img file is a disk image, I don't know if it's just rarely used or obsolete, but I got one. I think it might even be a floppy image. But it works easily, I just had to get udftools out of entropy. Thanks for all the help though, I really appreciate it.
 
Old 01-23-2009, 03:08 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,453

Rep: Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930
Quote:
Originally Posted by devinmcelheran View Post
I got it to work, I installed "udftools". "udf" stands for Universal Disk File, or Format, not sure, but it works through K3b now, I just have to take off the file filter and set it from .iso to "all files", and select the .img, and it deals with it without any problems. But a.img file is a disk image, I don't know if it's just rarely used or obsolete, but I got one. I think it might even be a floppy image. But it works easily, I just had to get udftools out of entropy. Thanks for all the help though, I really appreciate it.
No problem, and thanks for posting the solution.
 
Old 01-23-2009, 04:06 PM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
last time I made a boot cd, I used mkisofs...
Code:
# Make the iso image with boot.img and boot.cat files
mkisofs -r -b boot.img -c boot.cat -o bootcd.iso .
 
Old 01-24-2009, 09:56 AM   #12
renjithrajasekaran
Member
 
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
If there is a Linux Port for Nero - I think you could use that to burn your IMG file.


Linux Archive

Last edited by renjithrajasekaran; 01-25-2009 at 04:02 AM.
 
  


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
convert an ISO file into an IMG file chris6686 Linux - Newbie 6 12-04-2011 09:11 PM
extract .img file cccc Linux - General 3 06-02-2008 04:04 AM
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 01:09 AM
mounting a .img file... username-inuse Linux - Software 3 05-01-2005 03:46 PM
burning *.img files... kurrupt Linux - Software 1 09-05-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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