Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Mac Desktops > Whoops - need bigtime help...

Whoops - need bigtime help...
Thread Tools
Sebastian
Forum Regular
Join Date: Jul 2000
Status: Offline
Reply With Quote
May 10, 2005, 08:21 PM
 
I was trying to fix a problem with background connections with a specific app, and the online help i was finding suggested i command click-drag the hostsconfig file in my /etc/ folder to the desktop, rename it, do a few other things... yadda yadda - a little while later i dragged that file into the trash and rebooted, only to find myself presented with a black screen and a text prompt reading: localhost:/root

luckily, i'd installed a bootable system on an external drive (which I'm booted from now), but unluckily, i'm not adept enough to know how to get my 'real' bootable drive back in shape (yup, completely my fault, i'm an idiot. i tend to learn by doing...)

When i boot from that external drive, my trash is empty. Is there anyway to get that file out of the trash back to the original system location? How?

Hopin' someone can help..

-Seb
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
May 10, 2005, 08:28 PM
 
Try just copying the /etc/hostconfig file from your spare drive. It should work fine.
     
Sebastian  (op)
Forum Regular
Join Date: Jul 2000
Status: Offline
Reply With Quote
May 10, 2005, 08:34 PM
 
copy it to where? I'm having a hard time getting to the /etc/ file on my original HD..if i open the original HD, then menu go to /etc/ and verify the path, i'm at the etc folder, but it's on the external volume...
     
reader50
Administrator
Join Date: Jun 2000
Location: California
Status: Offline
Reply With Quote
May 11, 2005, 12:36 AM
 
Following an alias to a location when booted from a different drive has sometimes sent me to the equivalent folder on the boot drive rather than the intended location. This is happening to you because the root link to /etc/ is actually an alias. The real location is /private/etc/ on each drive.

The private folder is normally invisible. If you make all files visible with TinkerTool, then open a Finder window in column view and follow the paths. You will reach the real etc on each drive.

If you have not made all files visible, you can still reach the folders this way:
Finder Menubar -> Go -> Go to Folder... (keyboard equivalent is Shift-Cmnd-G)

To reach each folder, type one of these paths into the dialog:
/private/etc/ (for the boot drive)
/Volumes/OtherDriveName/private/etc/ (to reach etc on a non-boot drive)
     
Sebastian  (op)
Forum Regular
Join Date: Jul 2000
Status: Offline
Reply With Quote
May 11, 2005, 06:39 AM
 
you guys rock. thanks. chalk a lesson learned up to experience, perhaps it's time i start rtfm...

thanks
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:20 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,