Professional Web Applications Themes

Removing Linux partition from a disk??? - Linux Setup, Configuration & Administration

I went down the wrong path when I installed Linux and I would like to start from scratch again. I attempted to fdisk the disk but fdisk won't let me delete the Linux partition. How can I remove everything from the disk? Thanks, Tom...

  1. #1

    Default Removing Linux partition from a disk???

    I went down the wrong path when I installed Linux and I would like to
    start from scratch again. I attempted to fdisk the disk but fdisk won't
    let me delete the Linux partition. How can I remove everything from the
    disk?

    Thanks,

    Tom

    Tom Guest

  2. #2

    Default Re: Removing Linux partition from a disk???

    Tom wrote: 

    !!!! WARNING !!!!
    !!!! THIS WILL DELETE ALL PARTITIONS !!!!
    !!!! IT WILL WIPE THE DRIVE AND REMOVE ALL DATA !!!!
    !!!! YOU HAVE BEEN WARNED !!!!

    cat /dev/zero >/dev/hdX

    It can take several minutes on larger disks so be patient.

    --
    Confucius: He who play in root, eventually kill tree.
    Registered with The Linux Counter. http://counter.li.org/
    Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
    Uptime: 29 days, 8:09, 1 user, load average: 0.19, 0.14, 0.38
    David Guest

  3. #3

    Default Re: Removing Linux partition from a disk???

    Tom wrote:
     

    .... are you running as root?
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    "I'd love to go out with you, but I never go out on days that
    end in Y.'"

    mjt Guest

  4. #4

    Default Re: Removing Linux partition from a disk???

    Yes, I'm running as root.

    Tom

    mjt wrote: 
    >
    >
    > ... are you running as root?
    > .[/ref]

    Tom Guest

  5. #5

    Default Re: Removing Linux partition from a disk???

    On 11/4/2003 7:56 PM, I believe that Tom wrote:
     

    Um, just let the installer do it if you're gonna be starting from scratch.
    Tim Guest

  6. #6

    Default Re: Removing Linux partition from a disk???

    On 2003-11-05, David <net> wrote:
     [/ref]
     

    There should be no need to zero the entire disk; just the partition table
    and boot record ought to be sufficient:

    dd if=/dev/zero of=/dev/hdX bs=1k count=1

    --

    -John (rr.com)
    John Guest

  7. #7

    Default Re: Removing Linux partition from a disk???

    John Thompson wrote: 

    That doesn't clear the disk though. All that does is zero the MBR
    while leaving the data in place.

    --
    Confucius: He who play in root, eventually kill tree.
    Registered with The Linux Counter. http://counter.li.org/
    Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
    Uptime: 32 days, 9:10, 1 user, load average: 0.06, 0.20, 0.45
    David Guest

  8. #8

    Default Re: Removing Linux partition from a disk???

    On Sat, 08 Nov 2003 03:22:17 GMT,
    David <net> wrote: 
    >
    > That doesn't clear the disk though. All that does is zero the MBR
    > while leaving the data in place.
    >[/ref]
    There really isn't any reason to zero the disk.

    When the installer for an OS creates the partitions it will usually
    suggest a format of the newly created partitions anyway.

    Michael C.
    --
    com http://mcsuper5.freeshell.org/
    Registered Linux User #303915 http://counter.li.org/


    Michael Guest

Similar Threads

  1. Copy WinXP partition to new disk using Linux
    By john in forum Linux Setup, Configuration & Administration
    Replies: 5
    Last Post: October 31st, 08:53 PM
  2. Partition question (dual boot): DISK GRUID
    By David in forum Linux Setup, Configuration & Administration
    Replies: 6
    Last Post: October 27th, 08:27 PM
  3. partition hard disk
    By cljlk in forum Sun Solaris
    Replies: 2
    Last Post: August 14th, 09:29 AM
  4. how to know the size of a raw disk partition ?
    By Fletcher Glenn in forum UNIX Programming
    Replies: 2
    Last Post: August 11th, 12:41 PM
  5. Disk Partition
    By S Hebbar in forum Windows XP/2000/ME
    Replies: 3
    Last Post: July 15th, 01:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139