trying to unmount this fat32 patrtion, and it always says "device is busy" even though non of my programs use it :(... other fat32 patritions unmount without a problems ...
thx
7
11-02-2001, 09:20 AM
Some program (or you) probably has it as it's working directory, thats why it's "busy".
anton
11-02-2001, 09:27 AM
7: nope, I checked few times, nothing has anything even related to it ...
7
11-02-2001, 09:37 AM
Are you sure you didn't start any programs while at /mnt/<mount point>? Sure you're not there while trying to unmount?
That's all I've got..
anton
11-02-2001, 09:56 AM
yes... 99.9% sure : )
demian
11-02-2001, 09:59 AM
Try lsof /dev/hdXn with X and n being whatever suits your partitions. You might want to run this as root to make sure you get all the processes listed.
anton
11-02-2001, 10:02 AM
don't have such command "lsof" :(
Lorithar
11-02-2001, 10:04 AM
*hmmms*
user or program using the /mount/point directory or something below,
user who's shell has as cwd the /mount/point or below.
Samba. .. if Samba knows about it and is supposed to share it...
NFS ... NFS can be piggish once started ... it will try to track just about any file system in its default configuration.
One point... there are likely dozens of processes out there...
try this..
fuser -n file [name/of/mountpoint]
the data is returned in numeric form, pid followed by the /type/ of access (man fuser for details)
anton
11-02-2001, 10:13 AM
fuser -n file /dev/hdg
returned nothing ...
anton
11-02-2001, 10:15 AM
and also, maybe this will be useful, after doing only few operations with files on that particular partition, linux made it read-only :mad: ... that's why I want to unmount it and than mount it as read/write ...
X_console
11-02-2001, 10:34 AM
Try this, telinit 1. That'll take you to single user mode and will shut down any unecessary programs. Then do a telinit 3 and then cd ~ and then try unmounting the partition again.
anton
11-02-2001, 10:42 AM
X_console: u wouldn't believe, but still "device is busy" :confused:
X_console
11-02-2001, 10:47 AM
Try to force it to unmount (not sure if this'll have any negative effect by the way) by using the -f option to umount. Have you tried rebooting it also? Try the umount -f in single user mode.
anton
11-02-2001, 10:53 AM
after rebooting it's still the same,
here's -f:
umount2: Device or resource busy
umount: /dev/hdg1: not mounted
umount: /mnt/win_j: Illegal seek
X_console
11-02-2001, 10:55 AM
So after you reboot, you still can't unmount the device? Is the device mounted automatically on bootup? Can I see the contents of your /etc/fstab and the result when you type mount?
anton
11-02-2001, 11:02 AM
yes, it's mounted on boot ...
after a very little time it becomes READ-ONLY after boot up ...
also, this all started to happen when something happened to my CPU and linux froze, and I had to reset the computer ... and at that time one of the programs was writing to that disk ... maybe this is the cause of this ...
/dev/hdc6 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdc1 on /mnt/win_c type vfat (rw,nosuid,nodev,umask=0)
/dev/hdd1 on /mnt/win_e type vfat (rw,nosuid,nodev,umask=0)
/dev/hdd5 on /mnt/win_f type vfat (rw,nosuid,nodev,umask=0)
/dev/hdd6 on /mnt/win_g type vfat (rw,nosuid,nodev,fat=32,umask=0)
/dev/hdc7 on /mnt/win_i type vfat (rw,nosuid,nodev,umask=0,fat=32)
/dev/hdg1 on /mnt/win_j type vfat (rw,nosuid,nodev,fat=32,umask=0)
/dev/hdg2 on /mnt/win_l type vfat (rw,nosuid,nodev,fat=32,umask=0)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0664,devgid=43)
X_console
11-02-2001, 11:12 AM
What happens if you change the options for that device from rw,user,exec,fat=32,umask=0 0 to just defaults and then reboot?
anton
11-02-2001, 11:27 AM
still the same ...
the most thing that I don't like that it's read-only :( ... I don't really care if I can unmount it ... I just want to figure out, why did it became read-only :(
X_console
11-02-2001, 11:41 AM
If you're using LILO, boot directly to single user mode when you get the LILO prompt:
linux 1
Your Windows partitions should still be mounted but any programs that could be writing to it shouldn't be running. You said it will turn to read-only after a while right? See if it happens now. If it doesn't, can you unmount it now?
Another thing to try is comment out the line in fstab that has it mount during bootup. Reboot and see if you can mount the partition manually. Does it become read-only again after a while? Can you unmount it then?
anton
11-02-2001, 11:48 AM
X-Console:
gonna try that now ...
but also , right now I tried and it's still not read-only ... though only root can write there ... I tried to copy files there, and it's still doesn't seem to turn into read-only ...
X_console
11-02-2001, 11:51 AM
Ok, well if it doesn't turn read-only in single user mode, then we know some program is trying to write to it. Then you can try to figure out what it is with ps aux and shut it down. Good luck, I gotta get ready for work. :D
anton
11-02-2001, 11:56 AM
hmm... it didn't go to a single user mode :(
X_console
11-02-2001, 12:02 PM
LILO? What about linux single? You need to type this at the LILO boot prompt, not on the command line.
anton
11-02-2001, 12:05 PM
yes, I understand that not at command line ;)
I'll try 'single' :)
anton
11-02-2001, 12:18 PM
with 'single' it hangs when starts up "window manager" , but if it's starts up window manager, I guess it's not a single anymore ...
Matches Malone
11-02-2001, 12:54 PM
A learned friend of mine suggests that this may be in security access settings, a possible "frag", when Linux bombed on ya...
RTMP :)
anton
11-02-2001, 02:01 PM
hmmm .... and how would I go about repairing it? :)
bdg1983
11-02-2001, 05:26 PM
I would think that Linux has detected a filesystem problem with that particular fat32 partition and switches to readonly as a precautionary measure to ensure that no further damage is done until the problem can be rectified.
Have you tried booting Windows and running a scandisk or whatever 3rd party disk checking software?
anton
11-03-2001, 01:04 AM
Logon Name Gone: yeah , I was thinking about that too ... away from my computer for a weekend, gonna try it on sunday night : )
though it takes quite a time ...
Linuxcool
11-03-2001, 01:05 AM
Try entering at the lilo boot prompt ' linux single init=/bin/sh '.
justlinux.com
Copyright Internet.com Inc. All Rights Reserved.