LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-01-2005, 11:29 AM   #1
giosue_c
Member
 
Registered: Mar 2004
Location: Kansas
Distribution: Debian!
Posts: 39

Rep: Reputation: 15
I have a haunted directory!


I'm running debian (testing) with a 2.6 kernel and KDE. For some reason any directory that I put under the /media directory gets deleted! I have tried setting the sticky bit, but it doesn't help.

josh@minerva:~$ ls -la /media/
total 4
drwxr-xr-x 4 root root 1024 2005-01-01 05:19 .
drwxr-xr-x 23 root root 1024 2005-01-01 10:48 ..
lrwxrwxrwx 1 root root 7 2004-12-18 08:56 floppy -> floppy0
drwxr-xr-x 2 root root 1024 2004-12-18 08:56 floppy0
lrwxrwxrwx 1 root root 4 2004-12-18 08:56 usb -> usb0
drwxr-xr-x 2 root root 1024 2004-12-18 08:56 usb0


there is a listing of the directory. If I for example add the directory /cdrom0, after I restart the system it will be gone! What gives? Is my system possesed? Is this directory haunted?
 
Old 01-01-2005, 11:57 AM   #2
giosue_c
Member
 
Registered: Mar 2004
Location: Kansas
Distribution: Debian!
Posts: 39

Original Poster
Rep: Reputation: 15
solved!

Ok. I had given up solving this one when I finally posted here, but then I tried a few more things and discovered what the problem was. I vaugely remembered saying yes to installing a program that would manage cdrom devices for me when I first installed debian. Unfortunately I had no Idea what the program was called... On a hunch I went and did a recursive grep for the directory i was trying to create (cdrom0) and got a few hits related to a program called discover. Discover was supposed to be mounting my cdrom devices for me, but didn't appear to be working, and instead it was just deleting those directories although I don't know why. Anyway I ran dpkg-reconfigure on discover1 and shut it off, created my directories, rebooted, and all was well. So the ghost was really a daemon.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
eek! My KDE is haunted fannymites Linux - Software 7 01-08-2005 06:35 PM
haunted by fsck kadaver Debian 2 07-30-2004 06:59 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
Haunted mount points... wooo! TrashCanMan Linux - Newbie 14 08-06-2003 12:35 AM


All times are GMT -5. The time now is 11:32 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration