Author Topic: Accessing hard drive image file on Z  (Read 2279 times)

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Accessing hard drive image file on Z
« on: August 31, 2004, 12:21:22 pm »
Hi All,

I have hd.img file on Zaurus which I use with Bochs emulator to boot and run DOS.
Is there a way to access filesytem on this hd.img from Linux?
I have tried without success to mount it as loop.
Any ideas how to share files between DOS and Linux?

Thanks in advance,
suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Accessing hard drive image file on Z
« Reply #1 on: August 31, 2004, 12:32:57 pm »
suruaZ,
I'm afraid I can't answer your question, but I sure would appreciate it if you could give me the details of how you run DOS with Bochs.
I can't seem to find any information on it that helps me out.
I don't know where to put the image file, or anything else. I am totally at a loss.
I am running a SL-5500 with standard Sharp Rom 3.13.

By the way, I just ordered a compact flash adapter that connects to a cell phone at http://www.socketcom.com/product/dpc.asp.
Once I get this up and working on the internet, I will post the how/to.

Thanks in advance for any Bochs info you can give me.

Doug
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Accessing hard drive image file on Z
« Reply #2 on: August 31, 2004, 12:59:31 pm »
Hi Doug,

Install Bochs from IPK. There are two versions I found for Z. First works in console mode, second uses SDL library and works in 90 dergee rotated full screen mode (I love it).
In the same folder where bochs executable is create .bochsrc file. This is configuration file. Vital information here are:
1. Paths to the BIOS and VGABIOS
2. Paths to to images of HD or Floppies
3. boot - you need to point the bochs to the disk you'll boot from
4. ips - important! as speed will depends from this. I set to 400000 on SL-5500
I have a few more lines but guess it's not so important.

Now to start the Bochs just type in console: ./bochs -q (if you're in the program's folder) or bochs -q if bochs executable is on the path.
Hope you know how to create disk images and where to find DOS  

suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

ciro

  • Newbie
  • *
  • Posts: 17
    • View Profile
Accessing hard drive image file on Z
« Reply #3 on: September 01, 2004, 05:13:09 am »
I don't know the exact format of image. I guess, you may want to try -o (offset) option of losetup.

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Accessing hard drive image file on Z
« Reply #4 on: September 01, 2004, 01:16:20 pm »
Quote
I don't know the exact format of image.

Standard bootable DOS hard drive with boot sector, FAT and so on.

Quote
I guess, you may want to try -o (offset) option of losetup

Seems I have no losetup on my Z. Is this downloadable from somewhere?

suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Accessing hard drive image file on Z
« Reply #5 on: September 02, 2004, 01:43:01 pm »
Found solution!
Create virtual floppy, copy files from HD.img there (under DOS) and then mount floppy image file with -o loop
In this way is possible to share files between Z and DOS.

suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB