LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to resize (or create a blank) .img file (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-resize-or-create-a-blank-img-file-879719/)

garr133351 05-09-2011 04:33 PM

How to resize (or create a blank) .img file
 
Hi. I need to know to to make a smaller .img file. I want to put ubuntu on my android phone (androlinux.com), but the ubuntu.zip file was to big to fit on my sd card. The .img file is too large, so I want to make a slightly smaller .img file to fit on the sd card. Thanks for the help!

xzcallaway 05-09-2011 07:15 PM

It is easiest on Ubuntu to work with iso files. You can convert the .img file to an .iso file and then extract it from the iso file or work with it however you want. To do this you need to install the ccd2iso program by opening the terminal and enter the following command:

sudo apt-get install ccd2iso

Next type sudo ccd2iso and the source path of the img file and the destination path you want to save the iso to. An example is as follows.

sudo ccd2iso /home/zach/test.img /home/zach/test.iso

garr133351 05-10-2011 09:43 AM

Thanks that worked!


All times are GMT -5. The time now is 04:53 PM.