New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

Ethernet/internet not working after delete of home directory


Post Reply New Thread Subscribe

 
Thread Tools
MLJRG

 
Member Since: Feb 01, 2010
Posts: 5
MLJRG is on a distinguished road

MLJRG is offline
Hello,

I'm new to Mac (OSX 10.5.8). Yesterday, I tried to delete a folder named "~" which was mistakenly created in my home directory. As such, I ran the command "rm -R ~" in the Terminal from the home directory, but unfortunately this command cleaned my home directory instead of only the folder named "~" inside of it.
The issue is that since then I cannot connect to the internet using my ethernet interface. I've tried to create another account, run Network diagnostics, add a new ethernet location, but none of this works.

Can you help me?

Regards,
Mário
QUOTE Thanks
scathe

 
scathe's Avatar
 
Member Since: Jan 12, 2009
Location: Prague, Czech Republic
Posts: 1,096
scathe is a jewel in the roughscathe is a jewel in the rough
Mac Specs: 2,4Ghz 15" unibody

scathe is offline
of course it cleaned your entire home directory and everything in it ... the "~" symbol means "home directory" and you recursively deleted everything ... nice one dude

you would have to use the command "rm -R ./~" to delete the ~ directory in your home folder
(I had to try this out for myself, not a good feeling hitting that return key lol)

anyway, by deleting a home folder of a user, although you loose all your data, you should be able to create a new working account

Network diagnostics won't really help you, you need to set up your network again for that specific account, e.g. if you have encryption
QUOTE Thanks
MLJRG

 
Member Since: Feb 01, 2010
Posts: 5
MLJRG is on a distinguished road

MLJRG is offline
Hi,
how/where can I set up the network for that account?
I went to "Network" under "System Preferences" and selected Ethernet with Using DHCP,
it then gets an IP and the remaining fields, but still I cannot go to the Internet ...
Am I missing something? (I've also tried to do this with a new account but it didn't work too...)

Thanks
Mário
QUOTE Thanks
Collin Bl

 
Collin Bl's Avatar
 
Member Since: Apr 07, 2009
Location: Napier NZ
Posts: 3,282
Collin Bl is a jewel in the roughCollin Bl is a jewel in the roughCollin Bl is a jewel in the rough
Mac Specs: 27 iMac i5, MBP 13 & iMac 20, 2TB dual TC, AppleTV, iPh4S

Collin Bl is offline
Hi Mario, seems a good time to review your back up policy. Having a bootable back up would have meant doing a restore and starting over.
Check out McBies comments here.
Meantime you may download and install this which might sort your current issue, but as far as finding data deleted by terminal - someone else will have to answer that.
QUOTE Thanks
MLJRG

 
Member Since: Feb 01, 2010
Posts: 5
MLJRG is on a distinguished road

MLJRG is offline
Hello,

yes, I agree that's a good time to check my backups.

Anyway, I managed to recover important data (at least that I am aware of),
yet I cannot get valid IP address from DHCP. For example, if I boot from the Windows Vista partition I get one valid IP address from DHCP, but when I boot from OSX I get a different IP address from DHCP. So, what I do is to start Vista, get its IP address, then reboot OSX and manually set it with Vista's IP address, but this is only a workaround.

Do you know what is happening here? This only started to happen when I accidentally deleted my home directory ...

Regards,
Mário
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,063
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: 2012 MBP, Black speakers, Black Benq second monitor, black(ish) iPhone 5s, Black 2012 iPad, etc.

chas_m is offline
Yes, I think I know what's happening with your internet connection.

When you wiped your home directory, you also wiped your settings. Your Windows settings were untouched by this, so they are still working.

If you would power down (unplug) your modem and your router, wait about 1 minute, then plug them back in (modem first, wait 30 seconds, then router) the problem would resolve itself.

Let us know if that works!
QUOTE Thanks
scathe

 
scathe's Avatar
 
Member Since: Jan 12, 2009
Location: Prague, Czech Republic
Posts: 1,096
scathe is a jewel in the roughscathe is a jewel in the rough
Mac Specs: 2,4Ghz 15" unibody

scathe is offline
Is there any security on your wifi? Since you lost your Keychain you lost your WPA password and so on ... so if you do have any kind of security measures on your wifi access point, you need to set those first
QUOTE Thanks
MLJRG

 
Member Since: Feb 01, 2010
Posts: 5
MLJRG is on a distinguished road

MLJRG is offline
Hi,

I'm not using wifi, only the ethernet card. And presently, I have no access to the router to turn it off, and even so, that action would affect many other people, so I don't think that is possible ...

But, isn't there any way to try one of these?

Option A) reset all ethernet settings to factory (or system installation) default, and then create an ethernet connection;

or Option B) configure OSX to contact a particular DHCP (given an IP address) to get an IP address for my card (I know the IP address of the DHCP that Windows Vista is connecting to, but don't know that of the DHCP OSX is contacting, and I really doubt if they are the same; or just something else is going on inside OSX that I don't know).

Is it possible to do one or both of these options? If yes, how?

Regards,
Mário
QUOTE Thanks
MLJRG

 
Member Since: Feb 01, 2010
Posts: 5
MLJRG is on a distinguished road

MLJRG is offline
Hello,

finally, I resolved this issue. There were two ways (at least) to resolve it.

One way was to write the IP address of one of the DNS servers into that same field in the "Network" preferences dialog. With this setting, OSX somehow did find the right DHCP to contact. This might seem strange (for me it is), but it did work!

Another way was to turn off the wireless router in my room, which I suspected OSX was getting the IP address for the ethernet card from (yes, the ethernet card?!). After turned it off, OSX contacted the correct DHCP and got a valid IP address. Afterwards, even with the wireless router running, OSX always retrieves IP addresses from the right DHCP.

Summarizing, it seems that OSX retains information somewhere in the home directory about the first DHCP it is able to get an IP address from and stays always with that DHCP as long as it responds. Once I disconnected the wireless router, OSX was unable to contact that router's DHCP, and so, it acknowledge the response from the right DHCP, and wrote it in my home directory.

I hope this experience is of help to others.

Thanks for all your responses,
Mário
QUOTE Thanks

Post Reply New Thread Subscribe


« Help PLease | Time Capsule networking issue »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Trouble connecting to a working home network msjhaffey Internet, Networking, and Wireless 1 08-10-2007 03:44 AM
working directory ikebock Apple Desktops 7 06-27-2006 11:28 PM
Command Windows File and Directory Structures stavros Switcher Hangout 6 01-24-2006 08:08 AM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 07:13 PM

All times are GMT -4. The time now is 12:00 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?