LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-14-2008, 01:59 PM   #1
mbvo
Member
 
Registered: May 2006
Location: the land of confusion
Distribution: slackware-current
Posts: 220

Rep: Reputation: 31
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.
 
Old 07-14-2008, 02:07 PM   #2
mbvo
Member
 
Registered: May 2006
Location: the land of confusion
Distribution: slackware-current
Posts: 220

Original Poster
Rep: Reputation: 31
never mind, i forgot about the mount command... i love linux lol.
 
Old 10-16-2008, 02:07 AM   #3
hamsel
LQ Newbie
 
Registered: Mar 2004
Location: Herfølge, Denmark
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
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...
 
Old 10-16-2008, 02:20 AM   #4
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
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

Last edited by gnukish; 10-16-2008 at 02:22 AM.
 
Old 10-16-2008, 04:35 AM   #5
hamsel
LQ Newbie
 
Registered: Mar 2004
Location: Herfølge, Denmark
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
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!
 
  


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
extract .img file cccc Linux - General 3 06-02-2008 03:04 AM
how to extract .img file to create a "DUD" on a floppy diskette dojiep Linux - Newbie 4 05-23-2006 08:31 AM
how to extract a .img? SlipAway172 Linux - Newbie 6 07-04-2005 03:45 PM
extract all the diagrams in a pdf file to individual graphics files on linux tcma Linux - Software 0 10-22-2004 01:52 PM
Extract *.img file? teodavinci Linux - Newbie 1 08-24-2004 03:47 PM


All times are GMT -5. The time now is 05:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration