how to know the size of a raw disk partition ?

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Re: how to know the size of a raw disk partition ?


    "Michael Korte" <michael.korte@materna.de> wrote in message
    news:bgqeh0$38v$1@pentheus.materna.de...
    > "Cho, Y.W." <ywcho@unisql.com> schrieb im Newsbeitrag
    > news:O62Ya.71096$H%2.786405@news.bora.net...
    > > I want to know the size of a raw disk partition. (It's mounted as
    > > /dev/raw/raw33.)
    >
    > which OS ???
    >
    > try the command : df (Disc Free)
    >
    > parameter : -b = bytes
    > else it shows the blocks...
    >
    > HTH
    >
    > Michael
    >
    >
    df only tells about mounted file systems. The OP wanted information
    about a raw partition. The only to get this information is to look at
    the disk label. On SunOS, the command is prtvtoc.

    --
    Fletcher Glenn
    to reply remove NOSPAM from my reply address


    Fletcher Glenn Guest

  2. Similar Questions and Discussions

    1. Increasing partition size
      Hi, I have a Windows Server 2003 server. I was wondering, if I add hard drive space to the server, can I increase the size of the C: drive...
    2. Maximum Partition Size
      Does any one know what the maximum partition size is for Server 2003 (Standard and Enterprise) Back round: I am setting up a server to be used...
    3. partition size in windows 2000 server
      hi, i have a w2k server ugraded from an NT4.0. I have partition my hard disk into two partitions C:\ and D:\. My c:\ is only 2.0 GB and the D:\ is...
    4. Disk Partition
      Purchased a PC with 80 GB with Windows 2000 Professional installed. Hard disk is parttitoned to 50 - 50 (drives C and D). Been advised that it is...
    5. How to change partition number & block size
      Hallo, I need some help. I'm looking for some utility that will change general partition number assigns, and block size on nonempty partition....
  3. #2

    Default Re: how to know the size of a raw disk partition ?


    "Cho, Y.W." <ywcho@unisql.com> wrote in message
    news:O62Ya.71096$H%2.786405@news.bora.net...
    > I want to know the size of a raw disk partition. (It's mounted as
    > /dev/raw/raw33.)
    >
    > stat() function seems not revealing it.
    Try this:

    1) 'open' it
    2) 'lseek' to the end.
    3) look at the return value

    DS


    David Schwartz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139