Results 1 to 3 of 3

Thread: gparted not wiping partitions

  1. #1
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Beans
    213
    Distro
    Ubuntu 16.04 Xenial Xerus

    gparted not wiping partitions

    I've made a mistake when partitioning a new disk and wanted to just start from scratch.

    Thought I just delete all partitiones and create new ones.

    Unfortunately, when I hit one particular partition, I always get an error that that device is busy (even though I deleted all partitions and rebooted before).

    That particulat partition has a label and I don't understand that when I boot off the live cd, delete all partitions on that disk, create the partitons I want, when I get to the partion in questions, it creates it with the same label.

    So it looks that some partition info is not being wiped when deleting the partition.

    How can I fix this

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,561
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: gparted not wiping partitions

    If you have an existing swap partition on the disk, the live session mounts it so that it can work faster. You need to unmount it in Gparted first so you can delete it. You can do that by right-click, Swapoff.

    The partitions that can't be deleted in Gparted are shown with a keys symbol next to them. If this symbol is shown, you can't delete it and you need to look why the live session is using this partition.

    Another way is to use terminal and not Gparted, especially if you want to delete all partitions and start from a blank partition table. Simply use parted and the correct disk label (in this example /dev/sda):
    Code:
    sudo parted /dev/sda
    mklabel msdos
    quit
    That will create new blank msdos table on /dev/sda. If you need gpt table use mklabel gpt instead of msdos.

    You might or might not need a reboot after that, depending if any partition was in use.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Beans
    213
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: gparted not wiping partitions

    will give your suggestion a try, but have repartitioned the disk as something other than msdos before, rebooted, repartitioned as msdos and when I get to partion number 5 (i have a primary, an extended, and the first logical, which seems to get me to /dev/sdd5) I still get the old label. In addtion, I cannot get rid of this label.

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
  •