LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-29-2006, 08:25 PM   #1
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
rc.scanluns in Current


Pat has added a new boot script in rc.d that I believe is suppose to add usb/firewire based devices at boot and it has executable permission right off the bat at install. For me it just scans for new devices and since I don't have any it does not create any new devices.

Quote:
#!/bin/sh
#
# rc.scanluns (Wed Jul 26 16:55:51 CDT 2006) pjv
#
# This script simply runs "rescan-scsi-bus -l" to look for devices
# that have been plugged into a USB or IEEE1394 (Firewire) port that
# might not have been detected because they use a LUN (Logical Unit
# Number) other than 0.
#
# You might need to run this script again (or just use
# rescan-scsi-bus directly at the command line) after plugging
# in new devices such as USB cameras, music players, external
# storage, and similar items.

# Run this only if "noscanluns" was NOT given as a kernel option.
if ! grep -qw noscanluns /proc/cmdline ; then
if [ -x /sbin/rescan-scsi-bus ]; then
echo "Scanning all LUNs for additional hardware: /sbin/rescan-scsi-bus -l"
/sbin/rescan-scsi-bus -l
fi
fi
I added the noscanluns kernel boot option to decrease my boot time (worked) but I wonder why it one just doesn't chmod 644 rc.scanluns as is done for all the other boot scripts?
 
Old 08-30-2006, 12:33 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I think the proper thing is to issue "chmod -x /etc/rc.d/rc.scanluns"
 
Old 08-30-2006, 08:22 AM   #3
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Original Poster
Rep: Reputation: 33
Bruce,

I notice you are also running current. Have you removed executable permissions for rc.scanluns and if so are you having any problems?

I have had not problems with passing the noscanluns option at boot.
 
Old 08-30-2006, 10:06 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by shepper:
Have you removed executable permissions for rc.scanluns and if so are you having any problems?

I have had not problems with passing the noscanluns option at boot.
I did try "chmod -x /etc/rc.d/rc.scanluns" and it doesn't probe
for luns while booting.

However, Alien Bob explained to me why you don't just change the perms:
Quote:
You should not "chmod -x" that script. If you do, the issue of "noscanluns" boot option becomes non-existent. The problem you don't yet see is when someone boots the computer and something breaks because of the rc.scanluns. Instead of getting a Knoppix CD and fixing the X bit of rc.scanluns, you can simply pass "noscanluns" on the lilo prompt. Just like you can pass "nousb" or "nohotplug". It is meant to help computers boot that otherwise wouldn't - without having to resort to rescue CD's.
I haven't had problems with it probing luns. And fwiw, I had 3 USB
devices plugged in when I installed -current, and let it create
mount points for them.

The issue I did have is that "mount -a" is passed during bootstrapping
before "hotplug" or "rcscanluns" so they don't get mounted. Pat said:
Quote:
We're looking into ways to make that happen automatically, but that involves some additional components that won't make it into Slackware 11.0.

Last edited by Bruce Hill; 08-30-2006 at 10:50 AM. Reason: Alien Bob explained it to me...
 
Old 08-30-2006, 03:41 PM   #5
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Quote:
getting a Knoppix CD and fixing the X bit ...
Why? Why not the Slackware CD? Is the breakage that bad?
 
Old 08-31-2006, 01:33 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by mannyslack
Why? Why not the Slackware CD? Is the breakage that bad?
Figure of speech. A knoppix CD stands for "rescue CD" but generally any bootable Linux CD - including the Slackware CD - will do of course.

Eric
 
  


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
Slack v. 10.2 or current nacha Slackware 2 05-20-2006 02:21 PM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 01:02 PM
-current and beyond darkcmd Slackware 0 01-30-2005 05:51 PM
current Slack-Current giving troubles? r_jensen11 Slackware 5 02-02-2004 05:08 PM
Staying Current (with current) hjles Slackware 1 01-21-2003 07:03 PM

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

All times are GMT -5. The time now is 04:55 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