| Red Hat This forum is for the discussion of Red Hat Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-23-2006, 08:46 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Rep:
|
/dev/sda1 already mounted or /mnt busy. (SATA Sil 3112)
Hello and good day!
I have a CentOS 4.4 box with a PATA drive as the system drive. I also inserted a Belkin SATA controller (Sil 3112 chip) with a WD 400G drive to use as my archive. I am trying to mount it for NFS/SAMBA on the mount point /shared. Whether I use /mnt or /shared I get the following message:
"mount: /dev/sda1 already mounted or /mnt (/shared) busy".
I booted to a Gentoo livecd and it mounted just fine. I tried lsof and it shows nothing. I am really stumped as this never happened under SuSE, Gentoo, Debian. The file system is ext3 and I have tried every option with mount and even some of the suggestions on other similar posts.
Thank you for any feedback.
Dean.
By the way, lspci shows the device and the kernel module is loaded. Should I compile it into the kernel??
Last edited by psamuel01; 10-23-2006 at 08:53 PM.
|
|
|
|
10-24-2006, 04:42 PM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Show the exact command you used please. And the output from the command; fdisk -l (that is the letter 'L' and not the number one).
|
|
|
|
10-24-2006, 06:54 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Original Poster
Rep:
|
Quote:
|
Originally Posted by Lenard
Show the exact command you used please. And the output from the command; fdisk -l (that is the letter 'L' and not the number one).
|
I used:
mount /dev/sda1 /mnt or /shared
mount -t ext3 /dev/sda1 /mnt or /shared
mount -t auto /dev/sda1 /mnt or /shared
And the fdisk:
Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2422 19454683+ 83 Linux
/dev/hda2 2423 2549 1020127+ 82 Linux swap
Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 48640 390700768+ 83 Linux
This should be inmaterial as again it has worked under every other Linux that I have used with same commands. And fdisk -l is the same. So I assume it is related to Redhat/CentOS??
Last edited by psamuel01; 10-24-2006 at 06:56 PM.
|
|
|
|
10-24-2006, 09:08 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Covering some basics..........
Might it be already mounted in the /media directory??? or someplace else??? Does the hard drive have an entry in /etc/fstab??? Are you using maybe using LVM and the hard drive is already in use, a quick check of how much available space you have might be helpful; df -h
|
|
|
|
10-24-2006, 10:12 PM
|
#5
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Original Poster
Rep:
|
Quote:
|
Originally Posted by Lenard
Covering some basics..........
Might it be already mounted in the /media directory??? or someplace else??? Does the hard drive have an entry in /etc/fstab??? Are you using maybe using LVM and the hard drive is already in use, a quick check of how much available space you have might be helpful; df -h
|
No, no, no, and NO! And df will not show a drive if it is not mounted. Remember my primary drive is hda so the sda1 is the only partition. This is a CentOS issue as I just installed RHEL AS 4.0 and WHOLA, it worked. Trust me I have checked all of the obvious things to no avail.
|
|
|
|
10-25-2006, 11:27 AM
|
#6
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Original Poster
Rep:
|
(SOLVED) /dev/sda1 already mounted.
Device mapper was causing the issue so I disabled dm-mod/dm-mirror and it mounted upon reboot!
|
|
|
|
10-25-2006, 12:46 PM
|
#7
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Damm......... I keep forgetting about device-mapper since it causes problems for me, I just turned it off also. Glad you figured it out and got it going.
|
|
|
|
10-25-2006, 01:43 PM
|
#8
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Original Poster
Rep:
|
Quote:
|
Originally Posted by Lenard
Damm......... I keep forgetting about device-mapper since it causes problems for me, I just turned it off also. Glad you figured it out and got it going.
|
Yeah I never gave it any thought because I have no lv's. But when I tried to mount it using the label it mentioned a duplicate name and show the /dev/mapper... notation.
Now I disabled it by commenting out the "md" and "dm-mod" lines in modules.dep. Is there a better way? I am studying for the RHCE so I need to learn this stuff. I noticed that you have a RHCE and I was wondering what book(s) you used if any.
Thank you Lenard.
Dean.
P.S. I noticed you are in Indiana. Where you born there? I was born in Lafayette and I live in Chicagoland now.
|
|
|
|
10-25-2006, 08:59 PM
|
#9
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Just a lot of learning over the years in the school of hard knocks plus reading the manuals and at the time the latest edition of the Red Hat Linux Bible.
http://www.redhat.com/docs/manuals/enterprise/
http://www.amazon.com/Fedora-Red-Ent.../dp/0471754919
Nope, I currently live in Columbus but I was born in Cleveland Heights, Ohio and raised mostly in Wayne, Michigan.
|
|
|
|
11-30-2006, 04:06 PM
|
#10
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Rep:
|
So how do you turn off this device mapper? I am having the same problem.
|
|
|
|
11-30-2006, 05:14 PM
|
#11
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Original Poster
Rep:
|
Quote:
|
Originally Posted by freetolio
So how do you turn off this device mapper? I am having the same problem.
|
Edit the following file:
/lib/modules/`uname -r`/modules.dep
And remove/comment(#) all lines with dm-mod/dm-mirror.
To totally get rid of it you can recompile the kernel and remove the entries, but then every time you update your system you have to remember to manually update the kernel or it gets replaced with another stock kernel. Another reason I REALLY enjoy Gentoo!!
Take care.
|
|
|
|
02-26-2007, 11:33 AM
|
#12
|
|
Member
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74
Rep:
|
THANK YOU for this post... I suspect this may be the solution to a problem I am having. I'll give it a shot and reboot when my users go home for the day.
I have 3 PATA HDD's in my system- One 40 gb was a Redhat 8.0 install. I nuked and installed RHEL AS 4.0 on it, and left all the other HDD's alone. When I booted back up, all was good, except the most important HDD /dev/hdb1 (samba share) shows symptoms described here. Cannot be mounted- and there is no sign of it being in use- despite the error message I get. lsof, mount, the whole bunch of suggestions. But a reboot with a Knoppix 3.7 works just fine, and /dev/hdc1 was a blank HDD, so I copied over all the files from /dev/hdb1 to it so that my users aren't down come Monday (today). Smooth sailing with that.
I'm hoping this is the trick that will solve my problems tonight so I can rsync the changes from /dev/hdc1 to /dev/hdb1 and re-adjust the samba.conf paths and nobody'll know the difference. :-)
*crossing fingers*
|
|
|
|
02-26-2007, 12:14 PM
|
#13
|
|
LQ Newbie
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14
Original Poster
Rep:
|
Good luck...
Please let me know if that solves it.
|
|
|
|
06-02-2008, 08:19 AM
|
#14
|
|
LQ Newbie
Registered: Jun 2008
Posts: 1
Rep:
|
In my case, removing the dm_mod from modules.dep did not work. After the reboot, still I was not able to mount my SATA drives.
I had two 120Gb SATA_NV drives and had 2 partitions each on them as /dev/sda[12], /dev/sdb[12]
I had to use dmsetup command to solve my problem. I had noticed that the mapper had created the following device map for my SATA devices.
Quote:
crw------- 1 root root 10, 63 Jun 3 00:02 control
brw-rw---- 1 root disk 253, 0 Jun 3 00:02 nvidia_haddhddi
brw-rw---- 1 root disk 253, 1 Jun 3 00:02 nvidia_haddhddip1
brw-rw---- 1 root disk 253, 2 Jun 3 00:02 nvidia_haddhddip2
|
I had to run the following commands to release my sata devices permanently out of device mapper.
Quote:
dmsetup remove nvidia_haddhddip1
dmsetup remove nvidia_haddhddip2
dmsetup remove nvidia_haddhddi
|
After these commands, I am able to mount my sata devices without even rebooting the machine.
|
|
|
|
10-10-2008, 03:59 PM
|
#15
|
|
LQ Newbie
Registered: Oct 2008
Posts: 1
Rep:
|
device mapper problem
Hi, thanks a lot for this post, I had the problem mounting a second drive, I solved it modifying modules.dep file, BUT, if I modify the /etc/fstab file to mount the disk automaticaly at reboot time, modules.dep is overwritting and comments to lines with dm-mod disappear. Somebody has this error?
SUDARSUN, how did you noticed that the mapper had created the device map files?.
Thanks,
Katiusca
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:39 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|