home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!pacbell.com!UB.com!quack!dfox
- From: dfox@quack.sac.ca.us (David Fox)
- Subject: Re: Cylinder Groups and Data Blocks
- Message-ID: <fWSotBD@quack.sac.ca.us>
- Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
- References: <1gtunnINNgk0@menudo.uh.edu>
- Date: 20 Dec 1992 18:26:51 UTC
- Lines: 19
-
- In article <1gtunnINNgk0@menudo.uh.edu> cavers@menudo.uh.edu (Chris M. Cavers) writes:
- >I am trying to obtain a 'map' or list of all of the data areas on a disk
- >under sun os 4.1.2.
- >Can someone tell me how to do this?
- >I've been using the following code to try to do this:
-
- [code deleted]
-
- >Assuming each block is one sector (512 bytes) the above code
- >comes to about half of the number of bytes on the disk (as given by the
- >df command).
- >
- >What is wrong?
-
- The clue is " comes to about half of the number of bytes on the disk".
- df outputs information in terms of 512 byte blocks, and not in kilo-
- bytes unless you use the -k flag. Try using the -k flag with df and
- comparing that to the results your program gives.
-
-