LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Convert bootable USB .img file to bootable CD .iso file (http://www.linuxquestions.org/questions/linux-software-2/convert-bootable-usb-img-file-to-bootable-cd-iso-file-4175445072/)

Chris.Bristol 01-10-2013 09:45 PM

Convert bootable USB .img file to bootable CD .iso file
 
I would like to try ChromiumOS on my old laptop. Hexxah doesn't offer a CD image, only a USB one. USB sticks don't boot on this old thing and there is no reference to them in the BIOS setup. It's probably too old for there to be a newer version of the firmware that includes it, and even if there was it's too tricky to mess with just to try out an OS.

The answer would seem to be to convert the .img file to a .iso file, but I don't think this is as simple as it first appears. Is it possible? I wonder whether there is a method which wouldn't work for all USB formats to all CD formats but would work in the specific case of bootable images.

rosehosting.com 01-10-2013 10:37 PM

ccd2iso should do the job.

Code:

sudo aptitude install ccd2iso
ccd2iso file.img file.iso


Quote:

Originally Posted by Chris.Bristol (Post 4867476)
I would like to try ChromiumOS on my old laptop. Hexxah doesn't offer a CD image, only a USB one. USB sticks don't boot on this old thing and there is no reference to them in the BIOS setup. It's probably too old for there to be a newer version of the firmware that includes it, and even if there was it's too tricky to mess with just to try out an OS.

The answer would seem to be to convert the .img file to a .iso file, but I don't think this is as simple as it first appears. Is it possible? I wonder whether there is a method which wouldn't work for all USB formats to all CD formats but would work in the specific case of bootable images.


Chris.Bristol 01-11-2013 01:29 AM

Quote:

Originally Posted by rosehosting.com (Post 4867502)
ccd2iso should do the job]

I have tried this but it wouldn't read the file. I have read some info on it and it seems to be intended for a particular sort of CD file not a USB img.

yancek 01-11-2013 09:04 AM

You could try loop mounting the chromium img file and then using the mkisofs or genisoimage commands.
In a terminal as root create a mount point: mkdir /mnt/chromium
Then loop mount: mount -o loop chromium.img /mnt/chromium
You would then run the mkisofs or genisoimage commands with options from your installed Linux system in a terminal in the /mnt directory.
I'm not familiar with Chromium so I don't know the bootloader it uses, isolinux?
The mkisofs commands will vary with bootloader and there are a large number of sites explaining this, probably posts here at LQ if you use the search function.

If you have questions, post back.

TobiSGD 01-11-2013 09:25 AM

ccd2iso is for converting CloneCD images to ISO images, not USB images.
I would try to boot from USB using the Plop bootloader: http://www.plop.at/en/bootmanagers.html

Chris.Bristol 01-11-2013 10:00 AM

Quote:

Originally Posted by yancek (Post 4867774)
You could try loop mounting the chromium img file...

Thanks but this sounds way beyond my Linux knowledge and too much to learn for the purpose.
Quote:

Originally Posted by TobiSGD (Post 4867794)
Plop bootloader...

Thanks, this sounds worth a try, will have to get a larger USB memory stick.

jefro 01-11-2013 09:47 PM

If you have access to a newer system might try qemu with that image as hda.

The command qemu filename.img should work to boot to a vm.

Chris.Bristol 01-12-2013 01:00 PM

Quote:

Originally Posted by jefro (Post 4868156)
qemu

This sounds useful whether or not it will run on that machine, thanks.


All times are GMT -5. The time now is 10:12 AM.