Hi,
My main OSX partition seems to be fried - gets stuck in endless rainbow wheel. Have tried disk repair, safe mode login, and several OSX reinstalls to no avail. My Windows partition seems to be working fine so I think the hard drive is physically ok.
I can access documents via terminal from Recovery mode so I've copied documents I want to an external drive and am currently trying to create an El Capitan Bootable Installer using terminal then wipe the partition clean, but am having trouble with the former.
First issue was I could not execute nor locate the sudo command, but then I realized that my PATH was set at "/usr/bin" while my sudo now resides in "/volumes/macintosh hd/usr/bin". So I $PATH'ed the correct directories and could now execute sudo... but sudo now cannot find /etc/sudoers ("no such file or directory; no valid sudoers sources found"), presumably because my sudoers is also in "/volumes/macintosh hd/etc/sudoers".
Question is can I somehow trick the whole system so that these binaries execute with the prefix "/volumes/macintosh hd/", not only when I execute them but when they execute each other? Better yet, is there a more straightforward way of achieving the above, i.e. creating the Bootable Installer? I can always give up and create the installer on another computer, but I would really like to solve it somehow internally if possible. Any help would be much appreciated.
My main OSX partition seems to be fried - gets stuck in endless rainbow wheel. Have tried disk repair, safe mode login, and several OSX reinstalls to no avail. My Windows partition seems to be working fine so I think the hard drive is physically ok.
I can access documents via terminal from Recovery mode so I've copied documents I want to an external drive and am currently trying to create an El Capitan Bootable Installer using terminal then wipe the partition clean, but am having trouble with the former.
First issue was I could not execute nor locate the sudo command, but then I realized that my PATH was set at "/usr/bin" while my sudo now resides in "/volumes/macintosh hd/usr/bin". So I $PATH'ed the correct directories and could now execute sudo... but sudo now cannot find /etc/sudoers ("no such file or directory; no valid sudoers sources found"), presumably because my sudoers is also in "/volumes/macintosh hd/etc/sudoers".
Question is can I somehow trick the whole system so that these binaries execute with the prefix "/volumes/macintosh hd/", not only when I execute them but when they execute each other? Better yet, is there a more straightforward way of achieving the above, i.e. creating the Bootable Installer? I can always give up and create the installer on another computer, but I would really like to solve it somehow internally if possible. Any help would be much appreciated.