LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   extract files from img file (https://www.linuxquestions.org/questions/linux-software-2/extract-files-from-img-file-655701/)

mbvo 07-14-2008 01:59 PM

extract files from img file
 
I'm trying to install debian on an ibm thinkpad 760ed, it has no cdrom so i'm trying to do a floppy/network install. 1 problem all my floppys have at least 1 bad sector on them. that 1 bad sector screws up the file called linux every time. but it currently has a screwed up copy of windows 95 and grub for dos i could use to boot the files if i could get them to the hdd. so i need to somehow exctract the files so that windows(or linux) can safely copy them to floppy and then onto the laptop. the problem is i can't find any programs that'll open a .img file(other than magic iso which only opens boot.img not root or net-drivers-1 and 2, any help please? I'm running win xp and kubuntu 7 on the machine that has the img files.

mbvo 07-14-2008 02:07 PM

never mind, i forgot about the mount command... i love linux lol.

hamsel 10-16-2008 02:07 AM

Having same problemo - what was the solution?
 
Hi, mbvo -

Could you elaborate a little on what the solution was? I'm having the exact same kind of problem, where "dd if=xxx.img of=/dev/fd0" finds (at least) one bad sector on the diskette, and I need to work my way around that.

I could dd the img to a memory stick, but still want to know if your solution is easier to do...

gnukish 10-16-2008 02:20 AM

you need not use dd to copy the image to floppy... you can simply mount the img like you mount an iso into a target directory with the mount command, file system, and other parameters.

you can use magic iso to open img files as pointed out by him, but if it doesn't open anything other than boot.img (make a copy of your file, and rename it as boot.img) it's very simple ;)

Cheers :)

hamsel 10-16-2008 04:35 AM

mount of img file
 
You hit it right on!

After replying to you I went back and tried to do a simple "mount mystuff.img /mnt/mymntpoint" - got the error msg stating that it would be a good idea to use the parm "-o loop", corrected the statement to "mount mystuff.img /mnt/mymntpoint -o loop", and, voila...

Thnx!


All times are GMT -5. The time now is 07:04 PM.