Jump to content

sudo: command not found


7 posts in this topic

Recommended Posts



I am trying to fix my boot, following these steps (all executed in the Terminal without Leopard, not in the installation disc's Terminal):


Type "sudo -s"

Entering password..


Type "sudo fdisk -e /dev/rdisk0" (I have only one Hard disk drive)


Type "update" (Machine code updates..)


Type "f 2" (Partition 2 marked active..)


Type "w"


Type "y" (For confirming the "w" command..)


Type "q"


So far so good.


Type "diskutil unmount /volumes/NO NAME" ("NO NAME"- Leopard partition's name)


Type "sudo dd if=/usr/standalone/i386/boot1h of=/dev/rdisk0s2 bs=512 count=1" ("rdisk0s2"- Leopard partition's identifier)


Everything went good until now.. and here's the command that I can't execute:


"sudo startupfiletool /dev/rdisk0s2 /usr/standalone/i386/boot"


The error I get: "sudo: startupfiletool: command not found".


That's it, I can't go on.


Note: All these commands were executed within Leopard, not in the installation disc's Terminal)


When trying to execute the above commands within Leopard installation disc's Terminal, I get this error, when trying to get Superuser privileges:


"sudo: command not found".

Link to comment
Share on other sites

Thanks for your replies. :(


Does all these commands I'm trying to execute will be good for setting a dual-boot with XP?


Cuase that's what I'm trying to do..





I fixed the boot problem, and now it boots into Leopard without the Leopard DVD!


Now I need to set the multi-boot thing, and I'm ready to install EFI v8. :P


Thanks for your help, guys.

Link to comment
Share on other sites

the executable "startupfiletool" must be available system wide (it's not in your case, obviously) in order for it to work like that.

CD into the exact location of startupfiletool and type this:

sudo ./startupfiletool /dev/rdisk0s2 /usr/standalone/i386/boot

If you don't want to dive into the directory you can also use this:

sudo /path_to_file/startupfiletool /dev/rdisk0s2 /usr/standalone/i386/boot

path_to_file being the directory containing the file.





Link to comment
Share on other sites

I’ve finished setting the multi-boot, but when I try to load Windows (after choosing the Windows partition from the bootloader), windows loads, and it says “Logging off”, instead of “Logging in”, and then the screen will start blinking with Windows changes what’s write in that logging window..


It switches any second from “Logging in” to “Logging out” to “Saving your settings”, and it never stops, so I can only boot into Leopard.

Link to comment
Share on other sites


  • Create New...