[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrong disk size when partitioning
From: |
Joel Granados |
Subject: |
Re: Wrong disk size when partitioning |
Date: |
Tue, 2 Dec 2008 12:00:25 -0500 (EST) |
Hi Raj:
What does `parted DEVCE print free` spit out?
I'm wondering if it would help to just erase the partition table `dd
if=/dev/zero of=DEVICE bs=1024 count=20` and then create a new one from scratch.
Regards.
----- "Raj Mathur" <address@hidden> wrote:
> 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
>
>
> _______________________________________________
> bug-parted mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-parted
--
Joel Andres Granados
Red Hat / Brno Czech Republic