LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-09-2011, 05:33 PM   #1
garr133351
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 (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!
 
Old 05-09-2011, 08:15 PM   #2
xzcallaway
Member
 
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, 10:43 AM   #3
garr133351
LQ Newbie
 
Registered: May 2011
Distribution: ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks that worked!
 
  


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


All times are GMT -5. The time now is 04:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration