LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-15-2010, 03:28 AM   #1
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 78

Rep: Reputation: 23
Is the disk partition mounted or not mounted?


Hi All

Seem to be having trouble with mounting a disk partition. It is important to say that this happens only occasionally, i.e. every few days, and resolves itself after a few reboots.

I keep all data files on a separate partition /dev/sda6 which is mounted on /data. From /etc/fstab:
Code:
/dev/sda6 	/data		ext3	defaults 	0       0
Since newly installing Ubuntu Karmic, it has occasionally failed to mount the disk and I get a response such as:
Code:
# mkdir /misc
# mount /dev/sda6 /misc
mount: /dev/sda6 already mounted or /misc busy
# umount /dev/sda6
umount: /dev/sda6 not mounted
(no, I don't cd to /misc). fdisk -l shows the partition
Code:
/dev/sda6            8182       38913   246854758+  83  Linux
e2fsck /dev/sda6 returns with no errors. There is nothing obvious in /var/log/messages or dmesg, except that it notes the existence of sda6 but simply doesn't mount it.

I'm not using any sort of logical volume management, which I believe has given similar problems to this.

The kernel is 2.6.31-17-generic i686, but it happens on a couple of immediately preceding kernels. The disk drive was purchased a couple of months ago, but I am aware that there is the possibility it could still be failing early.

Does anyone have any experience or clues about what may be happening?

cheers, Ken

PS I can't tell when it will recur so I may not necessarily reply for a few days.
 
Old 01-15-2010, 03:58 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
You can run the mount command without any arguments to get a list of all currently mounted devices and their options.

Code:
# mkdir /misc
# mount /dev/sda6 /misc
mount: /dev/sda6 already mounted or /misc busy
First of all, unless defined in fstab, you need to provide the full list of command options (-t ext3, etc.) if you want to mount a device. But it certainly looks like it thinks the device is already mounted. Why are you attempting to mount it to a different location anyway? Simply running "mount /data" or "mount /dev/sda6" should cause it to run the fstab command already defined.

Are you sure it's actually failing to mount, or is it perhaps a disk error or permissions problem or something that's keeping you from accessing it?
 
Old 01-15-2010, 05:13 AM   #3
mishkind
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
Did you try fuser /misc to find if any process is using it?
 
Old 01-16-2010, 02:06 AM   #4
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 78

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by David the H. View Post
You can run the mount command without any arguments to get a list of all currently mounted devices and their options.
That did not show it among the list of mounted filesystems.

Quote:
First of all, unless defined in fstab, you need to provide the full list of command options (-t ext3, etc.) if you want to mount a device. But it certainly looks like it thinks the device is already mounted. Why are you attempting to mount it to a different location anyway? Simply running "mount /data" or "mount /dev/sda6" should cause it to run the fstab command already defined.
I created a brand new directory to try to eliminate the possibility that the original was actually being used.

Quote:
Are you sure it's actually failing to mount, or is it perhaps a disk error or permissions problem or something that's keeping you from accessing it?
Well in fact I'm not sure. I would be surprised if it were a permissions problem given its random nature, and if it is a disk error, then I need to know what sort of action to take. I understood that the modern journalling filesystems handled disk errors fairly well (up to a point of course). The fsck command seemed to think the formatting was OK.

Quote:
Originally Posted by mishkind
Did you try fuser /misc to find if any process is using it?
Good suggestion. I'll do that next time it fails

cheers and thanks

Ken
 
  


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
How to scanning a mounted hard disk hcccc Linux - Newbie 3 01-18-2008 12:38 AM
HAL daemon does not reconize a mounted partition as mounted 888m Slackware 4 07-30-2007 12:58 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM
Permissions on mounted disk simanyay Linux - Software 2 03-30-2004 10:23 AM


All times are GMT -5. The time now is 05:28 AM.

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