Ubuntu partitions won't go away.

Discussion in 'Windows, Linux & Others on the Mac' started by becauseoftacos, Jun 20, 2013.

  1. becauseoftacos macrumors newbie

    Joined:
    Apr 30, 2013
    Location:
    Western Australia
    #1
    So, a long time ago, I decided to put ubuntu on my mac, but I have a problem.

    Some partitions won't go away!

    Picture:

    [​IMG]

    Partions that won't go away:
    UBUNTU
    disk0s6
    disk0s7
    disk0s8

    I'm probably doing something wrong.

    Can someone help me?

    -becauseoftacos

    P.S: I want to use Boot Camp.
     
  2. alex0002 macrumors 6502

    Joined:
    Jun 19, 2013
    Location:
    New Zealand
    #2
    What sort of Mac do you have and what does Disk Utility or diskutil show?
    For example in my MacBook Pro late 2011 with Lion, open terminal and use diskutil to list partitions.

    Code:
    $ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            499.2 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

    Of course, it goes without saying that you should have good backups before you start messing around with partitions.

    Do you have something similar to what I posted above, and these extra partitions are all after disk0s3?
    Have you tried removing them with Disk Utility?
     
  3. becauseoftacos, Jun 21, 2013
    Last edited: Jun 21, 2013

    becauseoftacos thread starter macrumors newbie

    Joined:
    Apr 30, 2013
    Location:
    Western Australia
    #3
    This is what comes up:

    Code:
     #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *750.2 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS                         619.2 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
       4:                  Apple_HFS Recovery HD             650.0 MB   disk0s4
       5:                  Apple_HFS UBUNTU                  64.6 GB    disk0s5
       6: 21686148-6449-6E6F-744E-656564454649               1.0 MB     disk0s6
       7:       Microsoft Basic Data                         60.5 GB    disk0s7
       8:                 Linux Swap                         4.2 GB     disk0s8
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS SpartaMan222 HD        *619.2 GB   disk1 [CODE]
    
    and yes. I have tried deleting it with disk utility, but the option seems to be blanked out.[COLOR="#808080"]
    
    ----------
    
    [/COLOR][quote="alex0002, post: 17464412"]What sort of Mac do you have and what does Disk Utility or diskutil show?
    For example in my MacBook Pro late 2011 with Lion, open terminal and use diskutil to list partitions.
    
    [CODE]$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            499.2 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

    Of course, it goes without saying that you should have good backups before you start messing around with partitions.

    Do you have something similar to what I posted above, and these extra partitions are all after disk0s3?
    Have you tried removing them with Disk Utility?[/QUOTE]

    Oh, and I forgot, I have a Macbook Pro, 13", Late 2011, running ML
     
  4. becauseoftacos thread starter macrumors newbie

    Joined:
    Apr 30, 2013
    Location:
    Western Australia
    #4
    Oops, I did the wrong thing to erase the partition in disk utility, but now i've figured it out:

    It says: unrecognised file system
     
  5. alex0002 macrumors 6502

    Joined:
    Jun 19, 2013
    Location:
    New Zealand
    #5
    Did you sort it out?

    Here I did an experiment and added some extra volumes. In this case, disk0s4 and disk0s5 were added using diskutil in the terminal, while disk0s6 to disk0s8 are Linux partitions added using gparted-live.

    Code:
    $ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            480.0 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
       4:                  Apple_HFS newVolume               8.0 GB     disk0s4
       5:       Microsoft Basic Data FAT32VOL                2.1 GB     disk0s5
       6:       Microsoft Basic Data                         4.3 GB     disk0s6
       7:       Microsoft Basic Data                         4.2 GB     disk0s7
       8:       Microsoft Basic Data                         421.5 MB   disk0s8
    Then start Disk Utility and on the left hand side, select the whole disk - not the individual volumes.
    Then select "Partition" - you should be able to select the "-" symbol and delete all the extra ones.

    Now I have just the following…

    Code:
    $ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            480.0 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
       4:                  Apple_HFS newVolume               8.0 GB     disk0s4
    I will most likely delete disk0s4 too, as I don't really need it.

    By the way, you appear to have two Recovery partitions - is there any particular reason? Perhaps you have one for Lion (if you Mac came with Lion) and another for Mountain Lion? You might not need both and I could be wrong on this, but already having four partitions could be a problem later if you want to add Windows via Bootcamp.
     
  6. becauseoftacos thread starter macrumors newbie

    Joined:
    Apr 30, 2013
    Location:
    Western Australia
    #6
    Nope, didn't work

    So, I went to Disk Utility and did this:

    1. Went to 750.16 GB TOSHIBA [Whole bunch of letters and numbers] Media
    2. Clicked on Partition tab
    3. Clicked on UBUNTU
    4. Clicked the minus
    5. Clicked remove
    6. Error came up: 'Partition failed with the error: Unrecognised file system'
    7. Panic

    So what do I do?

    ----------

    Yeah, I do need to use bootcamp. :)
     
  7. alex0002 macrumors 6502

    Joined:
    Jun 19, 2013
    Location:
    New Zealand
    #7
    I'm not sure what's happening there. Can you delete just partition disk0s8 without problems, or none of them, regardless of which order you attempt to remove them?

    When I did the test above, I removed the partitions in reverse order to the order I created them, but I don't know if that would have any impact. I know that diskutil doesn't appear to allow you to resize non Mac partitions, but in my case I was able to delete them. If it was mine, I would boot with something like gparted-live and use that to remove the UBUNTU partition.
     
  8. Stooby Mcdoobie macrumors 6502a

    Stooby Mcdoobie

    Joined:
    Jun 26, 2012
    #8
    Was going to suggest this. You should be able to delete the Ubuntu partition with GParted and reclaim the unallocated space in Disk Utility.
     
  9. becauseoftacos thread starter macrumors newbie

    Joined:
    Apr 30, 2013
    Location:
    Western Australia
    #9
    IT WORKED! I managed to figure out gparted, but now when I start boot camp it says:
    The startup disk doesn't have enough space to be partitoned. You must have at least 10gb of free space available.

    I have 400gb though...

    I'm going to post a new thread for this though.

    Anyway, I'd like to thank everyone for helping me!

    -becauseoftacos
     

Share This Page