can we edit bochs's image file

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
yan

can we edit bochs's image file

Post by yan »

as the title said:can we edit bochs's image file,i just want to add/cut some files in a '.img' file
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:can we edit bochs's image file

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 9:12 pm, edited 1 time in total.
yan

Re:can we edit bochs's image file

Post by yan »

oh bad!i didn't explain my idea correctly!

i meant can we edit Disk Images for bochs?
i tried to edit a floppy drive's image in 'winimage' ,it successed.but when i change to edit a larger image for hard drive,it failed.what can i do if i want to edit a large one?
beyond infinity lazy

Re:can we edit bochs's image file

Post by beyond infinity lazy »

you create a larger image file with this tool provided by bochs.
Tim

Re:can we edit bochs's image file

Post by Tim »

To create a hard disk image, I do this:
1. Create the file using bximage
2. Add it to the bochsrc.txt
3. Boot Bochs with a FreeDOS image in drive A:
4. Use the FreeDOS fdisk and format programs to partition and format the new hard disk image
5. Optionally, use the FreeDOS sys program to install FreeDOS onto the hard disk

You can now edit the hard disk using Winimage.
yan

Re:can we edit bochs's image file

Post by yan »

sirs:

1.just edit file,not creat one.

2.maybe linux's file system(ext2?) is quite diffirent from freedos(fat?),so winimage can't recognize it.

3.my image is from http://prdownloads.sourceforge.net/boch ... z?download
Tim

Re:can we edit bochs's image file

Post by Tim »

You're right -- Winimage won't recognise ext2. You'll have to find a different program.
yan

Re:can we edit bochs's image file

Post by yan »

what program can i choose?
Tim

Re:can we edit bochs's image file

Post by Tim »

Download the one at www.google.com.
yan

Re:can we edit bochs's image file

Post by yan »

what except winimage,just suggest one
Tim

Re:can we edit bochs's image file

Post by Tim »

Either I can type "ext2 disk image editor" into Google, or you can. It'll be quicker for you if you do it, because you won't have to wait for me to reply. Otherwise, I have no idea.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:can we edit bochs's image file

Post by Pype.Clicker »

i know there is a EXT2FS explorer for windows (ext2plorer or something alike) which can handle real EXT2 partitions from a windows program ... maybe the same program will be able to handle file images ...
yan

Re:can we edit bochs's image file

Post by yan »

Explore2fs is realy a good tool,but it can just view,not edit.It can export most of files but regular ones.
Hoping new version.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:can we edit bochs's image file

Post by Pype.Clicker »

it *can* edit ... the writing feature is just disabled by default and highly unrecommended, but if you're operating on a disk image, this should not be a problem :)
yan

Re:can we edit bochs's image file

Post by yan »

thanks sir,i found the way.

in help files:
version 1.00 pre 5
- 20020420
- Removed write support. If you realy want to use it set "DangerWriteSupport" = True in the registry

so i add DangerWriteSupport(N),1(V) in HKEY_CURRENT_USER\Software\Newbigin\explore2fs\
and it's ok now.
Post Reply