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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-31-2004, 09:52 AM
|
#1
|
Member
Registered: Jun 2004
Location: GA
Distribution: Latest ubuntu
Posts: 172
Rep:
|
how to extract a .img?
i need to install DSL onto a usb pen drive but cant figure out how to extract a .img file. How do i extract it?
|
|
|
12-31-2004, 10:03 AM
|
#2
|
Member
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217
Rep:
|
an img file is a straight image (bits and bytes) of a device, most often
to get it onto your usb pen drive, you will need to determine the hardware path to your usb pen drive, not the mounted location
i think if you run mount and look for your usb device, it should say "/dev/____" mounted on "/mnt/_____"
you want the /dev/ one
then run the following
cat image.img > /dev/_____
this will wipe out everything on your pen drive, wait till the command is completely done
|
|
|
12-31-2004, 11:06 AM
|
#3
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
You usually don't "install" or "extract" an .img file, you mount it.
Exactly what sort of image file are you working with?
Generally, to see what's in an .img you do something like this:
mount -o loop image.img /mnt/<mountpoint>
but some image files (initrd.img for example) are gzipped and you have to gunzip them first. Never heard of catting an image to a dev file. Maybe you can (there are a lot of things I haven't heard of ) but I would think you would run into trouble if the image wasn't of the same size and type of device.
|
|
|
12-31-2004, 12:16 PM
|
#4
|
Member
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217
Rep:
|
yes, you would run into size issues if they werent the same size, but the proper way to put an image file onto a disk is to cat it
for instance, when your making boot floppies, cat bootdisk.img > /dev/fd0 will copy the boot disk image to the floppy device
--adam
|
|
|
12-31-2004, 12:29 PM
|
#5
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
That's what I like about these linux boards, I always seem to learn something new. But what I'm wondering is for what sort of .img file would it be appropriate to write an .img to a usb pen drive in order to install DSL? Seems like a very odd (and probably wrong) thing to do. Unless one were storing a .img file on the drive to transfer to somewhere else. In which case catting would be wrong. And would blow the format of the pendrive???
Regards,
Kevin
|
|
|
12-31-2004, 12:42 PM
|
#6
|
Member
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217
Rep:
|
yea, i was wondering the same thing, if your worried about screwing up the formatting of your pen drive, before catting the image to the pendrive, you can cat the pendrive to an image file, therefore backing up the formatting of it
cat /dev/____ > pendrive.img
then your pendrive is stored in the .img file, then you can go through the instructions i told you before, then when your done, get the original pendrive format back by cat pendrive.img > /dev/____
but just to install dsl? that seems a little extreme, to install dsl, it depends on what your doing, but most dsl modems hooked up with a network cable are automatic
also, check to see the size of the image file, if its somewhere around or below 1.4mb, its probably meant to go on a floppy, in which case catting that image to a floppy is more acceptable
cat image.img > /dev/fd0
but whatever
--adam
Last edited by adamwenner; 12-31-2004 at 12:43 PM.
|
|
|
07-04-2005, 03:45 PM
|
#7
|
Member
Registered: Mar 2005
Posts: 32
Rep:
|
ok, so what would the mount point be? friend of mine sent me an img he created on his mac. I'm hung up on how do burn it to a DVD we can play on the TV.
|
|
|
All times are GMT -5. The time now is 04:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|