NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/49840: Wrong disk size



>Number:         49840
>Category:       port-amd64
>Synopsis:       Wrong disk size
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 14 13:30:00 +0000 2015
>Originator:     Danilo Falcão
>Release:        6.1.5_PATCH
>Organization:
Kreditech Holding SSL GmbH
>Environment:
NetBSD seeed.kreditech.com 6.1.5_PATCH NetBSD 6.1.5_PATCH (SEEED) #0: Tue Apr 14 02:12:29 CEST 2015  danilo%seeed.kreditech.com@localhost:/usr/obj/sys/arch/amd64/compile/SEEED amd64
>Description:

Hello

We have these 2 disks which original size is: 2794 GB

(root!seeed)(~)# dmesg |grep sd[0-1]
sd0 at scsibus0 target 14 lun 0: <HGST, HUS724030ALS640, A1C4> disk fixed
sd0: 2794 GB, 308240 cyl, 8 head, 2376 sec, 512 bytes/sect x 5860533168 sectors
sd0: tagged queueing
sd1 at scsibus0 target 15 lun 0: <HGST, HUS724030ALS640, A1C4> disk fixed
sd1: 2794 GB, 308240 cyl, 8 head, 2376 sec, 512 bytes/sect x 5860533168 sectors
sd1: tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
(root!seeed)(~)#

However, fdisks and disklabel shows it different and I can only use 700 GB (2 TB is gone)

disklabel:

(root!seeed)(~)# disklabel sd1
# /dev/rsd1d:
type: SCSI
disk: HUS724030ALS640
label: fictitious
flags:
bytes/sector: 512
sectors/track: 2376
tracks/cylinder: 8
sectors/cylinder: 19008
cylinders: 308240
total sectors: 1565565873
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 1565565873         0     4.2BSD      0     0     0  # (Cyl.      0 -  82363*)
 d: 1565565873         0     unused      0     0        # (Cyl.      0 -  82363*)
(root!seeed)(~)#

fdisk:

(root!seeed)(~)# fdisk sd1
fdisk: Cannot determine the number of heads
Disk: /dev/rsd1d
NetBSD disklabel disk geometry:
cylinders: 308240, heads: 8, sectors/track: 2376 (19008 sectors/cylinder)
total sectors: 1565565872

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1565565872

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: NetBSD (sysid 169)
    start 2048, size 1565563824 (764435 MB, Cyls 0/32/33-97451/246/59)
        PBR is not bootable: Bad magic number (0x0000)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.
(root!seeed)(~)#
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index