home *** CD-ROM | disk | FTP | other *** search
- 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
- From: gtaylor@jade.tufts.edu (Grant Taylor)
- Newsgroups: comp.os.linux
- Subject: Re: Novice question: How to write and read from /dev/fd0
- Message-ID: <GTAYLOR.92Nov16124605@jade.tufts.edu>
- Date: 16 Nov 92 17:57:21 GMT
- References: <Nov16.170616.51589@yuma.ACNS.ColoState.EDU>
- Sender: news@news.tufts.edu (USENET News System)
- Organization: Tufts University - Medford, MA
- Lines: 40
- In-Reply-To: mc499424@longs.lance.colostate.edu's message of 16 Nov 92 17:06:16 GMT
-
- well, there are two ways to use floppies in linux-
-
- just as a raw device, with no filesystem on the floppy, ie tar
- and as you would in dos - by mounting and using the floppy's fs.
-
- to use a floppy `raw', you simply specify /dev/fd[0||1] as the target `file'
- for example - tar cCvvzf / /dev/fd0 will back up and compress your
- entire filesystem, assuming that it fits on a single floppy. note that
- tar does not allow simletaneous use of the compress (z) and
- multivolume (M) options (a problem i will fix this weekend).
- also useful - dd if=a2 of=/dev/fd0 would `rawrite' a2 to the floppy...
-
- to use a floppy by mounting it, you just mount it. if the filesystem
- is of a type other than minix, you must explicitly say so.
-
- `mount /dev/fd0 /mnt' mounts a minix floppy as /mnt/
- `mount -t msdos /dev/fd0 /mnt' mounts a dos floppy as /mnt
- also possible are -t ext and, i suppose, -t proc, (on a floppy!?)
-
- (please note, for future reference, that this question is probably
- covered in the FAQ, info-sheet, or installation notes of SLS or MCC,
- as well as, where relavent, the man pages to dd and GNU tar)
-
- hope this cleared up a bit of confusion...
-
- -grant
-
-
-
- --
- +----------------+------------------------------+-------------------------+
- Grant Taylor / it's time for martian's rest / (gtaylor@Jade.Tufts.Edu)
- +--------------+-----vvvvvvvvvvvvvvvvvvvvvvvvv+vvvvvvvvvvvvvvvvvvvvvvvvvvv+
- #include<stdio.h> /* gcc this, and all your dreams will come true (maybe!) */
- static int pp(char*a){int i=0;while(a[i])putchar(a[i++]-1);}main(){int a,b,c;
- char *d[]={"ep","efbvy","epvhi","epf"},*i[]={"j","fzf","jhi"},*f[]={"G","Qi"}
- ;pp("Jo\x21nfnpsz\x21pg\x21Jttbd\x21 Btjnpw///");putchar('\n');putchar('\n');
- 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
- [a]);pp(i[b]);pp(d[c]);putchar('\t');if(a==0&&b==0&&(c==1||c==2))putchar('\t'
- );}putchar('\n');}} /* sorry kids, this one is only worth one bonus point */
-