LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-09-2019, 05:29 PM   #1
zathyx
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Rep: Reputation: Disabled
Mounting windows raid0/spanned drives in slackware


Hello all,

somewhat long time Debian user, took the plunge and installed Slackware today. After the initial learning curve everything is copacetic with no issues bar one; Back when I was on Windows I set up a software raid0/spanned drives setup through Windows Disk management which consisted of 2 x 500GB drives that's went on to be my main storage.

Under Debian I was using ldmtool to access it which basically consisted of "ldmtool create all" which would map the drives and then all I had to do was mount. Under Slackware I'm a little bit lost, tried having a fiddle with dmraid and mdadm to no avail and I'm not sure where to go from here so I figured I'd bite the bullet and ask.

Running Slackware 14.2 kernel 4.4.14, system specs (if necessary) are dual x5650s, supermicro x8dtl, 24gb kingston ram & gtx 970. the drives are at /dev/sda and /dev/sdb respectively. Any help/advice/etc is much appreciated, many thanks.
 
Old 02-09-2019, 06:10 PM   #2
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
My suggestion is if you are comfortable with compiling software is to grab ldmtool source and patch from debian and compile the tool yourself.

source is here: http://deb.debian.org/debian/pool/ma....4.orig.tar.gz
Debian Patch is here: http://deb.debian.org/debian/pool/ma....debian.tar.xz

extract the source code and then extract the debian patch into the source folder libldm-libldm-0.2.4.

then change into libldm-libldm-0.2.4 and run the following command patch -p1 < debian\patches\0001-Replace-g_type_class_add_private-with-G_ADD_PRIVATE.patch

Then run ./autogen.sh followed by make install.

This should get the tool compiled and install in /usr/local/bin or /usr/local/sbin.
 
1 members found this post helpful.
Old 02-09-2019, 06:29 PM   #3
zathyx
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi, thanks for the response.

I patched the file and ran autogen.sh however it's spitting out this error:

checking for readline in -lreadline... no
configure: error: readline library is missing

so I ran sbotools to check and got "readline (readline-6.3-x86_64-2) is already installed." which looks to be the most up to date version. I guess I'm missing some sort of library related to it?
 
Old 02-09-2019, 06:39 PM   #4
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
I will have to spin up a base Slackware 14.2 and see what happens. It finds readline on Slackware64-current for me. Readline on current is version 7.

In the mean time you may want to try reinstalling readline on your system. slackpkg reinstall readline
 
Old 02-09-2019, 06:58 PM   #5
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
I see what is going on in the background.

Quote:
configure:12391: checking for readline in -lreadline
configure:12416: gcc -o conftest -g -O2 conftest.c -lreadline >&5
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `tputs'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `tgoto'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `tgetflag'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `UP'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `tgetent'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `tgetnum'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `PC'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `tgetstr'
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../lib64/libreadline.so: undefined reference to `BC'
collect2: error: ld returned 1 exit status
 
Old 02-09-2019, 07:14 PM   #6
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
Solution

You will need to go to slackbuilds.org. Build and install the json-glib package. Then before running autogen.sh for ldmtool do the following.

Quote:
export LIBS="-lncurses"
ldmtool should compile and install in /usr/local/bin.
 
1 members found this post helpful.
Old 02-09-2019, 07:23 PM   #7
zathyx
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
built & installed json-glib no issues. do I run "export LIBS="-lncurses"" through terminal or put it in autogen/makefile somewhere? ldmtool did compile but gives this when trying to execute:

"./ldmtool: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP
"
 
Old 02-09-2019, 08:12 PM   #8
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by zathyx View Post
built & installed json-glib no issues. do I run "export LIBS="-lncurses"" through terminal or put it in autogen/makefile somewhere? ldmtool did compile but gives this when trying to execute:

"./ldmtool: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP
"
in a terminal you should run export LIBS="-lncurses" in a terminal before running ./autogen.sh

Did you install readline 7.0 in /usr/local/lib? The instructions I gave should work for a base install of Slackware-14.2 (tested on 64 bit version of 14.2)
 
1 members found this post helpful.
Old 02-09-2019, 08:50 PM   #9
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
Here is a Slackbuild tar. In it is the build script and the source file.

https://wrtgateway.porterhousehold.org/libldm.tar

All you should have to do on a fresh build of Slackware 14.2 is make sure json-glib is installed and un-tar this file and run the build script. It should create a working package file for ldmtool.
 
1 members found this post helpful.
Old 02-11-2019, 08:11 AM   #10
zathyx
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi, sorry for late response was busy with work.

Happy to report ldmtool is now working from the Slackbuild tar and I can access my storage drive fine - I think the issue was I installed readline in the wrong directory, newbie mistake admittedly but when you've been trying to solve the same problem for 3+ hours sometimes your brain can lapse a bit :P

Many thanks for the quick detailed responses, it's much appreciated. Can't wait to replace the storage drive(s) with a single 2tb, much better than the janky workaround I have going right now. Again, many thanks!
 
Old 02-11-2019, 06:58 PM   #11
hoodlum7
LQ Newbie
 
Registered: May 2016
Posts: 28

Rep: Reputation: Disabled
I am glad it is working for you now.
 
  


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
How do I setup Windows Spanned Dynamic Disks to be used in Linux? nLEyETn Linux - Hardware 22 04-12-2018 10:08 PM
Mounting a NTFS spanned partition into RHEL4... MaxImUmZ Linux - Hardware 4 03-01-2009 05:08 PM
Adaptec ASR-2820SA in Raid0 slower than SW-Raid0 phab Linux - Hardware 0 01-22-2007 10:03 AM
boot to PATA raid0 on Promise 378 *and see* SATA raid0 ICH5 ? patr Linux - Hardware 2 02-25-2004 02:36 AM
Spanned display for laptops? m_m Linux - Hardware 2 01-08-2003 12:14 PM

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

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