LinuxQuestions.org
Visit Jeremy's Blog.
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 01-31-2005, 09:37 AM   #1
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Rep: Reputation: 30
A Ghoast in the machine


Hi peeps

I have a rather annoying problem, no! not hemeroids
I have a CD writter and a DVD-RW and each time I close the door a few moments later
they open so now I have a system where the doors are constantly out.

What is the reason and how can I stop it happening?

Thanks for any help.
 
Old 01-31-2005, 11:11 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Hmmmmm.. strange.

here' a bit of a hack...

updatedb
locate eject | grep bin

does it find any prgrams in a bin folder named "eject"

whatever is ejecting your disk drives is probably doing it with this porgram, rename it to "eject-renamed"

then have a look in your ctrl+atl+F1 console and system logs for any porgrams sending "eject command not found" errors, then when you know whats doing it, you can start working out why...

change eject back to its origonal name afterwards.
 
Old 01-31-2005, 11:21 AM   #3
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
hi where do I add the command updatedb? entered it as root and in terminal and in both cases it comes up command not found.

Not to clever with command lines yet so please bare with me.
 
Old 01-31-2005, 11:23 AM   #4
Snipersnest
Member
 
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269

Rep: Reputation: 30
its in the /usr/sbin I believe... but mine worked fine on the straight command line...
 
Old 01-31-2005, 11:38 AM   #5
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Snipersnest
its in the /usr/sbin I believe... but mine worked fine on the straight command line...
Ok went through root tried updatedb again ( no luck ) went into /usr/sbin looked around but can't find

eject | grep bin

Just typed grep bin in command but nothing is happening but the drives are enjoying themselves. So something works. Any other ideas for sorting this???????

Last edited by bograt; 01-31-2005 at 11:54 AM.
 
Old 01-31-2005, 12:30 PM   #6
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
hmm...I think I have to put a space between update and db.

so update db

-I'll go check
 
Old 01-31-2005, 12:33 PM   #7
Snipersnest
Member
 
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269

Rep: Reputation: 30
nah it is updatedb ...I just tried it when I was home at lunch. It still works for me on the command line as root. I logged in as root, I didn't su.
 
Old 01-31-2005, 12:35 PM   #8
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
yep.........you're right. updatedb. need to keep my cheatsheet close at hand
 
Old 01-31-2005, 12:59 PM   #9
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Nope! via root entered this and got this

Password:
linux:/home/dad # updatedb
bash: updatedb: command not found
linux:/home/dad #

& in ordinary terminal

dad@linux:~> updatedb
bash: updatedb: command not found
dad@linux:~>

BTW I am the only one who uses Suse and am continuously logged in as root.

Last edited by bograt; 01-31-2005 at 01:01 PM.
 
Old 01-31-2005, 01:12 PM   #10
Snipersnest
Member
 
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269

Rep: Reputation: 30
so dad = root??? That makes no sense at all to me. I always though by logging in as root the username was replaced with root@localhost rather than dad@localhost ...Am I wrong?
 
Old 01-31-2005, 01:25 PM   #11
MylesCLin
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164

Rep: Reputation: 30
Quote:
Originally posted by bograt

BTW I am the only one who uses Suse and am continuously logged in as root.
Bograt, people don't login as root all the time because if you fuck something up, you fuck something up.
They don't just do it because it separates user data.

Do NOT, I repeat do NOT login as root at all times.
 
Old 01-31-2005, 01:52 PM   #12
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
in other words, you dont have slocate installed....

should have surgested this first.. oops.. use
"whereis eject"
 
Old 01-31-2005, 03:23 PM   #13
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Snipersnest
so dad = root??? That makes no sense at all to me. I always though by logging in as root the username was replaced with root@localhost rather than dad@localhost ...Am I wrong?
Sorry making assumptions as in the desktop when I go to start menu there is only an option for terminal in the drop down boxes no root icon i go through terminal and select new root hope that clarifies this I just assumed that dad was root?? is something missing?? I'll check back for replies in a bit.

Ta

Ok downloaded slocate and shadow-utils and installed waiting for guidance.

Last edited by bograt; 01-31-2005 at 03:36 PM.
 
Old 01-31-2005, 03:35 PM   #14
Snipersnest
Member
 
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269

Rep: Reputation: 30
Yeah you need to log out and login as root... your logged in as a user... which is what I thought. Just press CNTL ALT F1 and login...to get back to your X desktop its CNTL ALT F7 or F6...

Let me know what happens once you login as root and try updatedb
 
Old 01-31-2005, 03:52 PM   #15
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Snipersnest
Yeah you need to log out and login as root... your logged in as a user... which is what I thought. Just press CNTL ALT F1 and login...to get back to your X desktop its CNTL ALT F7 or F6...

Let me know what happens once you login as root and try updatedb
Ok did that and got this message

slocate could not find the group slocate in the catagory /etc/group file

Fatle error: this is a result of the missing or corupt group file

I've just installed slocate so it should find it

Update no wonder installed slocate for MDK shit does anyone have a link for suse 9.1 i586???? rpm

Last edited by bograt; 01-31-2005 at 04:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 01:23 PM
trying to copy files from another machine to the local machine using telnet,..how? shrike_912 Programming 6 03-14-2006 05:45 PM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 11:20 AM
Stand-by machine in case real machine crashes jlinkels Linux - General 1 05-19-2005 09:28 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM


All times are GMT -5. The time now is 01:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration