how to extract .img file created with cat

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
deathmood
Posts: 2
Joined: Mon Nov 14, 2011 11:27 am

how to extract .img file created with cat

Post by deathmood »

how can i extract .img file created with cat on windows (such programs as magiciso does not work). i am asking about it because i want to extract floppy.img from the http://www.jamesmolloy.co.uk/tutorial_html/index.html to see how he configured grub for the tutorial
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: how to extract .img file created with cat

Post by piranha »

I'm assuming what you want is to mount and access the filesystem contained within a floppy image file in Windows. A quick search of the wiki turned up this: http://wiki.osdev.org/Windows_Tools#diskpart

But I don't know anything about it since I don't use windows, so thats all I've got.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
deathmood
Posts: 2
Joined: Mon Nov 14, 2011 11:27 am

Re: how to extract .img file created with cat

Post by deathmood »

i do not understand how can that help me (i also ca not run vfd on my x64 system - i tried)
then what about linux? how can i do such operation there?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: how to extract .img file created with cat

Post by Combuster »

The FAQ has a link to Disk Images. You might want to read that. There's more than one way to do things.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: how to extract .img file created with cat

Post by egos »

No way to do that if you don't know the indications of included files because they are simply continuously concatenated files.
If you have seen bad English in my words, tell me what's wrong, please.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: how to extract .img file created with cat

Post by neon »

Code: Select all

title=JamesM's Tutorial
root (fd0)
kernel /kernel
Extracted using Notepad. I assume its right.

Also, you cant run imaging software on a file that's not an actual disk image (referring to your usage of Windows cat command here).
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply