How to use fdisk to wipe all partitions on x86 box - Solaris

This is a discussion on How to use fdisk to wipe all partitions on x86 box - Solaris ; Hello Is there a way to wipe the entire disk using fdisk on a x86 box (specifically an X41000)? The format command looks like this: AVAILABLE DISK SELECTIONS: 0. c0t2d0 /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0 1. c0t3d0 /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0 Specify disk (enter its number): 0 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How to use fdisk to wipe all partitions on x86 box

  1. How to use fdisk to wipe all partitions on x86 box

    Hello

    Is there a way to wipe the entire disk using fdisk on a x86 box
    (specifically an X41000)?
    The format command looks like this:

    AVAILABLE DISK SELECTIONS:
    0. c0t2d0
    /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
    1. c0t3d0
    /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0

    Specify disk (enter its number): 0
    selecting c0t2d0
    [disk formatted]
    Disk not labeled. Label it now? y
    Warning: error setting drive geometry.
    Warning: error writing VTOC.
    Warning: no backup labels
    Write label failed

    format> p
    Please run fdisk first.

    Thanks in advance.

    S9k


  2. Re: How to use fdisk to wipe all partitions on x86 box

    Thanks for the info.

    Is there a way to do it via a script?

    Thanks in advance.


    Andrew Gabriel wrote:

    > In article <1149251633.797088.51730@h76g2000cwa.googlegroups.c om>,
    > solaris9000@gmail.com writes:
    > > Hello
    > >
    > > Is there a way to wipe the entire disk using fdisk on a x86 box
    > > (specifically an X41000)?
    > > The format command looks like this:
    > >
    > > AVAILABLE DISK SELECTIONS:
    > > 0. c0t2d0
    > > /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
    > > 1. c0t3d0
    > > /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0
    > >
    > > Specify disk (enter its number): 0
    > > selecting c0t2d0
    > > [disk formatted]
    > > Disk not labeled. Label it now? y
    > > Warning: error setting drive geometry.
    > > Warning: error writing VTOC.
    > > Warning: no backup labels
    > > Write label failed
    > >
    > > format> p
    > > Please run fdisk first.

    >
    > Well, it just told you how you do it, either using the fdisk subcommand
    > in format(1M), or the fdisk(1M) command itself.
    >
    > --
    > Andrew Gabriel



  3. Re: How to use fdisk to wipe all partitions on x86 box

    solaris9000@gmail.com wrote:
    > Thanks for the info.
    >
    > Is there a way to do it via a script?
    >

    Please don't top post.

    >>>Is there a way to wipe the entire disk using fdisk on a x86 box
    >>>(specifically an X41000)?


    See the fdisk man page, it answers your question, look for the second
    mode of operation.

    --
    Ian Collins.

+ Reply to Thread