LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-07-2019, 05:10 PM   #1
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,184

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
Red face A comedy of errors.


(Subtitled "Stupid Human Tricks")

So, last Wednesday (not yesterday), I remembered that I had 2 SCSI drives configured as soft RAID1 in my desktop which had been running almost continuously for 10 years. "Wow, that's some tough hardware.", I said to myself.

Needless to say, one of drives started to fail two days later.

Great. I hit the internet to see if it's worth getting a couple of SCSI replacements. It really isn't. Fine, I'm out of SATA ports on that motherboard, so I'll have to get a PCIe card as well as a couple of drives.

I had other commitments on Saturday. On Sunday, I checked the local Fry's which had some fairly cheap 1TB drives but no card. Nothing open on Sunday had a PCIe SATA card. Fine. NewEgg had cards and I could get free 2 day shipping as well.

I get the card yesterday. I made sure that the machine will boot without the SCSI drives in place (it could), so I remove the PCI SCSI card along with the 2 drives and install the PCIe card in one of the larger PCIe slots (normally used by a video card when I ran SLI) along with the 2 new SATA drives.

Boot up the machine. BIOS sees the card and the drives. Continue to boot into runlevel 4 (Slackware64 14.2 machine, 4.4.172 kernel). I cat /proc/scsi/scsi and the 2 drives aren't there. I run lspci and the controller isn't there.

WTF?

Dig out the 14.2 installer (kernel 4.4.14) and boot up using that. /proc/scsi/scsi is happy to tell me that the drives are there and lspci shows the controller. Fine. Use parted to set up the partitions on the 2 new drives while I can see them.

Boot back into kernel 4.4.172. The 2 drives go AWOL along with their buddy the PCIe card. Many bad words were mumbled.

OK, let's try Alien Bob's liveslak. Boot that up (BTW, that looks really nice) and the 2 drives are there along with card. Grr. Fine. Create a RAID1 device that I'll eventually use as an LVM physical volume. That assembles just fine.

Boot back into kernel 4.4.172. I'm starting to remember the definition of insanity since the 2 drives with their card are missing. OK. I'll build the 4.9.20 kernel and install that alongside the 4.4.172 kernel. I then boot my system using the new kernel. The drives and card are missing.

I did notice a message during boot about not being to find a device. Here's the stupid human trick:

When 14.2 came out, I had trouble getting my default sound card to be anything other than the HDMI output of both of my video cards. I put entries into rc.local which were designed to turn off those devices via the /sys filesystem.

One of those entries was able to turn off the SATA card. I commented out those lines in rc.local, rebooted, and presto!, the SATA card and drives are back in business. I haven't checked how sound is working, but I'll find another way to fix that if needed.

If there's a moral to the story, I guess it would be that the fewer stupid workarounds you do, the less likely those workarounds will bite your behind later.
 
Old 02-07-2019, 05:22 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,050

Rep: Reputation: 97
i have rebuilt pulseaudio and disabled udev by adding --disable-udev to ./configure and pulseaudio will ignore HDMI, it is a crude way of working around the HDMI issue but it works

i did this because my monitor has no speakers or audio output plugs so it is useless and sometimes annoying to have audio in the HDMI for me
 
Old 02-07-2019, 06:18 PM   #3
GazL
Senior Member
 
Registered: May 2008
Posts: 4,881
Blog Entries: 14

Rep: Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438
I solve my sound card ordering with this:
Code:
$ more /etc/modprobe.d/sound.conf 
options snd slots=snd-hda-intel
#       makes sure snd-hda-intel devices come first
options snd-hda-intel beep_mode=0,1
#       enables digital system beep.
#       Note: the beep_mode array uses initial card detection order
#       and not the order after any index options have been applied.
options snd-hda-intel id=PCH index=0
#       makes onboard audio card0
options snd-hda-intel id=HDMI index=1
#       makes HDMI card1
$
pulse can be told to ignore certain sound cards with udev rules like this:
Code:
$ more /etc/udev/rules.d/91-pulseaudio_local.rules 
# 91-pulseaudio_local.rules
#
#   Preventing detection may be desirable if you're intending
#   to dedicate the card for use by ALSA, or want to use the
#   static configuration option offered by pulseaudio's
#   module-alsa-sink and/or module-alsa-source modules.
#

# Prevent pulseaudio's module-udev-detect from detecting
# this soundcard:
SUBSYSTEM=="sound", KERNEL=="card0", ENV{PULSE_IGNORE}="1"
# Prevent pulseaudio's module-udev-detect from detecting
# this soundcard:
SUBSYSTEM=="sound", KERNEL=="card1", ENV{PULSE_IGNORE}="1"
$

Last edited by GazL; 02-07-2019 at 06:19 PM. Reason: fixed code tags
 
3 members found this post helpful.
Old 02-10-2019, 07:12 PM   #4
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,447
Blog Entries: 2

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
Thanks for sharing man, it was a good read
 
Old 02-13-2019, 12:41 AM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,184

Original Poster
Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
For those interested, the evil commands (commented out here as they are now on my machine) were...
Code:
# Zap the hdmi sound card that's part of the graphics card.
#echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/0000:03:02.0/0000:05:00.1/remove
#echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/0000:03:02.0/0000:05:00.0/remove
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] The comedy of errors that is Amazon Video in 2018 Lysander666 Slackware 22 08-15-2018 05:30 PM
LXer: Microsoft and Seinfeld: A Comedy of Errors? LXer Syndicated Linux News 0 08-25-2008 12:50 PM
LXer: Comedy: Top 3 Fedora Themes by Concept LXer Syndicated Linux News 0 08-08-2008 06:50 AM
classic english comedy sketch bashyow General 3 07-12-2008 03:17 PM
LXer: A Comedy of Spam LXer Syndicated Linux News 0 12-29-2006 01:33 AM

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

All times are GMT -5. The time now is 02:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration