bug-parted
[Top][All Lists]
Advanced

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

Wrong disk size when partitioning


From: Raj Mathur
Subject: Wrong disk size when partitioning
Date: Mon, 1 Dec 2008 21:51:48 +0530
User-agent: KMail/1.9.9

Hi,

Have a strange problem.  System with 6 x 750GB SATA drives installed.  
One failed, so replaced it.  Drive is recognised properly at boot time:

SCSI device sdc: 1465149168 512-byte hdwr sectors (750156 MB)
sdc: Write Protect is off
sdc: Mode Sense: 00 3a 00 00
SCSI device sdc: drive cache: write back
SCSI device sdc: 1465149168 512-byte hdwr sectors (750156 MB)
sdc: Write Protect is off
sdc: Mode Sense: 00 3a 00 00
SCSI device sdc: drive cache: write back
 sdc:<6>ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 23 (level, low) -> 
IRQ 58

However, both parted and fdisk insist on treating the drive as a 50GB 
drive for some reason:

fdisk -l /dev/sdc

Disk /dev/sdc: 50.0 GB, 50000000000 bytes
255 heads, 63 sectors/track, 6078 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

parted /dev/sdc
GNU Parted 1.7.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) print

Disk /dev/sdc: 50.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

Any idea why this could be happening?  Would there be any way of 
recovering the correct disk size without rebooting?  This is a failed 
MD volume and I'd prefer not having to bring the server down again to 
fix this issue.

Apologies if this is the wrong list to post to, I couldn't locate a 
parted users mailing list.

Regards,

-- Raju
-- 
Raj Mathur                address@hidden      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves




reply via email to

[Prev in Thread] Current Thread [Next in Thread]