Linux - NewbieThis 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.
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.
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.
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???
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.