Quick question about parted/fdisk for 2TB disks.
am 15.01.2011 02:52:49 von Justin Piszcz
Hi,
Device Boot Start End Blocks Id System
/dev/sda1 1 3891 31250000 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 3891 3907 131072 fd Linux raid autodetect
Partition 2 does not end on cylinder boundary.
/dev/sda3 3907 243202 1922132488 fd Linux raid autodetect
Partition 3 does not end on cylinder boundary.
But with parted, no issues:
(parted) print
Model: ATA WDC WD2001FASS-0 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 32.0GB 32.0GB primary linux-swap(v1) raid
2 32.0GB 32.1GB 134MB primary ext3 boot, raid
3 32.1GB 2000GB 1968GB primary ext4 raid
(parted)
Only use parted for 2TB+?
Justin.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Quick question about parted/fdisk for 2TB disks.
am 15.01.2011 04:19:05 von jeromepoulin
The problem with fdisk is probably that you have DOS compatibility
mode (when not using -c), it should also be set in sector mode (-u
option) which will eliminate those useless warning.
You could always use gdisk for GPT partition table instead, which
above 2TB is a most anyway.
On Fri, Jan 14, 2011 at 8:52 PM, Justin Piszcz
> wrote:
> Hi,
>
>
> =A0 Device Boot =A0 =A0 =A0Start =A0 =A0 =A0 =A0 End =A0 =A0 =A0Block=
s =A0 Id =A0System
> /dev/sda1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A03891 =A0 =A031=
250000 =A0 fd =A0Linux raid
> autodetect
> Partition 1 does not end on cylinder boundary.
> /dev/sda2 =A0 * =A0 =A0 =A0 =A03891 =A0 =A0 =A0 =A03907 =A0 =A0 =A013=
1072 =A0 fd =A0Linux raid
> autodetect
> Partition 2 does not end on cylinder boundary.
> /dev/sda3 =A0 =A0 =A0 =A0 =A0 =A03907 =A0 =A0 =A0243202 =A01922132488=
=A0 fd =A0Linux raid
> autodetect
> Partition 3 does not end on cylinder boundary.
>
> But with parted, no issues:
>
> (parted) print Model: ATA WDC WD2001FASS-0 (scsi)
> Disk /dev/sda: 2000GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
>
> Number =A0Start =A0 End =A0 =A0 Size =A0 =A0Type =A0 =A0 File system =
=A0 =A0 Flags
> =A01 =A0 =A0 =A01049kB =A032.0GB =A032.0GB =A0primary =A0linux-swap(v=
1) =A0raid
> =A02 =A0 =A0 =A032.0GB =A032.1GB =A0134MB =A0 primary =A0ext3 =A0 =A0=
=A0 =A0 =A0 =A0boot, raid
> =A03 =A0 =A0 =A032.1GB =A02000GB =A01968GB =A0primary =A0ext4 =A0 =A0=
=A0 =A0 =A0 =A0raid
>
> (parted)
>
> Only use parted for 2TB+?
>
> Justin.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Quick question about parted/fdisk for 2TB disks.
am 15.01.2011 10:52:59 von Justin Piszcz
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--655872-790399016-1295085179=:8724
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
On Fri, 14 Jan 2011, J=E9r=F4me Poulin wrote:
> The problem with fdisk is probably that you have DOS compatibility
> mode (when not using -c), it should also be set in sector mode (-u
> option) which will eliminate those useless warning.
>
> You could always use gdisk for GPT partition table instead, which
> above 2TB is a most anyway.
>
> On Fri, Jan 14, 2011 at 8:52 PM, Justin Piszcz =
wrote:
>> Hi,
>>
>>
>> =A0 Device Boot =A0 =A0 =A0Start =A0 =A0 =A0 =A0 End =A0 =A0 =A0Blocks =
=A0 Id =A0System
>> /dev/sda1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A03891 =A0 =A031250=
000 =A0 fd =A0Linux raid
>> autodetect
>> Partition 1 does not end on cylinder boundary.
>> /dev/sda2 =A0 * =A0 =A0 =A0 =A03891 =A0 =A0 =A0 =A03907 =A0 =A0 =A013107=
2 =A0 fd =A0Linux raid
>> autodetect
>> Partition 2 does not end on cylinder boundary.
>> /dev/sda3 =A0 =A0 =A0 =A0 =A0 =A03907 =A0 =A0 =A0243202 =A01922132488 =
=A0 fd =A0Linux raid
>> autodetect
>> Partition 3 does not end on cylinder boundary.
>>
>> But with parted, no issues:
>>
>> (parted) print Model: ATA WDC WD2001FASS-0 (scsi)
>> Disk /dev/sda: 2000GB
>> Sector size (logical/physical): 512B/512B
>> Partition Table: msdos
>>
>> Number =A0Start =A0 End =A0 =A0 Size =A0 =A0Type =A0 =A0 File system =A0=
=A0 Flags
>> =A01 =A0 =A0 =A01049kB =A032.0GB =A032.0GB =A0primary =A0linux-swap(v1) =
=A0raid
>> =A02 =A0 =A0 =A032.0GB =A032.1GB =A0134MB =A0 primary =A0ext3 =A0 =A0 =
=A0 =A0 =A0 =A0boot, raid
>> =A03 =A0 =A0 =A032.1GB =A02000GB =A01968GB =A0primary =A0ext4 =A0 =A0 =
=A0 =A0 =A0 =A0raid
>>
>> (parted)
>>
>> Only use parted for 2TB+?
>>
>> Justin.
Hi,
It looks good!
# fdisk -l /dev/sda -c
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units =3D cylinders of 16065 * 512 =3D 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x50b2166c
Device Boot Start End Blocks Id System
/dev/sda1 1 3891 31250000 fd Linux raid autodete=
ct
/dev/sda2 * 3891 3907 131072 fd Linux raid autodete=
ct
/dev/sda3 3907 243202 1922132488 fd Linux raid autodete=
ct
Thanks!
Justin.
--655872-790399016-1295085179=:8724--
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html