Lỗi could not locate the macos boot volume

Đối với anh em nào xài macOS từ High Sierra trở lên (dùng APFS) và có xài Windows qua Boot Camp, đều gặp một rắc rối chung là từ macOS có thể khởi động qua Windows nhưng từ Windows không thể khởi động ngược lại macOS bằng Boot Camp Control Panel.

Từ giao diện của Windows, anh em nếu đang xài Boot Camp Software bản cũ sẽ để ý, menu chuột phải khi bấm vào Boot Camp Control Panel có một dòng ghi là "Restart in OS X" ("OS X" là cách ghi tên cũ, mới hiện nay phải là "macOS") và nếu bấm vào đó nó sẽ hiện thông báo lỗi "Could not locate the OS X boot volume". Nguyên nhân là dù APFS đã ra đời gần 2 năm, nhưng Boot Camp Software trên Windows vẫn chưa được cập nhật để hiểu được cấu trúc của APFS. Anh em nếu đang ở Windows chỉ có thể khởi động qua macOS bằng cách bấm Option lúc khởi động và chọn phân vùng.

Hiện nay đã có bản cập nhật cho Boot Camp Software trên Windows. Từ giao diện của Windows, anh em mở "Apple Software Update" và đợi nó kiểm tra, sẽ thấy 2 bản cập nhật cho Boot Camp Software với phiên bản 6.1.9 và 6.1.10. Anh em cho nó cập nhật và khởi động lại Windows.

Lỗi could not locate the macos boot volume

Sau khi khởi động vào Windows trở lại, anh em bấm chuột phải vào biểu tượng của Boot Camp Control Panel sẽ thấy một mục với tên mới "Restart in macOS" (không còn gọi là "OS X" nữa).

Lỗi could not locate the macos boot volume

Bấm vào đó anh em sẽ được đưa thẳng về macOS ngon lành, giống như trước kia khi vẫn còn xài HFS+ vậy!

Trong giao diện của Boot Camp Control Panel sẽ thấy hiện phân vùng APFS chứa macOS:

Lỗi could not locate the macos boot volume

Dĩ nhiên, từ macOS anh em vẫn có thể khởi động vào Windows một cách bình thường như trước đây vẫn làm (mục Startup Disk). Lưu ý anh em nào xài Paragon NTFS for Mac hoặc Tuxera NTFS thì phải tạm disable phần mềm này đi, để macOS sử dụng driver NTFS mặc định của nó mới thấy được phân vùng Windows

In my Macbook pro (2016 touch bar), previously I installed Windows 10 and upgraded to creators version. In Windows session, in the bootcamp "Restart in macOS..." option is returning "Could not locate the macOS boot volume." error.

When I ran the gdisk tool (based on this thread answer) to list the partition details, I see my mac partition (

2) has FFFF code (seems to be unknown)

c:\Temp>gdisk64.exe
GPT fdisk (gdisk) version 1.0.3
Type device filename, or press <Enter> to exit: 0:
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk 0:: 122138133 sectors, 465.9 GiB
Sector size (logical): 4096 bytes
Disk identifier (GUID): 67089514-C692-4DF1-8679-633BDE4D77E6
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 5
First usable sector is 6, last usable sector is 122138127
Partitions will be aligned on 2-sector boundaries
Total free space is 2112456 sectors (8.1 GiB)
Number  Start (sector)    End (sector)  Size       Code  Name
   1               6           76805   300.0 MiB   EF00  EFI System Partition
   2           76806        58758145   223.9 GiB   FFFF  NoName
   3        60870144       121919301   232.9 GiB   0700  BOOTCAMP
   4       121919488       122137855   853.0 MiB   2700

Any help to boot into macOS?

asked Nov 13, 2017 at 0:32

You can still boot the macOS partition right? You can hold down Alt/Option upon startup and it will give you a list of bootable volumes. Choose Macintosh HD (or your macOS partition) to boot it. Once you're done, you may wish to change the default boot to macOS in System Preferences -> Startup Disk. To boot your Windows partition again, hold Alt/Option upon startup and choose BOOTCAMP (your Windows partition).

If you have any other Bootcamp questions, let me know. Cheers

