Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-09-2011, 04:33 PM   #1
LQ Newbie
Registered: May 2011
Distribution: ubuntu
Posts: 2

Rep: Reputation: 0
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 (, but the 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!
Old 05-09-2011, 07:15 PM   #2
Registered: Oct 2008
Posts: 33

Rep: Reputation: 4
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
1 members found this post helpful.
Old 05-10-2011, 09:43 AM   #3
LQ Newbie
Registered: May 2011
Distribution: ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks that worked!


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
Howto Create empty or blank iso file a1danel Linux - General 5 01-04-2011 02:20 AM
Resize NTFS img file nandelbosc Linux - Software 13 02-18-2010 11:43 AM
script that create a blank file in all sub-directories. samengr Programming 8 02-18-2009 05:00 PM
how do I create an initrd.img file? aquaboot Debian 2 11-07-2007 05:40 PM
how to extract .img file to create a "DUD" on a floppy diskette dojiep Linux - Newbie 4 05-23-2006 08:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration