/dev/sda1 already mounted or /mnt busy. (SATA Sil 3112)
Red HatThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/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??
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??
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
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.
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.
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.
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.
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!!
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. :-)
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.
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?.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.