LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Hard Drive disaster, Starting Over with Slack (https://www.linuxquestions.org/questions/slackware-14/hard-drive-disaster-starting-over-with-slack-674997/)

BobNutfield 10-08-2008 04:29 AM

Hard Drive disaster, Starting Over with Slack
 
Hello Everyone,

Well, the title tells you the situation. I was working with my partitions last week, stupid mistake. Anyway lost the entire contents of my hard drive on my laptop so I am starting all over. Almost a year's worth of work configuring.....gone. Fortunately, I had complete backups of all my important work, so no loss there. What I didn't have was backups on configs I had done: wireless, sound, etc. I do, however, have notes on all the help I got here setting up before, so I feel good about getting it all going again.

I have re-installed, but this time I decided to go with Slackware current. No problem installing. But, in this kernel, my wireless is not natively supported, so I use a USB stick that uses the zd1211rw driver and it modprobed just fine. Just need it to get online to get the 2.6.27 kernel that DOES support my wireless.

But, I have an odd problem that I have not encountered before. Of course I have read the Slackbook wireless HOWTO HOWTO.

The problem is this: I can get the wireless set up no problem, I even get a DHCP IP address with dhclient, I can ping the router, but it will not connect to the net or other machine on my home network.

Please don't yell at me if I am missing that is obvious. I am just not familiar with DNS, which may be my problem. This is a completely fresh install with kernel 2.6.24.7-huge-smp, no other configuration at this point.

Any advice would be appreciated.

Bob

bassmadrigal 10-08-2008 05:01 AM

I am not familiar with dhclient, as I have always used dhcpcd. One thing that I found when dealing with static IP's is that you need to have your gateway (IP address of your router) setup through route, as well as having a nameserver listed in your /etc/resolv.conf.

First I would try using dhcpcd wlan0 (or whatever device yours uses) and see if it sets up all that info for you (which it does for me), otherwise you can setup a static address. Although I don't remember the commands right off as I have a wireless script that does it for me (you can access the script at http://bpws.sf.net )

BobNutfield 10-08-2008 05:29 AM

Thank you, /etc/resolv.conf is indeed empty. To use dhcpd, I am being prompted set up the dhcpd.conf file, which is very confusing. I am using a simple home router with three machines connected and never had this issue before. I am thinking that something I entered during my Slack install has created this issue, though I use the same entries I have always used. Perhaps someone will post a sample file for both of these to get me started.

Bob

BobNutfield 10-08-2008 05:47 AM

Thank you. Got it resolved by adding nameserver in /etc/resolv.conf. Online now, so now to a good month of configuring things all over again.

Many thanks,

Bob

bassmadrigal 10-08-2008 06:17 AM

Quote:

Originally Posted by BobNutfield (Post 3303926)
Thank you, /etc/resolv.conf is indeed empty. To use dhcpd, I am being prompted set up the dhcpd.conf file, which is very confusing. I am using a simple home router with three machines connected and never had this issue before. I am thinking that something I entered during my Slack install has created this issue, though I use the same entries I have always used. Perhaps someone will post a sample file for both of these to get me started.

Bob

Once I get home, I will post my conf file. But I am glad to see you got it working.

BobNutfield 10-08-2008 09:44 AM

NEW ROADBLOCK: FREQUENCY SCALING

Well, the Slack Book details setting up frequency scaling very well, but doesn't say what to do with this. I have compiled my 2.6.27 kernel, running well, but cannot get cpufreq scaling to work. I have uncommented /sbin/powernow-k8 and APCI Processor in /etc/rc.d/rc.modules, but still no go.

Quote:

root@bob-laptop:/home/bob# dmesg | grep powernow
powernow-k8: Found 1 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-57 processors (2 cpu cores) (version 2.20.00)
powernow-k8: ACPI Processor support is required for SMP systems but is absent. Please load the ACPI Processor module before starting this driver.
powernow-k8: ACPI Processor support is required for SMP systems but is absent. Please load the ACPI Processor module before starting this driver.
I shouldn't be getting this message I don't think. Anyone have any ideas?

Thanks in advance

Bob

bassmadrigal 10-08-2008 09:55 AM

Quote:

Originally Posted by bassmadrigal (Post 3303969)
Once I get home, I will post my conf file. But I am glad to see you got it working.

Well, my dhcpd.conf file has no configuration options, so I don't know why you are getting that error.

As for your new one, some googling turned up this post.

Basically it says you need to enable "AM2 Boost Enable" in the bios, or something similar to that. But if you built your own kernel, it could be a module you accidentally didn't build.

If you own a laptop, I can highly suggest building the cpu frequency daemon. It gives you a ton of options on the scaling limits for various power settings (ie, on AC, battery at specific levels, etc).

BobNutfield 10-08-2008 10:05 AM

Quote:

Originally Posted by bassmadrigal (Post 3304155)
Well, my dhcpd.conf file has no configuration options, so I don't know why you are getting that error.

As for your new one, some googling turned up this post.

Basically it says you need to enable "AM2 Boost Enable" in the bios, or something similar to that. But if you built your own kernel, it could be a module you accidentally didn't build.

If you own a laptop, I can highly suggest building the cpu frequency daemon. It gives you a ton of options on the scaling limits for various power settings (ie, on AC, battery at specific levels, etc).

Hello again,

Yes it is a laptop and I did compile this kernel myself. I am sure I included the ACPI processor and powernow_k8 (which is what I need to get this to work, but as shown it is complaining that it can't even find the module ppowernow_k8 or acpi_processor.

I had this working just fine prior to wiping the drive in 12.1. Need to get it sorted soon, though, because this laptop runs really hot without it.

Thanks again

Bob

Ilgar 10-08-2008 10:18 AM

Edit: Sorry, just didn't notice that you already marked the ACPI processor support.

New idea: powernow_k8 selection has an "ACPI support" suboption, which it says is required for SMP. Did you mark that one?

BobNutfield 10-08-2008 10:52 AM

Hi llgar,

Yes, I am looking at the config now, I do have processor checked in the ACPI support section. In frequency scaling, I have CPU frequency scaling checked, frequency translation statistics, and userspace governor "ondemand".

I have recompiled twice now and still get the error that the powernow-k8 module is not found.

Just stumped on this one.

Bob

BobNutfield 10-08-2008 12:01 PM

Still getting a couple of error messages in dmesg, but the fourth recompile got freq scaling to work. I guess I have been at this too long....eyes getting weary and missing things.

But got Slack up now and this is the first time I have used current. The adventure begins again.

Thanks everyone.

Bob

bassmadrigal 10-08-2008 12:11 PM

Well... assuming you are not located in that directory (and that it doesn't change if you cd to a new directory), this will change it back.

Code:

PS1=\u@\h:\w\$
And if the problem persists after a reboot, you may have to change it in your /etc/profile

BobNutfield 10-08-2008 12:13 PM

Quote:

Originally Posted by bassmadrigal (Post 3304264)
Well... assuming you are not located in that directory (and that it doesn't change if you cd to a new directory), this will change it back.

Code:

PS1=\u@\h:\w\$
And if the problem persists after a reboot, you may have to change it in your /etc/profile

Thanks again, that took care of it. Now back to sound and fglrx.


Bob

Ilgar 10-08-2008 12:56 PM

Quote:

Originally Posted by BobNutfield (Post 3304202)
Yes, I am looking at the config now, I do have processor checked in the ACPI support section. In frequency scaling, I have CPU frequency scaling checked, frequency translation statistics, and userspace governor "ondemand".

Hi Bob, I'm glad you sorted it out. In case you need to do this again: What I was referring to is not

Code:

--- ACPI (Advanced Configuration and Power Interface) Support
  <*>  Processor

but instead the last line in

Code:

CPU Frequency scaling  --->
  <*>  AMD Opteron/Athlon64 PowerNow!
  [*]    ACPI Support

The latter won't be visible unless the first is enabled (so you may have skipped it if you did the cpufreq selections first).

BobNutfield 10-08-2008 04:51 PM

Thanks again llgar.

Got it all up and working now...sound, ATI driver cpu scaling, wireless, the works. Now I am going to restore my files from backup and leave it alone!!



Thanks again,

Bob


All times are GMT -5. The time now is 07:32 AM.