Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old May 22nd, 2006   #1
Ben Sprinkle
Day Old Decaf
 
Join Date: May 2006
Location: Virginia, USA
Beans: 1,144
Send a message via MSN to Ben Sprinkle
extract .img

ellor guys im new and im tryin to edit and reconfigure some stuff for friends live cd distrib there are four .img files on it and i need to know how to either convert them or extract the files and one know the commands for this??
Ben Sprinkle is offline   Reply With Quote
Old May 23rd, 2006   #2
tkjacobsen
Quad Shot of Ubuntu
 
tkjacobsen's Avatar
 
Join Date: Dec 2005
Location: Copenhagen, Denmark
Beans: 386
Kubuntu 7.04 Feisty Fawn
Send a message via MSN to tkjacobsen
Re: extract .img

if you want to extract it to a device eg /dev/sda1 use:
Code:
dd if=name.img of=/dev/sda1
Maybe you can just change the destination to a directory (eg of=/home/user/imagefolder)

Have not tried this myself, so be careful... Don't know if et works. Try to consult the manual: man dd
__________________
Troels Kofoed Jacobsen
Consult the wiki before posting: wiki.ubuntu.com
tkjacobsen is offline   Reply With Quote
Old December 30th, 2007   #3
weldan
First Cup of Ubuntu
 
weldan's Avatar
 
Join Date: Mar 2007
Location: malaysia
Beans: 6
Ubuntu 6.10 Edgy
Send a message via Yahoo to weldan
Re: extract .img

got it work. extract it to device like usb using dd

root# mount /dev/sdb1 /media/disk
root# dd if=/dir/filename.img of=/dev/sdb1
2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 0.834497 seconds, 1.8 MB/s

and the extracted files are in /media/disk

Last edited by weldan; December 30th, 2007 at 10:39 PM..
weldan is offline   Reply With Quote
Old June 24th, 2008   #4
darbid
5 Cups of Ubuntu
 
Join Date: May 2008
Beans: 36
Re: extract .img

just a small warning to beginners that stumble on this thread - the commands below which copy the img file to a USB device also wipe your device of anything else on it.

****edit - update

After doing more reading - Be very careful with the dd-command also know to some people as Destroy Disk. Your target in the above example WILL BE deleted and at this stage i have not found a recovery solution.

In my opinion dd-command is NOT for beginners because you get no warnings of what it is about to do. I would suggest do not use it.

Last edited by darbid; June 24th, 2008 at 02:58 AM..
darbid is offline   Reply With Quote
Old July 8th, 2008   #5
Balachmar
A Carafe of Ubuntu
 
Join Date: Oct 2005
Beans: 94
Re: extract .img

Although the extraction went fine, I cannot mount my usbdisk anymore. It doesn't recognise the FS....
How can I reformat the usbdisk? Or make it work?
Balachmar is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:27 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry