LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2008, 06:27 PM   #1
War_Ensemble
LQ Newbie
 
Registered: Sep 2006
Location: MPLS, MN, U.S.A.
Distribution: Slackware!
Posts: 5

Rep: Reputation: 0
Slackware 12.0: boot problem & sudo / wifi-radar problem


Hey there,

Running 12.0 On an IBM R51, the rest of the specs are in my sig.

1) After the LILO boot screen when it says:

Code:
Loading Linux............................................................
That "Loading Linux" part takes almost a minute to get through. Each dot takes almost a second to appear. On my other machines it goes so fast you can hardly see that part. Other than that it boots and runs fine once it gets through that initial part of booting. Anyone have any ideas why this would happen? The only thing I can think of is that LILO and the MBR aren't playing well on this machine. This machine would boot in 20-30 seconds, instead it takes a minute and a half. Not that big of a deal, just a nuisance.

2) wifi-radar. I edited sudoers with the line:

Code:
username ALL=/usr/sbin/wifi-radar
When I run wifi-radar as a normal user in a terminal I get:

Code:
username@thinkpad:~$ sudo /usr/sbin/wifi-radar
Password:
Traceback (most recent call last):
  File "/usr/sbin/wifi-radar", line 1618, in <module>
    set_network_device(INTERFACE)
  File "/usr/sbin/wifi-radar", line 120, in set_network_device
    INTERFACE = wireless_devices[0]
IndexError: list index out of range
username@thinkpad:~$
When I run it as super user in terminal it runs fine. If anyone can tell me what that error message is about I would greatly appreciate it!

Thanks!
 
Old 01-14-2008, 06:40 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Check that the compact option is in the global section of /etc/lilo.conf file. Also, how big is the kernel image compared to the faster ones? If you change anything in lilo.conf remember to run the lilo command to implement the changes.
 
Old 01-14-2008, 07:43 PM   #3
War_Ensemble
LQ Newbie
 
Registered: Sep 2006
Location: MPLS, MN, U.S.A.
Distribution: Slackware!
Posts: 5

Original Poster
Rep: Reputation: 0
Not sure what the compact option is...I don't think it is in there. I am running vmlinuz-generic-2.6.21.5

here is my lilo.conf:

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 320
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.21.5
  initrd = /boot/initrd.gz
  root = /dev/hda1
  label = Linux
  read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda1
  label = Safe
  read-only
# Linux bootable partition config ends
It was way slower with the huge-smp kernel. Then I installed the generic-smp, that cut the time in half almost. Now I'm using the generic-2.6.21.5, which is a little faster than the generic-smp. It still takes almost a minute to get through that first stage.

Thanks
 
Old 01-14-2008, 08:05 PM   #4
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
i know that lilo might also depend on HD speed. a good example (for me atleast) is that Lilo loads my server (7200RPM) in about 2sec, my latop in about 20-30sec (4200RPM). This is what i think, but maybe wrong.
 
Old 01-14-2008, 08:29 PM   #5
War_Ensemble
LQ Newbie
 
Registered: Sep 2006
Location: MPLS, MN, U.S.A.
Distribution: Slackware!
Posts: 5

Original Poster
Rep: Reputation: 0
It has a brand new 5400RPM WD 120GB. No OS should take this long to boot. I don't think its the OS though, because when tux appears in the corner the text starts flying by. The slow part is just that "Loading Linux / BIOS Data check" part.

anyone have any ideas about the wifi-radar problem?

Thanks!
 
Old 01-15-2008, 07:21 AM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Quote:
It was way slower with the huge-smp kernel. Then I installed the generic-smp, that cut the time in half almost. Now I'm using the generic-2.6.21.5, which is a little faster than the generic-smp. It still takes almost a minute to get through that first stage.
IIRC, each kernel that you switched to that became faster also has fewer option built into the kernel image itself. The smaller images, thus, load faster.

From the LILO.CONF man page:
Quote:
compact = Tries to merge read requests for adjacent sectors into a single read request. This drastically reduces load time and keeps the map smaller. Using `compact' is especially recommended when booting from a floppy disk.
I used to have to watch the trailing dots, too, until I added 'compact'. Here's the global section of my lilo.conf
Code:
# LILO configuration file
# Start LILO global section

boot=/dev/hda           # boot device - MBR 
lba32                   # enable logical block addressing for large drives
compact                 # enable faster hdd read (may hang on older systems)
prompt
#timeout=100            # delay in tenths of seconds
ramdisk=0               # create ramdisk (0=no ramdisk)
root=/dev/hda6

#Normal VGA mode
# vga=normal
#VESA framebuffer console mode 1024x768x256
vga=773

# End LILO global section
Hope this helps!
 
Old 01-15-2008, 07:32 AM   #7
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I'd forgotten there was a second question! Sorry.

Maybe edit your sudoers file to be more like this:
Code:
username  HOSTNAME=(root)  NOPASSWD: /usr/sbin/wifi-radar
This is a modification of my line for using the shutdown command. That's all I can think of. I don't know the wifi-radar command myself, but if it calls out to any other commands that require root permission, iwconfig for example, that might produce such an error.
 
Old 01-15-2008, 09:49 AM   #8
War_Ensemble
LQ Newbie
 
Registered: Sep 2006
Location: MPLS, MN, U.S.A.
Distribution: Slackware!
Posts: 5

Original Poster
Rep: Reputation: 0
The compact option worked! My laptop goes from lilo to gdm in about 24 seconds!

Being as I have gotten WICD to manage my wireless and wired connections I have no need for wifi-radar, so I will removepkg that. I'm sure I could have figured it out, but it was easier to install a program that works with little or no config...

Thank you dracolich!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: WiFi-Radar in Slackware Kahless LinuxAnswers Discussion 5 10-16-2007 02:53 PM
Proxy & port settings with WiFi Radar? Chriswaterguy Linux - Software 0 10-06-2007 10:19 AM
WIFI Radar mabreaux Linux - Wireless Networking 8 09-06-2006 12:56 PM
Does anybody use wifi-radar? vinoloco Ubuntu 4 06-30-2005 09:06 PM
Perl & Sudo Problem mclard Linux - Newbie 4 12-03-2004 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration