home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.96 / text2320.txt < prev    next >
Encoding:
Text File  |  1996-07-25  |  1.3 KB  |  59 lines

  1. All the talk about executor partitions gave me an idea.
  2. The following works under linux (and probably NextStep) to get
  3. an mac formatted partition.  Be careful.  If you don't understand
  4. what is follows, you probably shouldn't try it, since you may
  5. inadvertantly clobber your existing data.  I did this
  6. on my swap partition (/dev/hda3) just to see if it would work.
  7.  
  8.  
  9. First, choose a partition and determine its size:
  10.  
  11. % dd if=/dev/hda3 of=/dev/null bs=1024
  12. 32760+0 records in
  13. 32760+0 records out
  14.  
  15. Next create an hfv file of this size using makehfv:
  16.  
  17. % makehfv bob.hfv ExecutorPartition 32760K
  18. % du -s bob.hfv
  19. 526     bob.hfv
  20.  
  21. As you can see, the file bob.hfv doesn't really consume much
  22. space, even though it is a 32M file (perhaps because it
  23. contains mostly zeros).
  24.  
  25. Now copy the file to the partition:
  26.  
  27. % dd if=bob.hfv of=/dev/hda3
  28. 32760+0 records in
  29. 32760+0 records out
  30.  
  31. or simply:
  32.  
  33. % cp bob.hfv /dev/hda3
  34.  
  35. Finally, make a symbolic link from the partition to a file
  36. ending in .hfv:
  37.  
  38. % cd ~/MacVols
  39. % ln -s /dev/hda3 hda3.hfv
  40.  
  41. Now executor will happily use the partition as a drive:
  42.  
  43. % setenv MacVolumes ~/MacVols
  44. % executor
  45.  
  46. FWIW, the much simpler approaches:
  47.  
  48. % makehfv /dev/hda3 ExecutorPartition 33760K
  49.  
  50. and
  51.  
  52. % ln -s /dev/hda3 hda3.hfv
  53. % makehfv hda3.hfv ExecutorPartition 33760K
  54.  
  55. don't work, due to precautions taken by the makehfv program.
  56.  
  57. --Bill Magro
  58.  
  59.