LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-23-2006, 08:46 PM   #1
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Rep: Reputation: 0
/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.
 
Old 10-24-2006, 04:42 PM   #2
Lenard
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: Reputation: 56
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).
 
Old 10-24-2006, 06:54 PM   #3
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 10-24-2006, 09:08 PM   #4
Lenard
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: Reputation: 56
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
 
Old 10-24-2006, 10:12 PM   #5
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 10-25-2006, 11:27 AM   #6
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
(SOLVED) /dev/sda1 already mounted.

Device mapper was causing the issue so I disabled dm-mod/dm-mirror and it mounted upon reboot!
 
Old 10-25-2006, 12:46 PM   #7
Lenard
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: Reputation: 56
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.
 
Old 10-25-2006, 01:43 PM   #8
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 10-25-2006, 08:59 PM   #9
Lenard
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: Reputation: 56
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.
 
Old 11-30-2006, 04:06 PM   #10
freetolio
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
So how do you turn off this device mapper? I am having the same problem.
 
Old 11-30-2006, 05:14 PM   #11
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 02-26-2007, 11:33 AM   #12
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Rep: Reputation: 20
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*
 
Old 02-26-2007, 12:14 PM   #13
psamuel01
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, Illinois
Distribution: Gentoo, CentOS, SuSE
Posts: 14

Original Poster
Rep: Reputation: 0
Good luck...

Please let me know if that solves it.
 
Old 06-02-2008, 08:19 AM   #14
sudarsun
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
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.
 
Old 10-10-2008, 03:59 PM   #15
katiusca
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Question 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
 
  


Reply

Tags
mount, sata


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
Ubuntu on sil 3112 with windows xp keevitaja Ubuntu 12 08-24-2006 10:27 AM
SIL 3112 SATA on CentOS 3.4 Tekerz Linux - Hardware 2 09-04-2005 09:26 AM
SATA RAID0 (SIL 3112) on FC3 Aardvark Linux - Hardware 2 11-15-2004 05:14 AM
cmd 649 & sil 3112 zonkers Linux - Newbie 3 05-11-2004 07:26 PM
SATA RAID on Linux: Sil 3112 or ICH5? Felgerkarb Linux - Hardware 0 10-22-2003 02:00 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration