Whereis my Gbytes on hdd

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Whereis my Gbytes on hdd

dmitry.sensei
Hi!

OpenBSD 5.7 (19 Jan 2015)

Strange math. for me.

Capacity is 465.8G
Sum of labels is

1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G

Where is 136.6G ?


# disklabel -h sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Hitachi HTS72755
duid: 1881213cdc5807e9
flags:
bytes/sector: 512
sectors/track: 36
tracks/cylinder: 158
sectors/cylinder: 5688
cylinders: 171725
total sectors: 976773168 # total bytes: 465.8G
boundstart: 64
boundend: 976771800
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
   a:             1.0G               64  4.2BSD   2048 16384    1 # /
   b:             1.2G          2097216    swap                   # none
   c:           465.8G                0  unused
   d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
   e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
   f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
   g:             1.0G         29728192  4.2BSD   2048 16384    1 #
/usr/X11R6
   h:            10.0G         31825344  4.2BSD   2048 16384    1 #
/usr/local
   i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
   j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
   k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

Jan Stary
On Jan 20 00:20:55, [hidden email] wrote:

> Hi!
>
> OpenBSD 5.7 (19 Jan 2015)
>
> Strange math. for me.
>
> Capacity is 465.8G
> Sum of labels is
>
> 1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
>
> Where is 136.6G ?

Unallocated after sd0k?
Or did your last partition just happen to have exactly 300G?


> # disklabel -h sd0
> # /dev/rsd0c:
> type: SCSI
> disk: SCSI disk
> label: Hitachi HTS72755
> duid: 1881213cdc5807e9
> flags:
> bytes/sector: 512
> sectors/track: 36
> tracks/cylinder: 158
> sectors/cylinder: 5688
> cylinders: 171725
> total sectors: 976773168 # total bytes: 465.8G
> boundstart: 64
> boundend: 976771800
> drivedata: 0
>
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:             1.0G               64  4.2BSD   2048 16384    1 # /
>   b:             1.2G          2097216    swap                   # none
>   c:           465.8G                0  unused
>   d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
>   e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
>   f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
>   g:             1.0G         29728192  4.2BSD   2048 16384    1 #
> /usr/X11R6
>   h:            10.0G         31825344  4.2BSD   2048 16384    1 #
> /usr/local
>   i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
>   j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
>   k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

vadimou
In reply to this post by dmitry.sensei
From disklabel(8):

  Space left after all partitions have reached their maximum size is
left unallocated.



On 1/19/15, Dmitry Orlov <[hidden email]> wrote:

> Hi!
>
> OpenBSD 5.7 (19 Jan 2015)
>
> Strange math. for me.
>
> Capacity is 465.8G
> Sum of labels is
>
> 1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
>
> Where is 136.6G ?
>
>
> # disklabel -h sd0
> # /dev/rsd0c:
> type: SCSI
> disk: SCSI disk
> label: Hitachi HTS72755
> duid: 1881213cdc5807e9
> flags:
> bytes/sector: 512
> sectors/track: 36
> tracks/cylinder: 158
> sectors/cylinder: 5688
> cylinders: 171725
> total sectors: 976773168 # total bytes: 465.8G
> boundstart: 64
> boundend: 976771800
> drivedata: 0
>
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>    a:             1.0G               64  4.2BSD   2048 16384    1 # /
>    b:             1.2G          2097216    swap                   # none
>    c:           465.8G                0  unused
>    d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
>    e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
>    f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
>    g:             1.0G         29728192  4.2BSD   2048 16384    1 #
> /usr/X11R6
>    h:            10.0G         31825344  4.2BSD   2048 16384    1 #
> /usr/local
>    i:             2.0G         52796864  4.2BSD   2048 16384    1 #
> /usr/src
>    j:             2.0G         56991168  4.2BSD   2048 16384    1 #
> /usr/obj
>    k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

Philip Guenther-2
In reply to this post by dmitry.sensei
On Mon, Jan 19, 2015 at 11:20 AM, Dmitry Orlov <[hidden email]> wrote:

> Capacity is 465.8G
> Sum of labels is
>
> 1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
>
> Where is 136.6G ?
>
>
> # disklabel -h sd0
> # /dev/rsd0c:
...

> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:             1.0G               64  4.2BSD   2048 16384    1 # /
>   b:             1.2G          2097216    swap                   # none
>   c:           465.8G                0  unused
>   d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
>   e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
>   f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
>   g:             1.0G         29728192  4.2BSD   2048 16384    1 #
> /usr/X11R6
>   h:            10.0G         31825344  4.2BSD   2048 16384    1 #
> /usr/local
>   i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
>   j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
>   k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home


You'll need to compare that output with the output of "disklabel sd0",
without the -h option, to figure out whether there's unallocated space
after some partition(s), or if it's a math error in the -h display.


Philip Guenther

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

dmitry.sensei
In reply to this post by Jan Stary
As result of default installation process.

Whole Disk + Automatic disklabel


On 20.01.2015 00:27, Jan Stary wrote:

> On Jan 20 00:20:55, [hidden email] wrote:
>> Hi!
>>
>> OpenBSD 5.7 (19 Jan 2015)
>>
>> Strange math. for me.
>>
>> Capacity is 465.8G
>> Sum of labels is
>>
>> 1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
>>
>> Where is 136.6G ?
> Unallocated after sd0k?
> Or did your last partition just happen to have exactly 300G?
>
>
>> # disklabel -h sd0
>> # /dev/rsd0c:
>> type: SCSI
>> disk: SCSI disk
>> label: Hitachi HTS72755
>> duid: 1881213cdc5807e9
>> flags:
>> bytes/sector: 512
>> sectors/track: 36
>> tracks/cylinder: 158
>> sectors/cylinder: 5688
>> cylinders: 171725
>> total sectors: 976773168 # total bytes: 465.8G
>> boundstart: 64
>> boundend: 976771800
>> drivedata: 0
>>
>> 16 partitions:
>> #                size           offset  fstype [fsize bsize  cpg]
>>    a:             1.0G               64  4.2BSD   2048 16384    1 # /
>>    b:             1.2G          2097216    swap                   # none
>>    c:           465.8G                0  unused
>>    d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
>>    e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
>>    f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
>>    g:             1.0G         29728192  4.2BSD   2048 16384    1 #
>> /usr/X11R6
>>    h:            10.0G         31825344  4.2BSD   2048 16384    1 #
>> /usr/local
>>    i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
>>    j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
>>    k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

dmitry.sensei
In reply to this post by Philip Guenther-2
What place in disklabel output point me unallocated space?

And how i can "allocate" "unallocated" ? :)

Below output without -h

# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Hitachi HTS72755
duid: 1881213cdc5807e9
flags:
bytes/sector: 512
sectors/track: 36
tracks/cylinder: 158
sectors/cylinder: 5688
cylinders: 171725
total sectors: 976773168
boundstart: 64
boundend: 976771800
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
   a:          2097152               64  4.2BSD   2048 16384    1 # /
   b:          2569344          2097216    swap                   # none
   c:        976773168                0  unused
   d:          8388608          4666560  4.2BSD   2048 16384    1 # /tmp
   e:         12478720         13055168  4.2BSD   2048 16384    1 # /var
   f:          4194304         25533888  4.2BSD   2048 16384    1 # /usr
   g:          2097152         29728192  4.2BSD   2048 16384    1 #
/usr/X11R6
   h:         20971520         31825344  4.2BSD   2048 16384    1 #
/usr/local
   i:          4194304         52796864  4.2BSD   2048 16384    1 # /usr/src
   j:          4194304         56991168  4.2BSD   2048 16384    1 # /usr/obj
   k:        629145600         61185472  4.2BSD   4096 32768    1 # /home


On 20.01.2015 00:34, Philip Guenther wrote:

> On Mon, Jan 19, 2015 at 11:20 AM, Dmitry Orlov <[hidden email]> wrote:
>> Capacity is 465.8G
>> Sum of labels is
>>
>> 1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
>>
>> Where is 136.6G ?
>>
>>
>> # disklabel -h sd0
>> # /dev/rsd0c:
> ...
>> 16 partitions:
>> #                size           offset  fstype [fsize bsize  cpg]
>>    a:             1.0G               64  4.2BSD   2048 16384    1 # /
>>    b:             1.2G          2097216    swap                   # none
>>    c:           465.8G                0  unused
>>    d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
>>    e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
>>    f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
>>    g:             1.0G         29728192  4.2BSD   2048 16384    1 #
>> /usr/X11R6
>>    h:            10.0G         31825344  4.2BSD   2048 16384    1 #
>> /usr/local
>>    i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
>>    j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
>>    k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home
>
> You'll need to compare that output with the output of "disklabel sd0",
> without the -h option, to figure out whether there's unallocated space
> after some partition(s), or if it's a math error in the -h display.
>
>
> Philip Guenther

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

dmitry.sensei
In reply to this post by Philip Guenther-2
Sorry.

I thought that all the remaining space is distributed to /home.


On 20.01.2015 00:34, Philip Guenther wrote:

