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?
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?
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.
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.
Boot back into macOS. Did you convert GPT4 into Free Space? Run the following command only once, otherwise you will lose data.
diskutil eraseVolume free free disk0s4
GParted will not use Untitled since it already has a file system.
I recommend using Using GParted to Resize Your Windows 7 or Vista Partition to merge GPT4 and GPT5. Once merged, we can re-create the MBR and then run startup repair to get Windows up and running.
A 2009 MP does not support EFI Boot of Windows. Can you post the output of
sudo gpt -vv -r show /dev/diskN
sudo fdisk /dev/diskN
where N points to the Windows disk. If you have Testdisk screen showing the output of the 'p' command on the Windows partition, it would be very useful as well.
Are you booted in Local or Internet Recovery?
Can you post the output of diskutil list?
Use only the Rebuild MBR part, since GParted has already set the GPT.
If you are familiar with Bootrec.exe, then Use Bootrec.exe in the Windows RE to troubleshoot startup issues to /rebuildBCD and then try to run startup repair.
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.
Still trying to fix the windows boot camp problem.
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.
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.
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.
The W10 installer disk cannot fix this issue. You will need to use GParted and merge the two parts, and then you can use W10 Startup Repair. What is the year/model of your Mac (do not post the serial number)?
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?
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB
disk0
1: EFI EFI 209.7 MB
disk0s1
2: Apple_HFS Macintosh HD 424.0 GB
disk0s2
3: Apple_Boot Recovery HD 650.0 MB
disk0s3
4: Microsoft Basic Data UNTITLED 165.3 GB
disk0s4
5: Microsoft Basic Data BOOTCAMP 159.7 GB
disk0s5
Sudo command not found