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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
01-31-2005, 08:37 AM
|
#1
|
Member
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167
Rep:
|
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.
|
|
|
01-31-2005, 10:11 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
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.
|
|
|
01-31-2005, 10:21 AM
|
#3
|
Member
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167
Original Poster
Rep:
|
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.
|
|
|
01-31-2005, 10:23 AM
|
#4
|
Member
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269
Rep:
|
its in the /usr/sbin I believe... but mine worked fine on the straight command line...
|
|
|
01-31-2005, 10:38 AM
|
#5
|
Member
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167
Original Poster
Rep:
|
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 10:54 AM.
|
|
|
01-31-2005, 11:30 AM
|
#6
|
Member
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98
Rep:
|
hmm...I think I have to put a space between update and db.
so update db
-I'll go check
|
|
|
01-31-2005, 11:33 AM
|
#7
|
Member
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269
Rep:
|
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.
|
|
|
01-31-2005, 11:35 AM
|
#8
|
Member
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98
Rep:
|
yep.........you're right. updatedb. need to keep my cheatsheet close at hand
|
|
|
01-31-2005, 11:59 AM
|
#9
|
Member
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167
Original Poster
Rep:
|
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 12:01 PM.
|
|
|
01-31-2005, 12:12 PM
|
#10
|
Member
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269
Rep:
|
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?
|
|
|
01-31-2005, 12:25 PM
|
#11
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164
Rep:
|
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.
|
|
|
01-31-2005, 12:52 PM
|
#12
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
in other words, you dont have slocate installed....
should have surgested this first.. oops.. use
"whereis eject"
|
|
|
01-31-2005, 02:23 PM
|
#13
|
Member
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167
Original Poster
Rep:
|
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 02:36 PM.
|
|
|
01-31-2005, 02:35 PM
|
#14
|
Member
Registered: Jan 2005
Location: SC
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 269
Rep:
|
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
|
|
|
01-31-2005, 02:52 PM
|
#15
|
Member
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167
Original Poster
Rep:
|
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 03:12 PM.
|
|
|
All times are GMT -5. The time now is 06:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|