LinuxQuestions.org
Help answer threads with 0 replies.
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 07-05-2006, 12:11 AM   #1
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Rep: Reputation: 15
unmount failed


hi all,
I have fc3 2.6.9-1.667 with two disk drives in a master slave configuration. I have mounted partisions of drive follwed by the following entries in the /etc/fstab file.
/dev/hdb1 /mnt/driveF auto defaults 0 0
/dev/hdb3 /mnt/driveG ext3 defaults 1 2


Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

"The following is the output of fdisk -l"


Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 4865 18595237+ f W95 Ext'd (LBA)
/dev/hda5 2551 4080 12289693+ b W95 FAT32
/dev/hda6 4081 4093 104391 83 Linux
/dev/hda7 4094 4158 522081 82 Linux swap
/dev/hda8 4159 4865 5678946 83 Linux

Disk /dev/hdb: 40.0 GB, 40060403712 bytes
16 heads, 63 sectors/track, 77622 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 20318 10240240+ c W95 FAT32 (LBA)
/dev/hdb2 20319 36984 8399664 7 HPFS/NTFS
/dev/hdb3 36985 57301 10239768 c W95 FAT32 (LBA)
/dev/hdb4 57302 77618 10239768 c W95 FAT32 (LBA)


The problem is that when I turn off PC following messege pops on

"umount failed device busy "
Even though I have closed all the files that I had openend from that drive.
However when I first do

"umount -l " for the drive and then shutdown I do not get the "FAIL" message.

Can any one help me figure out the glitch in it.

TIA

regards
tan...
 
Old 07-05-2006, 01:26 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Try installing lsof and running it on mountpoint of the drive.
It will show you.
 
Old 07-05-2006, 11:39 PM   #3
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
hi,
As you told about "lsof", the package was already installed. I used this command and I was able to see the list of opened files.
Then probably closing the file may remove the error.

Actually I wanted to know "why is it happeneing that even after closing an openned file (say a pdf doc), I get device busy error!", because earlier I was using rh9 2.4 kernel, and I never faced this problem.
So is it because of any missing configuration or setting ?

TIA
regards
tan...
 
Old 07-06-2006, 01:45 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Say a pdf doc... Can you actually tell: I open the file in format 'xyz' with application buggyFataMorgana version 2.71828 and upon apprently closing application file stays open according to lsof? Also mention if "ps auxwww | grep 'buggyFataMorgana' " thinks process is still in memory.

And did you manage to close file and cleanly unmount disk? If yes, how?
 
Old 07-06-2006, 03:50 AM   #5
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tanalam

"umount -l " for the drive and then shutdown I do not get the "FAIL" message.
See as I have mentioned in the first post itself
umount -l
does not give such error
So can u tell what exactly does this "-l" option doing

TIA

regards
tan...
 
Old 07-06-2006, 04:25 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
-l means 'lazy umount' : file system is inaccessible for new open's, but all old opened file are still valid and if they are all closed at some moment, filesystem is finally unmounted.

And by cleanly unmounting I meant without '-l'. What are open files?
 
Old 07-06-2006, 11:15 AM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by tanalam
The problem is that when I turn off PC following messege pops on
Are you shutting down the system gracefully, or just hitting the power button to kill it?

From a GUI (Gnome, KDE, etc.) there should be a menu choice of "Log Off" and one it's subitems should be "Shutdown Computer" (or something similar).

From a terminal window, login as root and run "shutdown" or "telinit 0" to shut down cleanly.

Ctrl-Alt-Del and/or the power button can sometimes be configured for clean shutdown as well, but the point is, they have to be configured (AFAIK). Maybe yours is not, or not correctly. I do not shutdown this way myself so I cannot tell you specifically how to configure things. Probably something in the BIOS and also in the OS needs to be set.
 
Old 07-06-2006, 12:07 PM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Looks like correct shutdown - auto-umount occurs.
 
Old 07-07-2006, 12:15 AM   #9
tanalam
LQ Newbie
 
Registered: Dec 2005
Distribution: Redhat, FC
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by haertig
From a GUI (Gnome, KDE, etc.) there should be a menu choice of "Log Off" and one it's subitems should be "Shutdown Computer" (or something similar).
yes I am using that only for shutdown, and if I am not wrong the "auto umount" should run automatically and kill the process using the mounted drive. Because I have been doing so with my earlier linux version rh9
But since having FC3 I am having this problem so I was thinking that there is some configuration missing that is needed to be done.

TIA
regards
Tan...
 
Old 07-07-2006, 08:50 AM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I'm wondering if you might have something started up in your multiuser init scripts (e.g., /etc/rc2.d/S20Program, /etc/rc5.d/S20Progam) but don't have a matching kill script (e.g., /etc/rc0.d/K20Program, /etc/rc6.d/K20Program). Thus "Program" is left running when you try to shutdown or reboot, holding a filesystem open when your shutdown/reboot attempts to unmount it.

Just a guess.
 
Old 07-11-2006, 10:48 AM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
a) Why are you still using FC3 when FC5 is available?

b) I notice that all of us who have answered do not list RH, RHEL, or FC amongst our distros, perhaps you should have posted this in an RH/FC forum.

c) Are there any FC/RH folks there that can say if this is a known bug/feature of FC3?
 
  


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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM
failed initrd unmount safeboot mode asainat Mandriva 3 06-25-2004 09:58 AM
unpacking of archive failed: cpio: read failed-input/output error rafc Linux - Newbie 0 04-21-2004 09:03 AM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM

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

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