home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25684 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.5 KB  |  62 lines

  1. Path: sparky!uunet!math.fu-berlin.de!fauern!uni-erlangen.de!lte.e-technik.uni-erlangen.de!zie
  2. From: zie@lte.e-technik.uni-erlangen.de (Thomas Ziegler)
  3. Newsgroups: comp.os.linux
  4. Subject: dosemu0.4: Direct Access to DOS-Partitions
  5. Date: Wed, 27 Jan 1993 16:26:59 GMT
  6. Organization: Technische Elektronik, University of Erlangen, Germany
  7. Message-ID: <1k6d4jEINNc73@uni-erlangen.de>
  8. NNTP-Posting-Host: sim.e-technik.uni-erlangen.de
  9. Lines: 51
  10.  
  11. After increasing the size from hdimage, the virtual c: drive I 
  12. tried to give direct access to the existing Dos-partitions on the 
  13. first physikal drive (there are two more SCSI-Drives with ST01).
  14. Following the README everything should work well, but it does not.
  15. The command 'd:' is answered with 'Invalid drive specification' (dos5.0).
  16. Here is what I did.
  17. /etc/fdisk reports:
  18.  
  19. Disk /dev/hda: 6 heads, 17 sectors, 820 cylinders
  20. Units = cylinders of 102 * 512 bytes
  21.  
  22.    Device Boot  Begin   Start     End  Blocks   Id  System
  23. /dev/hda1   *       1       1     196    9987+   1  DOS 12-bit FAT
  24. /dev/hda2         197     197     820   31824   81  Linux/MINIX
  25.  
  26. According tho this I changed emu.c:
  27.  
  28. #define HDISKS 2        /* maximum 2 */
  29. struct disk hdisktab[HDISKS] = {
  30.                 {"hdimage", 0, 17, 4, 100},
  31. #if HDISKS == 2
  32.                 {"/dev/hda1", 1, 17, 6, 195}, 
  33. /*                           ^ readonly                                 */
  34. /*                              ^ sectors                               */
  35. /*                                  ^ heads                             */
  36. /*                                      ^ cylinders                     */
  37. #endif
  38.         };
  39.  
  40. The privilleges for /dev/hda are:
  41.  
  42. brw-r--r--   1 bin      bin        3,   0 Mar 19  1992 /dev/hda
  43. brw-rw-r--   1 bin      bin        3,   1 Mar 19  1992 /dev/hda1
  44. brw-------   1 bin      bin        3,   2 Mar 19  1992 /dev/hda2
  45.  
  46. Linux is version 0.99 patchlever 4, the emulator was compiled with gcc2.3.3,
  47. I had to apply the patch recently posted to this newsgroup to avoid the 
  48. segmentation fault since version 0.98p6 (if I remember it wright).
  49.  
  50. I hope anybody could help me, or even tell me there experiences about 
  51. direct HD-access (by email).
  52.  
  53.     Thomas
  54.  
  55. BTW: This is for Mattias Lautner personaly:
  56.      Ich habe versucht dich persoenlich per email zu erreichen. Diese
  57.      konnte aber nicht zugestellt werden. 
  58.      informatik.uni-wuerzburg.de ist ein unknown host. Liegt das an
  59.      Erlangen oder an Wuerzburg. Falls du mich per mail auch nicht 
  60.     erreichen kannst: Tel 09131-85-7200 ist meine Uni-Nummer.
  61.  
  62.