Sudo command not found

I have mavericks a trying to follow steps in this thread, but it says command not found when I use sudo.


Repairing Boot Camp after creating new partition


Any ideas?

Posted on Mar 31, 2018 5:14 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 31, 2018 8:10 AM

jamjumpin wrote:



If I boot into osx I can still see all my files on Windows and the untitled fat 32 drive is still there which is the one I was hoping to merge with boot camp.

Resizing or modifying partitions after Windows is installed is not supported. If you are trying to reduce partition size in macOS and add it to Windows, you have a 2012 or older Mac, and the MBR and GPT no longer agree causing the 'no boot disk' issue.


jamjumpin wrote:


Sudo works fine within osx but not in recovery. Terminal also says bash in recovery instead of my computer name if that is an issue.

In Recovery (Local or Internet), you are already root, so sudo is neither required nor supported.

Similar questions

35 replies
Question marked as Top-ranking reply

Mar 31, 2018 8:10 AM in response to jamjumpin

jamjumpin wrote:



If I boot into osx I can still see all my files on Windows and the untitled fat 32 drive is still there which is the one I was hoping to merge with boot camp.

Resizing or modifying partitions after Windows is installed is not supported. If you are trying to reduce partition size in macOS and add it to Windows, you have a 2012 or older Mac, and the MBR and GPT no longer agree causing the 'no boot disk' issue.


jamjumpin wrote:


Sudo works fine within osx but not in recovery. Terminal also says bash in recovery instead of my computer name if that is an issue.

In Recovery (Local or Internet), you are already root, so sudo is neither required nor supported.

Mar 31, 2018 7:40 AM in response to Loner T

Local.


Windows shows if I hold alt, but when booting it says there's no boot disk, insert disk to continue.


If I boot into osx I can still see all my files on Windows and the untitled fat 32 drive is still there which is the one I was hoping to merge with boot camp.


If it helps I also have a second drive with a second copy of osx on it which also works fine.


Sudo works fine within osx but not in recovery. Terminal also says bash in recovery instead of my computer name if that is an issue.

Mar 31, 2018 8:10 AM in response to jamjumpin

jamjumpin wrote:


I decreased the OSX partition to create a third partition that I intend to merge with Windows.


I've managed to use Tuxera to format the extra partition as NTFS.


When I restart and try to boot into Windows I get this message:


BOOTMGR is missing

Press ctrl alt del to restart.

This is normal and expected behavior. See Bootcamp Partition Missing after Resize if you want to do this properly and correctly.

Mar 31, 2018 8:15 AM in response to Loner T

Thank you, none of the guides I read before starting this mentioned that my windows would become unbootable. I thought I'd just be able to log in to Windows and merge the two. Then when I couldn't, I find all this on the forums.


Can using a Windows 10 install disk fix the issue or do I have to use that GPT? It looks like it's very easy to mess it all up as I don't really understand any of it.


Thanks again for your help.

Mar 31, 2018 11:33 AM in response to Loner T

sudo gpt -vv -r show /dev/diskN -

gpt show: /dev/disk0s5: mediasize=159659077632; sectorsize=512; blocks=311834136

gpt show: /dev/disk0s5: MBR at sector 0

gpt show: unable to open device '/dev/disk0s5': Undefined error: 0

==========================================================

sudo fdisk /dev/disk0s5

Disk: /dev/disk0s5 geometry: 19410/255/63 [311834136 sectors]

Signature: 0xAA55

Starting Ending

#: id
cyl
hd sec -
cyl
hd sec [ start - size]

------------------------------------------------------------------------

1: 72
80
13
10 -
371 101
51 [1920221984 - 1816210284] <Unknown ID>

2: 6C
357
43
4 -
367
32
52 [1936028192 - 1953653108] <Unknown ID>

3: 00 0
0
0 - 0
0
0 [ 0 - 0] unused

4: 00 0
0
0 - 0
0
0 [ 0 - 0] unused

=====================================================


Unfortunately my screenshot only shows the first page because I didn't realise you could expand the window at this point, do I need to provide the entire list of files?


User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sudo command not found

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