home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 16871 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.5 KB  |  53 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!news.tufts.edu!news.tufts.edu!gtaylor
  2. From: gtaylor@jade.tufts.edu (Grant Taylor)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Novice question: How to write and read from /dev/fd0
  5. Message-ID: <GTAYLOR.92Nov16124605@jade.tufts.edu>
  6. Date: 16 Nov 92 17:57:21 GMT
  7. References: <Nov16.170616.51589@yuma.ACNS.ColoState.EDU>
  8. Sender: news@news.tufts.edu (USENET News System)
  9. Organization: Tufts University - Medford, MA
  10. Lines: 40
  11. In-Reply-To: mc499424@longs.lance.colostate.edu's message of 16 Nov 92 17:06:16 GMT
  12.  
  13. well, there are two ways to use floppies in linux- 
  14.  
  15. just as a raw device, with no filesystem on the floppy, ie tar
  16. and as you would in dos - by mounting and using the floppy's fs.
  17.  
  18. to use a floppy `raw', you simply specify /dev/fd[0||1] as the target `file' 
  19. for example - tar cCvvzf / /dev/fd0 will back up and compress your
  20. entire filesystem, assuming that it fits on a single floppy.  note that
  21. tar does not allow simletaneous use of the compress (z) and
  22. multivolume (M) options (a problem i will fix this weekend).  
  23. also useful - dd if=a2 of=/dev/fd0 would `rawrite' a2 to the floppy...
  24.  
  25. to use a floppy by mounting it, you just mount it.  if the filesystem
  26. is of a type other than minix, you must explicitly say so.
  27.  
  28. `mount /dev/fd0 /mnt'   mounts a minix floppy as /mnt/
  29. `mount -t msdos /dev/fd0 /mnt'  mounts a dos floppy as /mnt
  30. also possible are -t ext and, i suppose, -t proc, (on a floppy!?)
  31.  
  32. (please note, for future reference, that this question is probably
  33. covered in the FAQ, info-sheet, or installation notes of SLS or MCC,
  34. as well as, where relavent, the man pages to dd and GNU tar)
  35.  
  36. hope this cleared up a bit of confusion...
  37.  
  38. -grant
  39.  
  40.  
  41.  
  42. --
  43. +----------------+------------------------------+-------------------------+
  44.    Grant Taylor / it's time for martian's rest / (gtaylor@Jade.Tufts.Edu)
  45. +--------------+-----vvvvvvvvvvvvvvvvvvvvvvvvv+vvvvvvvvvvvvvvvvvvvvvvvvvvv+
  46. #include<stdio.h> /* gcc this, and all your dreams will come true (maybe!) */
  47. static int pp(char*a){int i=0;while(a[i])putchar(a[i++]-1);}main(){int a,b,c;
  48. char *d[]={"ep","efbvy","epvhi","epf"},*i[]={"j","fzf","jhi"},*f[]={"G","Qi"}
  49. ;pp("Jo\x21nfnpsz\x21pg\x21Jttbd\x21 Btjnpw///");putchar('\n');putchar('\n');
  50. for(a=0;a<2;a++)for(b=0;b<3;b++){for(c=0;c<4;c++){if(c==1)putchar('\t');pp(f
  51. [a]);pp(i[b]);pp(d[c]);putchar('\t');if(a==0&&b==0&&(c==1||c==2))putchar('\t'
  52. );}putchar('\n');}}  /* sorry kids, this one is only worth one bonus point */
  53.