Linux - GeneralThis 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
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.
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.
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 ?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
-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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.