LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2013, 12:04 PM   #1
ezekieldas
Member
 
Registered: Mar 2010
Posts: 122

Rep: Reputation: 16
Upon every boot I must do this: dmsetup ls, dmsetup remove...


About a year ago I had this issue where a disk wouldn't show up until I did the following:

# dmsetup ls, dmsetup remove ddf1_foobar, dmsetup ls

So this has been a comment in my /etc/fstab since then. I have to follow these steps each time I restart the system. This is a clumbsy workaround though --can someone tell me how I can fix this permanently?
 
Old 10-01-2013, 08:53 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,155
Blog Entries: 15

Rep: Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081
What distro/version of Linux?

You could put those commands in a script and set the script to run on boot. The classical way to do this is to put it in /etc/rc.local (note that rc.local may be in different locations in /etc, depending on the distro.

You might take a look at the log files in /var/log to see whether there is some hint as to what is causing this problem. Look for files named /var/log/messages, /var/log/system and /var/log/boot for starters. You may have to have root privileges to access them.

It might be easiest to view the files with less, since it will enable you to navigate in them.

Code:
less /var/log/messages
See man less for details.

Last edited by frankbell; 10-01-2013 at 08:54 PM. Reason: clarity
 
Old 10-01-2013, 10:38 PM   #3
ezekieldas
Member
 
Registered: Mar 2010
Posts: 122

Original Poster
Rep: Reputation: 16
Upon further investigation I found some notes from years ago where I first saw this. In short the solution is to uninstall dmraid or append nodmraid to kernel boot options.

http://forums.fedoraforum.org/showthread.php?t=137861
 
Old 10-02-2013, 07:37 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,155
Blog Entries: 15

Rep: Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081
Glad you solved it. Thanks for the update.
 
  


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
Live Image mount: union FS overlay vs dmsetup overlay kostya Linux - Software 2 02-16-2012 06:38 AM
dmsetup create Invalid argument vzlatsin Linux - Newbie 1 11-03-2010 01:36 AM
Can't remove lv with dmsetup - "Device or resource busy" computerjack Linux - Software 1 07-19-2009 10:28 AM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 08:52 AM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 05:02 PM


All times are GMT -5. The time now is 12:42 AM.

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