> On Mon, Jan 19, 2015 at 11:20 AM, Dmitry Orlov <[hidden email]> wrote:
>> Capacity is 465.8G
>> Sum of labels is
>>
>> 1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
>>
>> Where is 136.6G ?
>>
>>
>> # disklabel -h sd0
>> # /dev/rsd0c:
> ...
>> 16 partitions:
>> #                size           offset  fstype [fsize bsize  cpg]
>>    a:             1.0G               64  4.2BSD   2048 16384    1 # /
>>    b:             1.2G          2097216    swap                   # none
>>    c:           465.8G                0  unused
>>    d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
>>    e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
>>    f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
>>    g:             1.0G         29728192  4.2BSD   2048 16384    1 #
>> /usr/X11R6
>>    h:            10.0G         31825344  4.2BSD   2048 16384    1 #
>> /usr/local
>>    i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
>>    j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
>>    k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home
>
> You'll need to compare that output with the output of "disklabel sd0",
> without the -h option, to figure out whether there's unallocated space
> after some partition(s), or if it's a math error in the -h display.
>
>
> Philip Guenther

Reply | Threaded
Open this post in threaded view
|

Re: Whereis my Gbytes on hdd

janus
In reply to this post by dmitry.sensei
Dmitry,

your free space is after the k partition.
286442096 512 byte blocks = 136.5862350464 G

The allocated space is consistent, i.e. without holes ...

# size offset END
a: 2097152 64 2097216
b: 2569344 2097216 4666560
c: 976773168 0
d: 8388608 4666560 13055168
e: 12478720 13055168 25533888
f: 4194304 25533888 29728192
g: 2097152 29728192 31825344
h: 20971520 31825344 52796864
i: 4194304 52796864 56991168
j: 4194304 56991168 61185472
k: 629145600 61185472 690331072
        286442096 690331072

there are 286442096 unallocated blocks (976773168 - 690331072)

Best regards,
Jan



On Tue, Jan 20, 2015 at 12:40:38AM +0500, Dmitry Orlov wrote:

> What place in disklabel output point me unallocated space?
>
> And how i can "allocate" "unallocated" ? :)
>
> Below output without -h
>
> # disklabel sd0
> # /dev/rsd0c:
> type: SCSI
> disk: SCSI disk
> label: Hitachi HTS72755
> duid: 1881213cdc5807e9
> flags:
> bytes/sector: 512
> sectors/track: 36
> tracks/cylinder: 158
> sectors/cylinder: 5688
> cylinders: 171725
> total sectors: 976773168
> boundstart: 64
> boundend: 976771800
> drivedata: 0
>
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:          2097152               64  4.2BSD   2048 16384    1 # /
>   b:          2569344          2097216    swap                   # none
>   c:        976773168                0  unused
>   d:          8388608          4666560  4.2BSD   2048 16384    1 # /tmp
>   e:         12478720         13055168  4.2BSD   2048 16384    1 # /var
>   f:          4194304         25533888  4.2BSD   2048 16384    1 # /usr
>   g:          2097152         29728192  4.2BSD   2048 16384    1 #
> /usr/X11R6
>   h:         20971520         31825344  4.2BSD   2048 16384    1 #
> /usr/local
>   i:          4194304         52796864  4.2BSD   2048 16384    1 # /usr/src
>   j:          4194304         56991168  4.2BSD   2048 16384    1 # /usr/obj
>   k:        629145600         61185472  4.2BSD   4096 32768    1 # /home
>
>
> On 20.01.2015 00:34, Philip Guenther wrote:
> >On Mon, Jan 19, 2015 at 11:20 AM, Dmitry Orlov <[hidden email]> wrote:
> >>Capacity is 465.8G
> >>Sum of labels is
> >>
> >>1.0G+1.2G+4.0G+6.0G+2.0G+1.0G+10.0G+2.0G+2.0G+300.0G = 329.2G
> >>
> >>Where is 136.6G ?
> >>
> >>
> >># disklabel -h sd0
> >># /dev/rsd0c:
> >...
> >>16 partitions:
> >>#                size           offset  fstype [fsize bsize  cpg]
> >>   a:             1.0G               64  4.2BSD   2048 16384    1 # /
> >>   b:             1.2G          2097216    swap                   # none
> >>   c:           465.8G                0  unused
> >>   d:             4.0G          4666560  4.2BSD   2048 16384    1 # /tmp
> >>   e:             6.0G         13055168  4.2BSD   2048 16384    1 # /var
> >>   f:             2.0G         25533888  4.2BSD   2048 16384    1 # /usr
> >>   g:             1.0G         29728192  4.2BSD   2048 16384    1 #
> >>/usr/X11R6
> >>   h:            10.0G         31825344  4.2BSD   2048 16384    1 #
> >>/usr/local
> >>   i:             2.0G         52796864  4.2BSD   2048 16384    1 # /usr/src
> >>   j:             2.0G         56991168  4.2BSD   2048 16384    1 # /usr/obj
> >>   k:           300.0G         61185472  4.2BSD   4096 32768    1 # /home
> >
> >You'll need to compare that output with the output of "disklabel sd0",
> >without the -h option, to figure out whether there's unallocated space
> >after some partition(s), or if it's a math error in the -h display.
> >
> >
> >Philip Guenther
>

--
Be the change you want to see in the world.