You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Unable to Delete Ubuntu Partition on Mac Studio (2022)

I’m experiencing an issue with my Apple Mac Studio (2022, M1 Max) related to dual partitions on the internal drive. The hard drive is split into two partitions: one for macOS and the other for Ubuntu.

Here are the challenges I’m facing:

  • I cannot access or boot into the Ubuntu partition.
  • In macOS, the Ubuntu partition does not appear, even when I select "Show All Devices" in Disk Utility.
  • In recovery mode, I’ve tried erasing the entire drive and reloading macOS, but the dual partition persists every time.
  • When I attempt to partition the drive in Disk Utility, the option to delete the Ubuntu partition is unavailable.

This device was handed down to me, and the previous owner faced similar issues after the employee who initially set it up left the company.

I’d greatly appreciate any advice on how to completely remove the Ubuntu partition and merge it with the macOS partition to restore full storage capacity. Please excuse the camera images I’ve included—I found it easier than taking screenshots from within the OS.

Thanks in advance for the help!

Mac Studio, macOS 15.2

Posted on Dec 18, 2024 7:32 PM

Reply
8 replies

Dec 19, 2024 11:33 AM in response to bhillman90

I can't quote from your posting without re-capturing a screenshot of your screenshot. A copy of the text, rather that a picture of the text, would have been more helpful.


disk0s3 is is not inside the Container-disk, so it should be re-sizaeble or removable.


"The preceding volume" referenced is that 2.1GB Linux volume. Can it be resized downward or removed?

Dec 19, 2024 2:01 PM in response to bhillman90

Yes, that is the correct diskutil command to use to delete these partitions.


Assuming the next goal is to expand the existing partition disk0s2 (which would be the primary partition) into the free space that you just created, you would use a command like: diskutil resizeVolume disk0s2 0


Note: The 0 at the end tells macOS to expand the partition to use all available free space.


Regardless, always be very careful when using these commands ... unless you don't care about anything on the Mac's drive.

Dec 19, 2024 11:48 AM in response to Grant Bennet-Alder

Hi Grant,


Apologies for the screen grab, here is a copy of the text. I will work on confirming if I can resize or remove the Linux volume, but IIRC I was not able to do so from the Disk Utility last time I tried. Will follow up shortly.


-bash-3.2# diskutil list


/dev/disk0 (internal, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *500.3 GB   disk0


   1:             Apple_APFS_ISC Container disk1         524.3 MB   disk0s1


   2:                 Apple_APFS Container disk3         200.8 GB   disk0s2


   3:           Linux Filesystem                         2.1 GB     disk0s3


   4:           Linux Filesystem                         291.5 GB   disk0s4


   5:        Apple_APFS_Recovery Container disk2         5.4 GB     disk0s5




/dev/disk3 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +200.8 GB   disk3


                                 Physical Store disk0s2


   1:                APFS Volume Macintosh HD            36.9 KB    disk3s1




/dev/disk4 (disk image):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        +2.2 GB     disk4


   1:                 Apple_APFS Container disk5         2.2 GB     disk4s1




/dev/disk5 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +2.2 GB     disk5


                                 Physical Store disk4s1


   1:                APFS Volume macOS Base System       2.1 GB     disk5s1




/dev/disk6 (external, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *62.0 GB    disk6


   1:                        EFI EFI                     209.7 MB   disk6s1


   2:                 Apple_APFS Container disk7         61.7 GB    disk6s2




/dev/disk7 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +61.7 GB    disk7


                                 Physical Store disk6s2


   1:                APFS Volume ESD-USB                 8.1 GB     disk7s2




-bash-3.2# 



































Dec 19, 2024 12:04 PM in response to Grant Bennet-Alder

The command through terminal was successful in deleting the volumes:


-bash-3.2# diskutil eraseVolume free free disk0s3


Started erase on disk0s3


Unmounting disk



Updated diskutil list:



-bash-3.2# diskutil list


/dev/disk0 (internal, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *500.3 GB   disk0


   1:             Apple_APFS_ISC Container disk1         524.3 MB   disk0s1


   2:                 Apple_APFS Container disk3         200.8 GB   disk0s2


                    (free space)                         293.6 GB   -


   3:        Apple_APFS_Recovery Container disk2         5.4 GB     disk0s5




/dev/disk3 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +200.8 GB   disk3


                                 Physical Store disk0s2


   1:                APFS Volume Macintosh HD            36.9 KB    disk3s1




/dev/disk4 (disk image):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        +2.2 GB     disk4


   1:                 Apple_APFS Container disk5         2.2 GB     disk4s1




/dev/disk5 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +2.2 GB     disk5


                                 Physical Store disk4s1


   1:                APFS Volume macOS Base System       2.1 GB     disk5s1




/dev/disk6 (external, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *62.0 GB    disk6


   1:                        EFI EFI                     209.7 MB   disk6s1


   2:                 Apple_APFS Container disk7         61.7 GB    disk6s2




/dev/disk7 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +61.7 GB    disk7


                                 Physical Store disk6s2


   1:                APFS Volume ESD-USB                 8.1 GB     disk7s2

Finished erase on disk0


-bash-3.2# diskutil eraseVolume free free disk0s4


Started erase on disk0s4


Unmounting disk


Finished erase on disk0


-bash-3.2# 

Dec 19, 2024 2:45 PM in response to Tesserax

I am wiping the device, so the contents of drive are unimportant.


I was able to complete the suggestion using a slightly different command, but here are my results:


-bash-3.2# diskutil list

/dev/disk0 (internal, physical):

   #:             TYPE NAME           SIZE     IDENTIFIER

   0:    GUID_partition_scheme             *500.3 GB   disk0

   1:        Apple_APFS_ISC Container disk1      524.3 MB   disk0s1

   2:          Apple_APFS Container disk3      494.4 GB   disk0s2

   3:     Apple_APFS_Recovery Container disk2      5.4 GB    disk0s5


/dev/disk3 (synthesized):

   #:             TYPE NAME           SIZE     IDENTIFIER

   0:    APFS Container Scheme -            +494.4 GB   disk3

                  Physical Store disk0s2

   1:         APFS Volume Macintosh HD       28.7 KB   disk3s1


/dev/disk4 (disk image):

   #:             TYPE NAME           SIZE     IDENTIFIER

   0:    GUID_partition_scheme             +2.2 GB    disk4

   1:          Apple_APFS Container disk5      2.2 GB    disk4s1


/dev/disk5 (synthesized):

   #:             TYPE NAME           SIZE     IDENTIFIER

   0:    APFS Container Scheme -            +2.2 GB    disk5

                  Physical Store disk4s1

   1:         APFS Volume macOS Base System     2.1 GB    disk5s1

Unable to Delete Ubuntu Partition on Mac Studio (2022)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.