answered Nov 13, 2017 at 0:46

Lỗi could not locate the macos boot volume

TPNxlTPNxl

861 bronze badge

0

According to Apple, you are not suppose to use the APFS with the Boot Camp Assistant application. However, if you do so, then the following will fix the problem you are having.

Since the Windows Boot Camp software can detect bootable "Mac OS Extended (Journaled)" volumes, the follow instructions create such a volume. Instead of placing macOS in the volume, a third party boot manager, called rEFInd, will be substituted. This boot manager will then be configured to silently boot the macOS stored in the APFS container. Finally, macOS will be instructed to not automatically mount this new volume at startup.

Below are the steps. The commands need to be entered into a Terminal application window.

Note: You will have to replace "Macintosh HD" with the the name of your macOS volume.
  1. Create the new volume. The diskutil command, shown below, shrinks the APFS container by 300 MB and creates the new 200 MB "Mac OS Extended (Journaled)" volume labeled "Macintosh HD via rEFInd".

    sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

    After the command completes, restart the Mac.
  2. Download the rEFInd Boot Manager software from this SourceForge web site. Enter the following commands to install the software to the "Macintosh HD via rEFInd" volume.

    cd ~/Downloads/refind-bin-0.11.2 ./refind-install --ownhfs /dev/disk0s3

    Note: The error message

sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

0 was expected and can be ignored.

  1. Configure the TextEdit application. Open TextEdit, then navigate to the "Preferences..." window. Uncheck all the "Options", as shown below. When finished, quit TextEdit.
    Lỗi could not locate the macos boot volume
  2. Use the command below to navigate to the folder containing the

    sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

    1 file.

    cd "/Volumes/Macintosh HD via rEFInd/System/Library/CoreServices"

    Make a backup copy of this file.

    sudo cp refind.conf refind.conf.orignal

    Add write permissions to the

    sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

    2 folder and the

    sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

    1 file.

    sudo chmod a+w . refind.conf

    Open the file in the TextEdit application.

    open -e refind.conf

  3. Add the following lines to the end of the

    sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

    1 file. You should be able to just cut and paste these lines. When finished, save the changes, then quit TextEdit.

    Added to make rEFInd silent.

    menuentry "Macintosh HD via rEFInd" {

    icon \System\Library\CoreServices\icons\os_mac.png  
    volume "Macintosh HD"  
    loader \System\Library\CoreServices\boot.efi  
    ostype MacOS  
    graphics on  
    
    } timeout -1 hideui all scanfor manual

  4. Enter the following commands to modify the

    sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

    5 file. This entry will instruct macOS not to mount the volume labeled "Macintosh HD via rEFInd" at startup. Note: The character sequence

sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

6 is just the octal representation of the space character.

sudo bash echo >>/etc/fstab echo "LABEL=Macintosh\040HD\040via\040rEFInd none hfs rw,noauto" >>/etc/fstab exit

Note: The correct way, to edit the

sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

5 file, is to use the command

sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

8. Using the

sudo diskutil ap resizeContainer disk1 223600M JHFS+ "Macintosh HD via rEFInd" 200M

9 command is just a quick shortcut. When finished, restart the Mac.

Now when choosing Boot Camp from the Control Panel, you should get something similar to what is shown below.

Lỗi could not locate the macos boot volume

answered Dec 14, 2017 at 20:23

Lỗi could not locate the macos boot volume

David AndersonDavid Anderson

8851 gold badge9 silver badges13 bronze badges

This is because of High Sierra's new APFS (Apple File System) on Apple PCIe-based solid state drives, as well as 2.5" solid state drives on older Macs such as a 2012, like the one I have.

Windows 10 Boot Camp control panel doesn't recognize that file system yet, so you have to reboot and hold down the Option key to toggle which one you want to boot into.

If you set your Mac as the startup disk on the Mac side of things and simply reboot Windows, it will always boot back into Mac OS. Then if you want to go to Windows, just reboot the Mac Parson and hold the option key down and select Windows to get back into Windows.

When you're done in Windows, you won't have to hold the option key again since you've already selected Mac as the default startup disk on the Mac, and so just say Start Menu->Power->Restart, and it will boot into Mac automatically.