home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 7992 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.7 KB  |  48 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!taco!jlnance
  3. From: jlnance@eos.ncsu.edu (JAMES LEWIS NANCE)
  4. Subject: Re: Can I use dd on my UNIX system instead of Rawrite?
  5. Message-ID: <1992Aug12.122718.28604@ncsu.edu>
  6. Originator: jlnance@volt.ece.ncsu.edu
  7. Lines: 34
  8. Sender: news@ncsu.edu (USENET News System)
  9. Reply-To: jlnance@eos.ncsu.edu (JAMES LEWIS NANCE)
  10. Organization: North Carolina State University, Project Eos
  11. References:  <1992Aug11.192753.8568@dg-rtp.dg.com>
  12. Date: Wed, 12 Aug 1992 12:27:18 GMT
  13.  
  14.  
  15. In article <1992Aug11.192753.8568@dg-rtp.dg.com>, welshm@groupw.rtp.dg.com (Matt Welsh) writes:
  16. |> I've been thinking. Instead of using rawrite on DOS to put the binary
  17. |> Linux images onto diskettes, couldn't one just copy the images to the
  18. |> raw floppy device on their UNIX system such as:
  19. |> 
  20. |>   cp boot-US.1 /dev/pdsk/1
  21. |> 
  22. |> Or use dd(1)? I'm pretty sure this would accomplish the same thing as 
  23. |> rawrite under DOS. Has someone tried this?
  24. |> 
  25.  
  26. Yes, I have done this using both a Decstation5000/25 and a Sun Sparkstation.
  27.  
  28. On the Sun:
  29. floppy device is /dev/fd0
  30. format using : fdformat
  31.  
  32. On Dec:
  33. floppy device is /dev/fd0a
  34. format using : fddisk -fmt /dev/rfd0a (Yes, you need the r)
  35.  
  36. On either system (substitute approiate device name):
  37.  
  38. cat boot.img > /dev/fd0                         # makes a boot image
  39. tar cvf /dev/fd0 what.ever.files                # puts a tar file on disk
  40. tar cvf - what.ever.files | compress > /dev/fd0 # makes tar.Z file on disk
  41.  
  42. Now my question:
  43. Would it be simple to modify the mtools source to allow it to read and write
  44. linux files onto a floppy instead of dos files?  (We could call it ltools).
  45. I think that this could be useful.
  46.  
  47. Jim Nance
  48.