trw@aplcen.apl.jhu.edu (Weil timothy) (06/02/90)
excuse my ignorance but I've yet to figure out how onemoves from disk to disk (HD, oppy A:, floppy B:) using aPC-based UNIX OS. I made an attempt at 'ls -l < /dev/rdsk/ft0' which lit up my A: but read from the current directory anyways. Thanks in Ad Vans
rick@tmiuv0.uucp (06/07/90)
In article <5605@aplcen.apl.jhu.edu>, trw@aplcen.apl.jhu.edu (Weil timothy) writes: > excuse my ignorance but I've yet to figure out how > onemoves from disk to disk (HD, oppy A:, floppy B:) > using aPC-based UNIX OS. > > I made an attempt at 'ls -l < /dev/rdsk/ft0' > which lit up my A: but read from the current directory > anyways. > > Thanks in Ad Vans You did say "ESIX", didn't you? Provided you've mounted the drive properly, it should be no problem. If, on the other hand, it's a CPIO disk or something without a filesystem on it you could have problems. By the way, try "ls -l /dev/dsk/f0t". The disk is a block device at filesystem level, and the "auto-density" selection is "f0t" for the first floppy, "f1t" for the second. -- .-------------------------------------------------------------------------. / [- O] Rick Stevens (All opinions are mine. Everyone ignores them anyway.) \ | ? +--------------------------------------------------------------------| | V | uunet!zardoz!tmiuv0!rick (<-- Work (ugh!)) | |--------+ uunet!zardoz!xyclone!sysop (<-- Home Unix (better!)) | | uunet!perigrine!ccicpg!conexch!amoeba2!rps2 (<-- Home Amiga (Best!!) | \ 75006.1355@compuserve.com (CIS: 75006,1355) (<-- CI$) / `-------------------------------------------------------------------------' "I was Caesarean born. When I leave the house, I use the window." - Steven Wright
det@hawkmoon.MN.ORG (Derek E. Terveer) (06/10/90)
In article <2190@tmiuv0.uucp> rick@tmiuv0.uucp writes: > In article <5605@aplcen.apl.jhu.edu>, trw@aplcen.apl.jhu.edu (Weil timothy) writes: > > excuse my ignorance but I've yet to figure out how > > onemoves from disk to disk (HD, oppy A:, floppy B:) > > using aPC-based UNIX OS. > > > > I made an attempt at 'ls -l < /dev/rdsk/ft0' > > which lit up my A: but read from the current directory > > anyways. > > > > Thanks in Ad Vans > > [..] > By the way, try "ls -l /dev/dsk/f0t". The disk is a block device at > filesystem level, and the "auto-density" selection is "f0t" for the first > floppy, "f1t" for the second. I don't think that the original poster was asking how to get the characteristics of the floppy drive (ls -l file), but rather how to list the files that are *on* the floppy. The floppies, in unix, are either a seperate file system that can be attached to your hard disk with the "mount" command (similar, in essence, to the ms-dos "join" command) or are archives that may be (typically) created and read with the "cpio" or "tar" commands. Try this sequence of commands with a 1.2MB floppy in drive A: as root: format /dev/rdsk/f0q15dt mkfs /dev/rdsk/f0q15dt 2400 2 30 labelit /dev/rdsk/f0q15dt mnt myflop mount /dev/dsk/f0q15dt /mnt ^^^ note i'm using "dsk" in this command instead of "rdsk" ls -l /mnt cp /tmp/* /mnt ls -l /mnt umount /dev/dsk/f0q15dt ls -l /mnt This last sequence of commands shows one how to create a "join-able" floppy, "join" (mount) the floppy, get a directory of its contents, copy some random files to it, get a directory of the floppy again and, finally, "unjoin" (umount) the floppy. Note that you shouldn't ever take the floppy out of the drive until you have unmounted it with the "umount" command! Dos will let you get away with this, unix will not. I have redirected followups to comp.unix.questions, which is where this belongs. derek -- Derek Terveer det@hawkmoon.MN.ORG