View previous topic :: View next topic |
Author |
Message |
KrossFIN n00b
Joined: 08 May 2010 Posts: 63 Location: Finland, Oulu
|
Posted: Sun Sep 26, 2010 9:06 am Post subject: /etc/make.conf keeps going blank all the time. |
|
|
My /etc/make.conf keeps dissappearing for some reason. Current one that was destroyed was my sixth version.
Why does this happen?
No, it wasn't in use at a crash.
filesystem=xfs
EDIT: Actually it is there but it goes blank. _________________ Gentoo Linux user
~amd64 user
no-multilib user
KDE user
Last edited by KrossFIN on Sun Sep 26, 2010 1:55 pm; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Sep 26, 2010 11:18 am Post subject: |
|
|
You are asking us why a file on your disk is delete ?
So except trying to chmod 0600 your make.conf, we can't find the answer for you.
Because it's not a normal behavior from portage, then it could be anything : ghosts, hackers, friends, familly, you (drunk), you (not drunk but doing stupids things on the file, like setting logrotate to rotate the make.conf...), autoupdate dumb script...
(even i'll won't bet my hand on it, i'm still pretty confident you could remove ghosts from the list) |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Sep 26, 2010 11:32 am Post subject: |
|
|
krinn wrote: | ...not drunk but doing stupids things on the file, like setting logrotate to rotate the make.conf... |
I do agree with krinn. I could even add that even you, crazy weirdo, following some krinn's howto would not lead to this situation.
1/ What do you mean by "it changes to 'empty document'" ?
No file can get that kind of status. Would it be some interpretation made by some editor ? Which one ?
2/ Is the /etc/make.conf file deleted or emptied ?
When this reoccurs, can you post the output of
Code: | ls -uils | grep make |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
|
Back to top |
|
|
KrossFIN n00b
Joined: 08 May 2010 Posts: 63 Location: Finland, Oulu
|
Posted: Sun Sep 26, 2010 2:08 pm Post subject: |
|
|
No, I usually don't touch my gentoo box when drunk... I don't want to wake up in the morning and wonder why all my partitions are written full of 0.
No, it is not deleted, it just blanks.
It appeared to blank on my older systems too.
No chmod experiments on this box.
ONLY access by me has been done by nano.
OFFTOPIC: What is #emerge --depclean supposed to do? (in my case it would eventually remove itself and my box propably) _________________ Gentoo Linux user
~amd64 user
no-multilib user
KDE user |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Sep 26, 2010 2:23 pm Post subject: |
|
|
Once again, what do you mean by blank ?
Its size = 0 ?
Some editor's vue of the file ? |
|
Back to top |
|
|
KrossFIN n00b
Joined: 08 May 2010 Posts: 63 Location: Finland, Oulu
|
Posted: Sun Sep 26, 2010 2:29 pm Post subject: |
|
|
Don't know about size but..blank in my case means this:
Code: | # nano -w /etc/make.conf |
shows me
_________________ Gentoo Linux user
~amd64 user
no-multilib user
KDE user |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Sep 26, 2010 2:46 pm Post subject: |
|
|
KrossFIN wrote: | OFFTOPIC: What is #emerge --depclean supposed to do? (in my case it would eventually remove itself and my box propably) |
man emerge wrote: | Cleans the system by removing packages that are not associated with explicitly merged packages..." |
make.conf is not part of a package associated with any explicitely merged package.
Moreover, packages members of the world set will always be kept => do not fear any recursive destroying action on your system.
From your last info, please :
1/ Do you suspect any other file in /etc having similar troubles ?
2/ Backup your /etc/make.conf in /etc/make.conf.0
3/ Give the ouput of ls -iuls | grep make next time it occurs[/quote] |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Sep 26, 2010 2:51 pm Post subject: |
|
|
Code: | touch tempty
echo > tblank
echo " " > tbigblank
ls -l t*
-rw-r--r-- 1 root root 79 26 sept. 16:48 tbigblank
-rw-r--r-- 1 root root 1 26 sept. 16:47 tblank
-rw-r--r-- 1 root root 0 26 sept. 16:46 tempty |
So size & blank is not the same as you see.
Last edited by krinn on Sun Sep 26, 2010 2:53 pm; edited 1 time in total |
|
Back to top |
|
|
KrossFIN n00b
Joined: 08 May 2010 Posts: 63 Location: Finland, Oulu
|
Posted: Sun Sep 26, 2010 2:52 pm Post subject: |
|
|
No, I don't see any change in the other files in /etc.
OffTopic: In my case emerge --depclean removed xorg,kde,portage-utils,mesa-progs,dhcpcd and loads of other stuff(and still would).
I'll backup it from now.
I'll post the output of "ls -iuls | grep make" if/when this will reappear.
Now I have to get back writing my make.conf for the seventh time..
Ok, I get it, blank and size ain't same thing. _________________ Gentoo Linux user
~amd64 user
no-multilib user
KDE user |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Sep 26, 2010 2:56 pm Post subject: |
|
|
emerge --depclean -pv
Don't just run depclean like that, use pretend and see what it will do before going with the havock.
And it just remove unused file, if you have plenty hdd space, just don't run it and keep them.
edit: if you have a recent portage version, you can just also
Code: | cp /etc/make.conf /etc/portage/
|
Not only you've made a double of that make.conf, but portage will overwrite your /etc/make.conf with it |
|
Back to top |
|
|
KrossFIN n00b
Joined: 08 May 2010 Posts: 63 Location: Finland, Oulu
|
Posted: Sun Sep 26, 2010 3:35 pm Post subject: |
|
|
Well, I hope it won't do it again.
Thank you for your help.
I didn't know that KDE and xorg-server are unused files though.. _________________ Gentoo Linux user
~amd64 user
no-multilib user
KDE user |
|
Back to top |
|
|
optiluca Guru
Joined: 16 Jan 2006 Posts: 545 Location: Rivergaro, Italy
|
Posted: Sun Sep 26, 2010 7:12 pm Post subject: |
|
|
Just a thought, but do you have any free space on the drive? I've had some equally peculiar amnesia problems with a full drive, so worth checking _________________ # "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"
http://www.rinkworks.com/stupid/cs_mincing.shtml |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Sep 26, 2010 7:42 pm Post subject: |
|
|
KrossFIN wrote: | OffTopic: In my case emerge --depclean removed xorg,kde,portage-utils,mesa-progs,dhcpcd and loads of other stuff(and still would). |
Gee ! There must be something rotten in the kingdom of denmark...
Sorry... Finland... ! Not very far from anyway...
BTW... this situation is going very far from just loosing your make.conf.
I agree with optiluca.
Post the output of df. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Sep 26, 2010 10:02 pm Post subject: |
|
|
blank "world" coming? |
|
Back to top |
|
|
|