LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2007, 07:01 PM   #1
Gintaras
LQ Newbie
 
Registered: Oct 2007
Location: Stevensville, Md
Distribution: Debian, pclinux2007
Posts: 4

Rep: Reputation: 0
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!?!?!
 
Old 10-08-2007, 07:07 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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.
 
Old 10-08-2007, 07:45 PM   #3
Gintaras
LQ Newbie
 
Registered: Oct 2007
Location: Stevensville, Md
Distribution: Debian, pclinux2007
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 10-08-2007, 09:10 PM   #4
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
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.
 
Old 10-09-2007, 07:46 PM   #5
Gintaras
LQ Newbie
 
Registered: Oct 2007
Location: Stevensville, Md
Distribution: Debian, pclinux2007
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
umount



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
Can't get umount to work - device is busy ivanlq Linux - Newbie 6 12-02-2006 12:07 AM
Cannot umount - device busy rust8y Linux - General 5 07-16-2006 08:41 PM
umount :device busy Pedroski Linux - Hardware 14 12-29-2004 03:37 PM
umount - device is busy - with what??? Moebius Linux - Software 16 12-08-2004 10:32 AM
fam and umount says device is busy Brian1 Fedora 2 10-05-2004 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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