LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2004, 07:27 PM   #1
zahoo
Member
 
Registered: Nov 2004
Location: EU, HUNGARY, Budapest
Distribution: Debian SID
Posts: 40

Rep: Reputation: 15
Question Mount problem - device already mounted or mount point busy


When I want to mount my fat32 filesystem on my primery slave hard drive I get the following message:

# mount /dev/hdb1 /mnt/fat32/
mount: /dev/hdb1 already mounted or /mnt/fat32/ busy

Of course I entered this command from a different directory than /mnt/fat32 so the directory shouldn't be busy. On the other hand this hard drive is not mounted at all to anywhere else. The /etc/fstab includes neither this partition. Or if I added the proper line for this partition into the /etc/fstab the drive was not mounted after boot-up.
The /mnt/fat32 is not mount point for any other partition or device so I don't try to mount my /dev/hdb1 partition to a previously mounted one.
If I check the partitions with fdisk the /dev/hdb1 seemes to be OK. I can even run fsck on /dev/hdb1 and it works fine.


I'm using debian unstable dist. with 2.6.5 kernel.

I also tried it with another vfat filesystem but I got the same error and the same result


Any suggestion?
 
Old 11-04-2004, 10:55 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try running this:

# mount -t vfat /dev/hdb1 /mnt/fat32
 
Old 11-05-2004, 01:24 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sometimes a program or one of your open shells will have a lock on a directory or file in the directory.

You can list all of the file locks with the command 'lsof'
So 'lsof' | grep '/mnt/fat32' | grep -v grep will list all locks on the /mnt/fat32 mountpoint.
 
Old 11-05-2004, 03:52 PM   #4
zahoo
Member
 
Registered: Nov 2004
Location: EU, HUNGARY, Budapest
Distribution: Debian SID
Posts: 40

Original Poster
Rep: Reputation: 15
Got it!

I got the solution for my problem.

1. The mount -t vfat /dev/hdb1 /mnt/fat32 didn't work out.

2. Nor was the /mnt/fat32 locked (lsof and fuser showed that the partition and the mount point are not in use).


The final intuition: I had some strange errors when I booted:

"kernel: device-mapper: dm-linear: Device lookup failed
kernel: device-mapper: error adding target to table"

So after some seeking it turned out that completely removing the evms package solves the problem: no more error massage as above in kern.log and mounting can be done without sweat!


Thank you guys for helping me! Your suggestions helped me a lot!
 
Old 01-31-2008, 12:10 PM   #5
larslynch
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
When copying partitions

I had the same error. When I had created my new /dev/sda entries, I had created all of them with the same Major and Minor number. Ooops. For those not familiar with /dev file properties, the disk nodes created with mknod must have the same Major number, but unique Minor numbers.

Another random fact:
Installing GRUB from a rescue disk with Grub version 0.97 will not work for a system with GRUB 0.93.
 
Old 01-31-2008, 04:43 PM   #6
zahoo
Member
 
Registered: Nov 2004
Location: EU, HUNGARY, Budapest
Distribution: Debian SID
Posts: 40

Original Poster
Rep: Reputation: 15
Evms caused mounting problem still an issue on Debian "etch"

Well, the strange thing is that I thought that this is some type of "unstable" issue. It turned out that it is not. When I posted the original message "etch" was not released at all. However now I have "etch" installed on a server and I faced the exact same problem (i.e. could not mount other device) when evms happaned to be installed. Evms and evms-ncurses are installed usually automatically when I install ncurses packages for kernel compiling. So still the best workaround for this installing ncurses packages then apt-get --purge remove evms evms-ncurses. This fixed the problem even in the case of "etch".

Zahoo
 
Old 02-22-2009, 05:49 AM   #7
Pkunk
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Exclamation

The root cause of this problem is because of an orphaned dmraid array.

I just ran the following commands-
/etc/init.d/dmraid stop
dmraid -r -E


^^^
RUN THE ABOVE COMAMNDS ONLY IF YOU ARE NOT USING RAID AND YOU HDD IS PART OF AN OLD RAID ARRAY

Quote:
Originally Posted by zahoo View Post
I got the solution for my problem.

1. The mount -t vfat /dev/hdb1 /mnt/fat32 didn't work out.

2. Nor was the /mnt/fat32 locked (lsof and fuser showed that the partition and the mount point are not in use).


The final intuition: I had some strange errors when I booted:

"kernel: device-mapper: dm-linear: Device lookup failed
kernel: device-mapper: error adding target to table"

So after some seeking it turned out that completely removing the evms package solves the problem: no more error massage as above in kern.log and mounting can be done without sweat!


Thank you guys for helping me! Your suggestions helped me a lot!
 
Old 08-28-2009, 05:02 PM   #8
jasonsmr
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
worked for me!!

Thanks the

dmraid -r -E
command was questionable to me as it sked to delete the pcb hda device and the nvidia device data

although, I had never used ether devices before hand I susspect that these were initialy installed. This is when I was playing aroung with my knoppix system settings for server controls and embeded systems using a PXE or DHCP server.

lol I just was reading up on how to manualy install these on a server, and I think I should stick with the step by step approach as I didnt se what was going on when suddenly by magic a nvidia controlled appeared as by magic in my fdisk -l and I suddenly no longer had access to my sdb hard scsi drive. lol

The first command worked for me however with the -stop switch

THANKS
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Fedora core 3 mount windows FAT32 partition device busy starney Fedora 4 11-30-2004 09:08 PM
Windows Partion Will Not Mount - Device Is Busy Anaksunaman Linux - Hardware 1 09-10-2004 12:08 PM
How do I map device serial number to its mount point directory? vagrawal Linux - Software 1 03-11-2004 12:25 AM
would it make sense to have 2 mount point for 1 device? sirpelidor Linux - Hardware 3 12-27-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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