we have CENTOS 5.5 on X86. I tried to create a "raw partition" (NOT FS) on a disk and it continue to show "ext3". How can I get ride of it?
=== procedures=====
# parted /dev/sde GNU Parted 1.8.1 Using /dev/sde Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 120GB 120GB primary 2 120GB 240GB 120GB ext3 primary2
(parted) rm 2 (parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 120GB 120GB
(parted) mkpart prm2 120g 240g (parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 120GB 120GB primary 2 120GB 240GB 120GB ext3 prm2
Hello,
I use fdisk.
fdisk /dev/sde
Hit p to see the list of partitions. Press d to delete a partition. Press n for a new partition.
Hope that helps.
Tommy
On Dec 16, 2010, at 11:12 AM, mcclnx mcc mcclnx@yahoo.com.tw wrote:
we have CENTOS 5.5 on X86. I tried to create a "raw partition" (NOT FS) on a disk and it continue to show "ext3". How can I get ride of it?
=== procedures=====
# parted /dev/sde GNU Parted 1.8.1 Using /dev/sde Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 120GB 120GB primary 2 120GB 240GB 120GB ext3 primary2
(parted) rm 2 (parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 120GB 120GB
(parted) mkpart prm2 120g 240g (parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 120GB 120GB primary 2 120GB 240GB 120GB ext3 prm2
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Sorry . This way NOT work due to disk large than 2TB. That is reason I use "parted" instead of "fdisk".
# fdisk /dev/sde
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
The number of cylinders for this disk is set to 382536. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)
WARNING: The size of this disk is 3.1 TB (3146466197504 bytes). DOS partition table format can not be used on drives for volumes larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID partition table format (GPT).
Command (m for help): p
Disk /dev/sde: 3146.4 GB, 3146466197504 bytes 255 heads, 63 sectors/track, 382536 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sde1 1 267350 2147483647+ ee EFI GPT
--- 10/12/16 (四),Tommy E Craddock Jr tommy@hivelocity.net 寫道:
寄件者: Tommy E Craddock Jr tommy@hivelocity.net 主旨: Re: [CentOS] use parted to create "raw paration"???? 收件者: "CentOS mailing list" centos@centos.org 日期: 2010年12月16日,四,上午11:21 Hello,
I use fdisk.
fdisk /dev/sde
Hit p to see the list of partitions. Press d to delete a partition. Press n for a new partition.
Hope that helps.
Tommy
On Dec 16, 2010, at 11:12 AM, mcclnx mcc mcclnx@yahoo.com.tw wrote:
we have CENTOS 5.5 on X86. I tried to create a
"raw partition" (NOT FS) on a disk and it continue to show "ext3". How can I get ride of it?
=== procedures=====
# parted /dev/sde GNU Parted 1.8.1 Using /dev/sde Welcome to GNU Parted! Type 'help' to view a list of
commands.
(parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End
Size File system Name Flags
1 17.4kB 120GB
120GB primary
2
120GB 240GB 120GB ext3 primary2
(parted) rm 2
(parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End
Size File system Name Flags
1 17.4kB 120GB
120GB
(parted) mkpart prm2 120g 240g
(parted) p
Model: DELL PERC 5/E Adapter (scsi) Disk /dev/sde: 3146GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Number Start End
Size File system Name Flags
1 17.4kB 120GB
120GB primary
2
120GB 240GB 120GB ext3 prm2
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 12/16/2010 09:10 AM, Drew wrote:
fdisk /dev/sde
Hit p to see the list of partitions. Press d to delete a partition. Press n for a new partition.
Or you can just use t to change the filesystem type.
Your disk has a gpt partition on it. Was it previously installed on an Apple Mac computer? You can of coarse use GPT partitions on any computer, but because of the immaturity of the gpt partitioning utilities, they can be more troublesome (though supposedly everyone is moving toward gpt because of support for larger disks). (I wonder if Dells Perc controllers use GPT partitions? - I don't know...)
parted tries to be more intelligent by reading the content on the disk and determining what kind of filesystem is on partition. If you really know what your doing and don't have other existing data on the disk, you could zero out the old partition table and/or the content of existing old partitions and you'll probably have fewer partitioning problems. (You can't use fdisk with GPT partitions).
To zero out just the GPT partition table and first several sectors of the disk, use something like dd if=/dev/zero bs=512 count=8 of /dev/dev/sdX You can also zero out single partitions on the disk, or the beginnings of partitions.
Otherwise leave out the count and zero the whole disk or whole partition.
Nataraj
if disk large than 2TB, "fdisk" will not work correctly.
--- 10/12/16 (四),Drew drew.kay@gmail.com 寫道:
寄件者: Drew drew.kay@gmail.com 主旨: Re: [CentOS] use parted to create "raw paration"???? 收件者: "CentOS mailing list" centos@centos.org 日期: 2010年12月16日,四,下午12:10
fdisk /dev/sde
Hit p to see the list of partitions. Press d to
delete a partition. Press n for a new partition.
Or you can just use t to change the filesystem type.
-- Drew
"Nothing in life is to be feared. It is only to be understood." --Marie Curie _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thursday, December 16, 2010 02:03:23 pm mcclnx mcc wrote:
if disk large than 2TB, "fdisk" will not work correctly.
For GPT, use gdisk as a substitute for fdisk. gdisk 0.6.10 is available for CentOS 4 and 5 in the RPMforge third-party repository. The version in Fedora 14 is 0.6.13, for comparison. Output on my laptop: [root@localhost ~]# gdisk /dev/sda -l GPT fdisk (gdisk) version 0.6.13
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT. Disk /dev/sda: 976773168 sectors, 465.8 GiB Logical sector size: 512 bytes Disk identifier (GUID): 11223344-XXXX-XXXX-XXXX-XXXXAABBCCDD Partition table holds up to 128 entries First usable sector is 34, last usable sector is 976773134 Partitions will be aligned on 8-sector boundaries Total free space is 525717 sectors (256.7 MiB)
Number Start (sector) End (sector) Size Code Name 1 40 409639 200.0 MiB EF00 EFI System Partition333 2 409640 386210423 184.0 GiB AF00 MixBusSL333333333333333 3 386473984 402104319 7.5 GiB 8200 LinuxSwap33333333333333 4 402104320 484024319 39.1 GiB 0700 F14 5 484024320 861511679 180.0 GiB 0700 LinuxHome33333333333333 6 861511680 976510983 54.8 GiB AF00 Interchange333333333333 [root@localhost ~]#
Don't know why the repeated 3s are there.
Thnks.
Can you tell me where is "RPMforge third-party repository"? I search whole CENTOS 5.5 X86 installation DVD and can NOT find it.
--- 10/12/16 (四),Lamar Owen lowen@pari.edu 寫道:
寄件者: Lamar Owen lowen@pari.edu 主旨: Re: [CentOS] use parted to create "raw paration"???? 收件者: "CentOS mailing list" centos@centos.org 日期: 2010年12月16日,四,下午2:20 On Thursday, December 16, 2010 02:03:23 pm mcclnx mcc wrote:
if disk large than 2TB, "fdisk" will not work
correctly.
For GPT, use gdisk as a substitute for fdisk. gdisk 0.6.10 is available for CentOS 4 and 5 in the RPMforge third-party repository. The version in Fedora 14 is 0.6.13, for comparison. Output on my laptop: [root@localhost ~]# gdisk /dev/sda -l GPT fdisk (gdisk) version 0.6.13
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT. Disk /dev/sda: 976773168 sectors, 465.8 GiB Logical sector size: 512 bytes Disk identifier (GUID): 11223344-XXXX-XXXX-XXXX-XXXXAABBCCDD Partition table holds up to 128 entries First usable sector is 34, last usable sector is 976773134 Partitions will be aligned on 8-sector boundaries Total free space is 525717 sectors (256.7 MiB)
Number Start (sector) End (sector) Size Code Name 1 40 409639 200.0 MiB EF00 EFI System Partition333 2 409640 386210423 184.0 GiB AF00 MixBusSL333333333333333 3 386473984 402104319 7.5 GiB 8200 LinuxSwap33333333333333 4 402104320 484024319 39.1 GiB 0700 F14 5 484024320 861511679 180.0 GiB 0700 LinuxHome33333333333333 6 861511680 976510983 54.8 GiB AF00 Interchange333333333333 [root@localhost ~]#
Don't know why the repeated 3s are there. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
mcclnx mcc wrote:
Thnks.
Can you tell me where is "RPMforge third-party repository"? I search whole CENTOS 5.5 X86 installation DVD and can NOT find it.
Do you understand what a repository is? Hint: it's NOT ON A DVD.
mark
--- 10/12/16 (å)ï¼Lamar Owen lowen@pari.edu 寫éï¼
å¯ä»¶è : Lamar Owen lowen@pari.edu 主æ¨: Re: [CentOS] use parted to create "raw paration"???? æ¶ä»¶è : "CentOS mailing list" centos@centos.org æ¥æ: 2010å¹´12æ16æ¥,å,ä¸å2:20 On Thursday, December 16, 2010 02:03:23 pm mcclnx mcc wrote:
if disk large than 2TB, "fdisk" will not work
correctly.
For GPT, use gdisk as a substitute for fdisk. gdisk 0.6.10 is available for CentOS 4 and 5 in the RPMforge third-party repository. The version in Fedora 14 is 0.6.13, for comparison. Output on my laptop: [root@localhost ~]# gdisk /dev/sda -l GPT fdisk (gdisk) version 0.6.13
Partition table scan:  MBR: protective  BSD: not present  APM: not present  GPT: present
Found valid GPT with protective MBR; using GPT. Disk /dev/sda: 976773168 sectors, 465.8 GiB Logical sector size: 512 bytes Disk identifier (GUID): 11223344-XXXX-XXXX-XXXX-XXXXAABBCCDD Partition table holds up to 128 entries First usable sector is 34, last usable sector is 976773134 Partitions will be aligned on 8-sector boundaries Total free space is 525717 sectors (256.7 MiB)
Number Start (sector)  End (sector) Size     Code Name    1       40     409639   200.0 MiB   EF00 EFI System Partition333    2     409640     386210423   184.0 GiB   AF00 MixBusSL333333333333333    3     386473984     402104319   7.5 GiB    8200 LinuxSwap33333333333333    4     402104320     484024319   39.1 GiB  0700 F14    5     484024320     861511679   180.0 GiB   0700 LinuxHome33333333333333    6     861511680     976510983   54.8 GiB  AF00 Interchange333333333333 [root@localhost ~]#
Don't know why the repeated 3s are there. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 12/17/2010 9:48 AM, mcclnx mcc wrote:
Thnks.
Can you tell me where is "RPMforge third-party repository"? I search whole CENTOS 5.5 X86 installation DVD and can NOT find it.
That's because it is "third-party" -- meaning that it is not part of the official CentOS distribution.
You can find the info on it here:
http://rpmrepo.org/RPMforge/Using