LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   umount device busy ...ARGGHHH (https://www.linuxquestions.org/questions/linux-newbie-8/umount-device-busy-argghhh-590376/)

Gintaras 10-08-2007 07:01 PM

umount device busy ...ARGGHHH
 
Newbie needs help. have been working through installing Debian/Samba to use as a server. (my first one!!!) I have mostly everything working but cannot get the second internal drive to automatically mount thou it was in there during the original install.

All I want to do is edit FSTAB but cannot save. I understand that I need to umount but get device busy. I have mounted the cd and went there and tried to run terminal and umount but still get 'device busy'. Not sure what I have missed something!?!?!

pljvaldez 10-08-2007 07:07 PM

Did you edit fstab as the root user? What do you need to umount? You can use the lsof command to see what program is still accessing the drive. Then use kill to close that process.

Gintaras 10-08-2007 07:45 PM

I did edit as FSTAB as root. I think that I need to umount so that I can save the edited FSTAB. I was getting access denied when trying to save. I was reading in some posts that I need to umount so that I can actually write the edited file. I ran LSOF but not sure what I am looking for. I ran lsof /var and nothing came up.

SlowCoder 10-08-2007 09:10 PM

You shouldn't need to umount anything to save fstab. There may be something holding it hostage, though, and keeping you from saving.

Try
Code:

lsof | grep fstab
to see if anything shows.

Generally you need to be root to mount/umount a device also.
Try
Code:

lsof | grep /media/cdrom
or similar to see what's using your cdrom mount.

Gintaras 10-09-2007 07:46 PM

run this command 'lsof | grep fstab' and got 'can't stat() ext3 files system /deve/static/dev Output information maybe incomplete.'

Just to mention again. this drive was in when Debian was installed. Thou it was recognized, it did not get setup in fstab on install and can be mounted manually.


All times are GMT -5. The time now is 09:39 AM.