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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-22-2009, 01:55 PM
|
#1
|
Member
Registered: Jan 2009
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 145
Rep:
|
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?
|
|
|
01-22-2009, 02:01 PM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
I Googled using ".img file" and concluded there is a solution. No time at the moment to figure it out.
archiving? How about TAR?
|
|
|
01-22-2009, 02:39 PM
|
#3
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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 =/.
|
|
|
01-22-2009, 03:50 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,602
|
Quote:
Originally Posted by devinmcelheran
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....
|
|
|
01-22-2009, 08:32 PM
|
#5
|
Member
Registered: Jan 2009
Posts: 100
Rep:
|
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.
|
|
|
01-22-2009, 08:32 PM
|
#6
|
Member
Registered: Jan 2009
Posts: 100
Rep:
|
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 11:14 AM.
|
|
|
01-23-2009, 12:13 AM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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).
|
|
|
01-23-2009, 01:20 AM
|
#8
|
LQ Newbie
Registered: Dec 2005
Posts: 6
Rep:
|
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.
|
|
|
01-23-2009, 12:40 PM
|
#9
|
Member
Registered: Jan 2009
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 145
Original Poster
Rep:
|
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.
|
|
|
01-23-2009, 02:08 PM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,602
|
Quote:
Originally Posted by devinmcelheran
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.
|
|
|
01-23-2009, 03:06 PM
|
#11
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
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 .
|
|
|
01-24-2009, 08:56 AM
|
#12
|
Member
Registered: Jan 2009
Posts: 29
Rep:
|
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 03:02 AM.
|
|
|
All times are GMT -5. The time now is 04:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|