|
|
1.1 root 1:
2: Testing of read access with Dosemu
3: ==================================
4:
5:
6: I describe the method I use for my drives, you may need to change some names.
7: I have a DOS filesystem on /dev/hda1, I usually mount it on /DOS.
8: This drive is seen as c: from DOS when starting.
9: Stacvol file is c:stacvol.dsk. When config.sys is executed
10: stacvol.dsk is swapped and becomes c: and old c: is d:.
11:
12: Prepare dmsdos package in /usr/local/src/dmsdos-x.y.z/src
13: rmmod dmsdos # for changes from next compilation
14: make clean
15: make
16: insmod dmsdos
17: cd /DOS
18: mount -r -t msdos -o loop stacvol.dsk /mnt # important: mount READ-ONLY!!!
19:
20: Now you should see the root of your DOS drive in /DOS directory and
21: under /mnt the root of your stacker drive.
22: In the syslog you can see the parameters of all mounted stacker drives.
23: If you have dutil compiled, you can proceed the next test
24:
25: dutil /mnt checkfs
26:
27: If there are errors you can see them in the syslog as DMSDOS: ...
28: Now you can make the read test.
29: Configure Dosemu for readonly access to the full hard drive or partition.
30:
31: disk { partition "/dev/hda1" readonly } # must be first to boot from it
32: disk { image "/var/lib/dosemu/hdimage" } # or something similar
33: # you need this to have access to dosemu utilities
34:
35: You must include somewhere in config.sys line
36:
37: device=<hdimage_drive>:\emufs.sys /
38:
39: Now run Dosemu by command
40:
41: dos -C
42:
43: If it does not work try to find out if stacker can see its stackvols.
44: There may be differences if you have some other organization of the drives
45: under DOS.
46: Now you can see or change redirections to the Linux filesystem
47:
48: <hdimage_drive>:lredir
49:
50: For comparing you can use the dos utility cmpdisk.exe, which tries read all
51: files from two drives. One should be the drive managed by regular
52: dos stacker and the second by the Linux dmsdos driver.
53:
54: cd <stac_drive>:\
55: cd <redirected_linux_drive>:\mnt
56: cmpdisk <stac_drive>: <redirected_linux_drive>:
57:
58: If some file is read differently from one drive, cmpdisk waits
59: for a keystroke. Then it continues. Parameters of cmpdisk can
60: be in form:
61:
62: <drive_letter>:[\]<directory>\
63:
64: for example
65:
66: E:\mnt\
67:
68: Any differences are suspected to be dmsdos bugs!
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.