LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dmraid /dev/mapper/control (https://www.linuxquestions.org/questions/slackware-14/dmraid-dev-mapper-control-4175591340/)

BW-userx 10-13-2016 11:10 AM

dmraid /dev/mapper/control
 
I installed dmraid using ./configure / make / make install I cannot remove it. I ran it for other reasons then I should have, long story skipping it.

Now that I just moved my home partition to another HDD, got everything set up with that.

When I tried to remove my old /home using gParted I get an error "could not stat device /dev/mapper/NO RAID disks no such file or directory" it too is preventing me from mounting it and changing that partition into what I want it to be which is just a data storage area.

I have a /dev/mapper/control
Code:

userx@SlackDaddy & 1.0.0.rc14 >> $ls /dev/mapper/control
/dev/mapper/control

though I do not know a fix for this let alone an easy one.

if I just delete this /dev/mapper/control then what?


this did not work either
Code:

userx@SlackDaddy & 1.0.0.rc14 >> $sudo make uninstall
make: *** No rule to make target 'uninstall'.  Stop.

does anyone know a solution to this issue short of re-installing Slack?

and NO old /home is not mounted in fstab
Code:

root@SlackDaddy & 1.0.0.rc14 >> $cat /etc/fstab
/dev/sda1        /                ext4        defaults        1  1
#/dev/sda3        /home            ext4        defaults        1  2
/dev/sdb4  /home        ext4 defaults 1 2

/dev/sdb1        /media/windows10 ntfs-3g    fmask=111,dmask=000 1  0
/dev/sda3      /media/void          ext4 defaults 0 3

#/dev/sdb4      /media/void2      ext4 defaults 0 3

#/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro,comment=x-gvfs-show 0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0


Richard Cranium 10-13-2016 01:18 PM

You could try using src2pkg to mimic your dmraid installation. If you can do that, you can use src2pkg to make a package that you can install (overwriting the old installation) and then uninstall (removing it from the system).

BW-userx 10-13-2016 01:53 PM

Quote:

Originally Posted by Richard Cranium (Post 5617583)
You could try using src2pkg to mimic your dmraid installation. If you can do that, you can use src2pkg to make a package that you can install (overwriting the old installation) and then uninstall (removing it from the system).

Code:

root@SlackDaddy & dmraid >> $FAIL_ON_BAD_DIRS=NO  src2pkg  dmraid-1.0.0.rc14.tar.bz2
Found source archive: dmraid-1.0.0.rc14.tar.bz2
Deleting old build files - Done
Creating working directories:
  PKG_DIR=/tmp/dmraid-1.0.0.rc14-x86_64-1
  SRC_DIR=/tmp/dmraid-1.0.0.rc14-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
  Notice - The configuration files are in a subdirectory: 1.0.0.rc14
Found configure script - Done
Configuring sources using:
 LDFLAGS="-Wl,-O1,-L/lib64,-L/usr/lib64" CFLAGS="-O2 -fPIC -m64" ./configure --prefix=/usr --libdir=/usr/lib64
Configuration has been - Successful!
Compiling sources - Using: 'make'
Compiling has been - Successful!
Checking for Makefile rule: 'install' Okay
Checking support for DESTDIR (or similar) - Found DESTDIR
Creating package content using:
  make DESTDIR=/tmp/dmraid-1.0.0.rc14-x86_64-1 install

Warning! These sources have broken DESTDIR support!
Warning! Makefile installs these files outside of DESTDIR:
/usr/lib64/libdmraid.a
  Notice - The above-listed files will be added to the package content.
  But, the originals will not be removed as they may have already existed.
Correcting DESTDIR errors - Processing package content:
/usr/libexec/src2pkg/09-fix_pkg_perms: line 380: warning: command substitution: ignored null byte in input
/usr/libexec/src2pkg/09-fix_pkg_perms: line 380: warning: command substitution: ignored null byte in input
Correcting package permissions - Done
Stripping ELF binaries - Using: strip -p --strip-unneeded Done
Stripping static archives - Using: strip -p --strip-debug Done
Checking for standard documents - Done
Compressing man pages - Done
Verified slack-desc found - Inserting in package as PKG_DIR/install/slack-desc
Rechecking package correctness:
Rechecking package permissions - Done
Checking for dead links in PKG_DIR - Done
Searching for links in: dmraid-1.0.0.rc14-x86_64-1 - None found
Creating package: dmraid-1.0.0.rc14-x86_64-1.txz - Done
Package Creation - Successful! Package Location:
/tmp/dmraid-1.0.0.rc14-x86_64-1.txz

Code:

root@SlackDaddy & dmraid >> $installpkg /tmp/dmraid-1.0.0.rc14-x86_64-1.txz
Verifying package dmraid-1.0.0.rc14-x86_64-1.txz.
Installing package dmraid-1.0.0.rc14-x86_64-1.txz:
PACKAGE DESCRIPTION:
# dmraid Device-Mapper Software RAID support tool
#
# This software discovers, activates, deactivates and displays
# properties of software RAID sets (eg, ATARAID) and contained
# DOS partitions. dmraid uses libdevmapper and the device-mapper
# kernel runtime to create devices with respective mappings
# for the ATARAID sets discovered.
#
# Packaged by root <root@SlackDaddy>
Package dmraid-1.0.0.rc14-x86_64-1.txz installed.

Code:


root@SlackDaddy & dmraid >> $removepkg dmraid


Removing package /var/log/packages/dmraid-1.0.0.rc14-x86_64-1...
Removing files:
  --> Deleting /tmp/dmraid-1.0.0.rc14-x86_64-1/usr/sbin/dmraid
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/CHANGELOG
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/CREDITS
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/LICENSE
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/LICENSE_GPL
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/LICENSE_LGPL
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/README
  --> Deleting /usr/doc/dmraid-1.0.0.rc14/TODO
  --> Deleting /usr/include/dmraid/display.h
  --> Deleting /usr/include/dmraid/dmraid.h
  --> Deleting /usr/include/dmraid/format.h
  --> Deleting /usr/include/dmraid/lib_context.h
  --> Deleting /usr/include/dmraid/list.h
  --> Deleting /usr/include/dmraid/locking.h
  --> Deleting /usr/include/dmraid/metadata.h
  --> Deleting /usr/include/dmraid/misc.h
  --> Deleting /usr/include/dmraid/reconfig.h
  --> Deleting /usr/lib64/libdmraid.a
  --> Deleting /usr/man/man8/dmraid.8.gz
  --> Deleting empty directory /usr/include/dmraid/
  --> Deleting empty directory /usr/doc/dmraid-1.0.0.rc14/
  --> Deleting empty directory /tmp/dmraid-1.0.0.rc14-x86_64-1/usr/sbin/
WARNING: Unique directory /tmp/dmraid-1.0.0.rc14-x86_64-1/usr/ contains new files
WARNING: Unique directory /tmp/dmraid-1.0.0.rc14-x86_64-1/ contains new files

Code:


root@SlackDaddy & dmraid >> $whereis dmraid
dmraid: /sbin/dmraid /usr/man/man8/dmraid.8

Code:


root@SlackDaddy & dmraid >> $ls /dev/mapper
control

just documenting my actions at this moment. :D

OK

I just got gparted started and it is still throwing that error /dev/mapper/no RAID crap grrr .. not blaming you mind ya.. just grrrr

let me reboot and see what happens.

Richard Cranium 10-13-2016 03:25 PM

If you originally ran ./configure and didn't provide any options, you are almost certainly to have installed everything somewhere in /usr/local.

src2pkg will attempt to put stuff into /usr by default. So you'd have to tell src2pkg to not do that. That's why I wrote
Quote:

You could try using src2pkg to mimic your dmraid installation.
instead of "Just run src2pkg to make a package out of dmraid."

I concede that I should have been more explicit in what I meant by "You could try using src2pkg to mimic your dmraid installation." Sorry about that.

BW-userx 10-13-2016 03:38 PM

Quote:

Originally Posted by Richard Cranium (Post 5617656)
If you originally ran ./configure and didn't provide any options, you are almost certainly to have installed everything somewhere in /usr/local.

src2pkg will attempt to put stuff into /usr by default. So you'd have to tell src2pkg to not do that. That's why I wrote instead of "Just run src2pkg to make a package out of dmraid."

I concede that I should have been more explicit in what I meant by "You could try using src2pkg to mimic your dmraid installation." Sorry about that.

that's right not a big deal though ..re- installed, reconfigured and back up and running again. thanks cheers!


All times are GMT -5. The time now is 04:43 PM.