kanotix.com

General Support - get rid of remove-kernel-completely if you still have it

kenyee - 13.08.2006, 21:31 Uhr
Titel: get rid of remove-kernel-completely if you still have it
Not sure how old it is, but if you still have it, get rid of it before you type it by mistake instead of the alternative command "remove-all-kernels-completely". If you do, you won't notice that it deleted a bunch of files until you reboot the next time and it can't find any kernel modules to load...whoops Auf den Arm nehmen

BTW, if you do this, boot using a Kanotix live image (I also had to do a vgscan; vgchange -ay because I'm running LVM), download the latest kernel and reinstall it and you'll be fine...
devil - 13.08.2006, 21:37 Uhr
Titel: get rid of remove-kernel-completely if you still have it
remove-kernel-completely removes your booted kernel, whereas remove-all-kernels-completely removes all, but the booted one.

greetz
devil
kenyee - 13.08.2006, 22:00 Uhr
Titel: RE: get rid of remove-kernel-completely if you still have it
Why would you want to remove your booted kernel? Auf den Arm nehmen
Removing all the others except the one you're using makes more sense IMHO Smilie
Richard - 13.08.2006, 22:15 Uhr
Titel: RE: get rid of remove-kernel-completely if you still have it
name suggestions:
remove-kernel-completely -> remove-active-kernel # remove booted kernel
remove-all-kernels-completely -> remove-all-other-kernels # removes all but the active
ockham23 - 13.08.2006, 22:23 Uhr
Titel:
It's s quite simple: Don't boot it if you want to give it the boot.
slh - 13.08.2006, 22:41 Uhr
Titel:
Sollen wir nebenbei noch "rm", "dd", "cat", "mkfs", "dpkg", "apt-get" etc. umbenennen?

--
Edit: sorry language multitasking is confusing...
<<Should we rename "rm", "dd", "cat", "mkfs", "dpkg", "apt-get" etc. as well?>>
I agree that some naming conventions could have been more fortunate, but I don't see an immediate reason to act either.
Swynndla - 13.08.2006, 22:56 Uhr
Titel:
Well, "remove-all-kernels-completely" would logically imply the all kernels, including the current one, would be removed.

May be better to rename:
"remove-all-kernels-completely" to "remove-all-old-kernels-completely"
and rename:
"remove-kernel-completely" to "remove-current-kernel-completely"
h2 - 13.08.2006, 23:07 Uhr
Titel:
yes, of all the kanotix scripts, those two are the most confusingly named. I asked repeatedly about remove all kernels completely since that was not what I wanted to do.

Swynndia's names make sense, and would prevent future unfortunate errors caused by unclear naming. However, this feature is probably the next misc tweak item I'm adding to my script, with a full text explanation of the consequences of the chosen action, so at least for script users it won't be confusing.

Actually, to make it clear, the names could be:

1. remove-current-kernel-completely
2. remove-all-non-current-kernels-completely

because it's actually the non current, not the old, kernels, that are removed, at least if I understand that right.
mylo - 13.08.2006, 23:12 Uhr
Titel:
In the states it is necessary to explain totally all and everything "kiddy-safely".

Example: If you sell a hot coffee, you have to explain to the buyer who bought a hot coffee that the coffee bought as hot, might be hot (what a surprise!)!

In Europe the people know that, as they expect they get what they buy!

mylo

p. s.: If you sell a coffee in the states in any case you have a problem! Either its to hot or cold you risk to pay there millions of dollars...

mylo
piper - 13.08.2006, 23:18 Uhr
Titel:
McFact 1

For years, McDonald's had known they had a problem with the way they make their coffee - that their coffee was served much hotter (at least 20 degrees more so) than at other restaurants.

McFact No. 2:

McDonald's knew its coffee sometimes caused serious injuries - more than 700 incidents of scalding coffee burns in the past decade have been settled by the Corporation - and yet they never so much as consulted a burn expert regarding the issue.

McFact No. 3:

The woman involved in this infamous case suffered very serious injuries - third degree burns on her groin, thighs and buttocks that required skin grafts and a seven-day hospital stay.

McFact No. 4:

The woman, an 81-year old former department store clerk who had never before filed suit against anyone, said she wouldn't have brought the lawsuit against McDonald's had the Corporation not dismissed her request for compensation for medical bills.

McFact No. 5:

A McDonald's quality assurance manager testified in the case that the Corporation was aware of the risk of serving dangerously hot coffee and had no plans to either turn down the heat or to post warning about the possibility of severe burns, even though most customers wouldn't think it was possible.

McFact No. 6:

After careful deliberation, the jury found McDonald's was liable because the facts were overwhelmingly against the company. When it came to the punitive damages, the jury found that McDonald's had engaged in willful, reckless, malicious, or wanton conduct, and rendered a punitive damage award of 2.7 million dollars. (The equivalent of just two days of coffee sales, McDonalds Corporation generates revenues in excess of 1.3 million dollars daily from the sale of its coffee, selling 1 billion cups each year.)

McFact No. 7:

On appeal, a judge lowered the award to $480,000, a fact not widely publicized in the media.

McFact No. 8:

A report in Liability Week, September 29, 1997, indicated that Kathleen Gilliam, 73, suffered first degree burns when a cup of coffee spilled onto her lap. Reports also indicate that McDonald's consistently keeps its coffee at 185 degrees, still approximately 20 degrees hotter than at other restaurants. Third degree burns occur at this temperature in just two to seven seconds, requiring skin grafting, debridement and whirlpool treatments that cost tens of thousands of dollars and result in permanent disfigurement, extreme pain and disability to the victims for many months, and in some cases, years.


Note--the rewards was also reduced 30% due to the fault of the victom in contributing to the damage--ie, her responsibility was taken into account, but it did not completely nullify McDonalds responsibility to sell a SAFE product.
slh - 13.08.2006, 23:32 Uhr
Titel:
Would you like ice cubes served with your coffee?
h2 - 14.08.2006, 00:06 Uhr
Titel:
mylo, this has nothing to do with the states, it's a simple oversight in script naming, most kanotix scripts have extremely clear names, wonderfully clear, where the name gives the function accurately, and with very little ambiguity.

There is a large difference between constructive and unconstructive criticism. If the script did what it was called, your system would finish the script with no kernels installed. The word 'all' has only one meaning in english, it means all, each, every, without exception. There is no other meaning for that term, which is why I avoid using it as much as possible, since it's so absolute.

Oh, richard, sorry, I missed you posting, your suggestion is even less ambiguous, those are even better and more clear names.

Anyway, not a big deal, except for the highly critical nature of removing kernels, so to me, obviously you want the scripts that do that action to be as unambiguously named as possible. I do know that of the major kanotix scripts, this is one of the few that I was not able to remember without looking it up each time because the name of the script does not correspond to the action of the script.
Swynndla - 14.08.2006, 00:41 Uhr
Titel:
Indeed, kanotix comes with no guarantees at all, install at your own risk Winken
kenyee - 14.08.2006, 04:30 Uhr
Titel:
Yep, renaming this script would definitely help...sounds like others think the current naming is also confusing Winken
Does anyone ever delete the current kernel? I'm wondering why anyone would do that.

Also, as a side note, remove-all-kernels-completely always seems to leave behind the headers...I modified mine to remove the old headers too Smilie
drb - 14.08.2006, 07:19 Uhr
Titel:
What modification to the script to remove the headers?

drb
horo - 14.08.2006, 08:26 Uhr
Titel:
Zitat:

Does anyone ever delete the current kernel? I'm wondering why anyone would do that.

Why not? You boot this kernel and realize it doesn't work as expected -> remove it.

Ciao Martin
piper - 14.08.2006, 19:02 Uhr
Titel:
slh hat folgendes geschrieben::
Would you like ice cubes served with your coffee?


No thank you, a straw would be better and what I usually use when traveling Winken

remove-all-kernels-completely

No need to change the name, get to know what the commands do, BEFORE you use them, again, this all boils down to understanding what you are doing before doing it. (read slh's post:Sollen wir nebenbei noch "rm", "dd", "cat", "mkfs", "dpkg", "apt-get" etc. umbenennen?

I always use command myself, but I usually wait a couple days so if something does go wrong I have another kernel to boot too.
Richard - 14.08.2006, 21:35 Uhr
Titel:
The problem is not learning obscure commands, but rather the syntax.
It is inaccurate. LIke naming the command for save to be "delete".

"Remove-all-kernels-completely" means, remove all kernels and their headers and leave the machine inoperable.
x-un-i - 14.08.2006, 22:31 Uhr
Titel:
Just take it or leave it!

That one got that name, i hope it will remain with that name....if you dont like rename it on your own system.

There is no rule on how to name a script...
Swynndla - 14.08.2006, 23:22 Uhr
Titel:
piper hat folgendes geschrieben::
No need to change the name, get to know what the commands do, BEFORE you use them, again, this all boils down to understanding what you are doing before doing it. (read slh's post:Sollen wir nebenbei noch "rm", "dd", "cat", "mkfs", "dpkg", "apt-get" etc. umbenennen?


Yes, "rm", "dd", "cat", "mkfs", "dpkg", "apt-get" etc have names aren't all that meaningful, but the difference here is they all have man pages.

Where is the documentation for "Remove-all-kernels-completely" and "Remove-kernel-completely"? Maybe it exists, but I've never found it. So how am I meant to know what I'm doing before I run the commands?
piper - 14.08.2006, 23:49 Uhr
Titel:
I just typed in the "search feature" on this forum "kernel cleanup" and this came up

http://kanotix.com/index.php?module=pnW ... nelCleanup

http://kanotix.com/PNphpBB2-viewtopic-t ... eanup.html
feffer777 - 15.08.2006, 00:22 Uhr
Titel:
It's certainly good idea to know what a command does before using it! However, with this one, it's easy to make an error especially if one didn't know that there are two similarly named commands on the system.

Using the wrong one, "remove-kernel-completely" does remove kernel modules or at least causes them not to be inserted on boot. One can still recover from this by booting into CLI and getting/installing the latest kernel. How do I know? Hehehe, I'm not telling! Verlegen

Regards,
Ron
Richard - 15.08.2006, 00:28 Uhr
Titel:
http://kanotix.com/index.php?module=pnW ... nelCleanup
And here, this script is called simultaneously,
"remove-all-kernels" and "remove-all-kernels-completely".
Which should be the proper name?

"remove-all-kernels" means to remove all kernels. It implies that the box is without a kernel. "remove-all-kernels-completely" implies that, although I said remove all kernels, this time I really mean it --remove all of them, completely! This script is probably useful to kernel developers.

Let me know if the concensus is to use correct syntax and I'll be happy to update the text.

Anybody can create symlinks to correct errors in the operating system,
but it is supposedly in the interest of the distribution to be precise in meanings.

It should not be necessary to argue for using proper syntax with programmers, whose very being depends on precise syntax.
Kano - 15.08.2006, 02:00 Uhr
Titel:
I think you all dislike my naming scheme Winken
piper - 15.08.2006, 03:08 Uhr
Titel:
LOL, I like it, it makes sense, plain and simple
jackiebrown - 15.08.2006, 05:00 Uhr
Titel:
Richard hat folgendes geschrieben::
The problem is not learning obscure commands, but rather the syntax.
It is inaccurate. LIke naming the command for save to be "delete".


Just thought that was funny. I would use apt to remove kernel instead of a script.
wegface - 15.08.2006, 08:35 Uhr
Titel:
These two scripts are named in a confusing manner imo. No big deal if your used to it, ive never made an error personally but surely script names should be indicitive of what action they perform? Of course long time users would have to change there habits, but all other users would benefit from this i'm sure. One letter difference to delete all kernels in the system is a bit harsh.
I vote for remove-old-kernels-completely and remove-all-kernels-completely as someone else suggested.
jackiebrown - 15.08.2006, 19:33 Uhr
Titel:
and
destroy-system-completly
Swynndla - 15.08.2006, 23:22 Uhr
Titel:
h2 hat folgendes geschrieben::
Actually, to make it clear, the names could be:

1. remove-current-kernel-completely
2. remove-all-non-current-kernels-completely

because it's actually the non current, not the old, kernels, that are removed, at least if I understand that right.


Ahhh yes, I didn't know that the current kernel was kept, regardless of whether it's old or not. So I agree with h2's suggestion Smilie
h2 - 15.08.2006, 23:56 Uhr
Titel:
No matter what other outcome this thread may have, I now finally actually understand what both scripts really do, which I didn't really before.
michael7 - 16.08.2006, 00:16 Uhr
Titel:
With all due respect to everyone, if Kano wants to name it "stand-on-your-head-completely.sh" that's fine with me.

I have a file titled "Kanotix Tweaks" where I have copied and pasted information from this forum and the IRC for a year and a half. To anyone and everyone who is interested in Kanotix, I would suggest doing something like that. If I don't remember exactly what a shell script or a command (or whatever) is called, I can find it in a matter of seconds.

A favorite saying of my dear, departed Uncle Faulby was "A dull pencil beats a sharp mind." The 21st century version might be, "A cluttered and disorganized computer file beats a sharp mind."

michael

P.S. He also would say, "The spouting whale catches the harpoon" and "Trust in Allah, but tie your camel." (Where he got that second one, I'll never know.) My favorite, however, was his commentary on parashute jumping. "Son, only fools and birdshit fall from the sky."
Richard - 16.08.2006, 03:11 Uhr
Titel:
I could dig "stand-on-your-head-completely.sh".

At least it wouldn't be ambiguous. Put the name in German, if it makes you feel bettter, but be precise. Say what you mean and mean what you say.

This is a useless thread. Either fix it or forget it.
kenyee - 17.08.2006, 13:51 Uhr
Titel:
drb hat folgendes geschrieben::
What modification to the script to remove the headers?


Sorry...I keep forgetting to look this answer up for you.
I added:
rm -rf /usr/src/linux-headers-$KERNEL

to remove-all-kernels-completely.
If you go look in your /usr/src directory, you'll see a lot of old header directories if you've been upgrading your kernels...

p.s., I suggested the script name change for the newbies that may want to use the scripts. It was just a constructive suggestion to keep other folks from getting confused...
drb - 17.08.2006, 13:55 Uhr
Titel:
Thanks kenyee - next time I upgrade, will this remove all header directories? If not, can I just delete them manually?

drb
drb - 17.08.2006, 14:01 Uhr
Titel:
I use the remove-all-kernels-completely script but I still have all the kernelupdate-kernel-2.6etc.etc folders in /usr/src. These are taking up most of my space on my hard drive. Can I just delete them?

drb
slam - 17.08.2006, 14:32 Uhr
Titel:
Zitat:
Thanks kenyee - next time I upgrade, will this remove all header directories? If not, can I just delete them manually?

Of course you can remove them, if you don't use the similar named kernel any more.
You may also remove all the downloaded kernel-*.zip files, together with the folders where you unpacked them.
Zitat:
I suggested the script name change for the newbies that may want to use the scripts. It was just a constructive suggestion to keep other folks from getting confused...

This script is not for newbies at all - there is no reason for them to remove kernels without knowing what they do. I believe that Kano choose this name intentionally, to make it sound frightening - that is probably the best tactic against people who are not willing to understand, before they act.

Some of Kano's scripts are made idiot-safe, those are the ones we promote. This one is not.

Greetings,
Chris
kenyee - 17.08.2006, 14:54 Uhr
Titel:
slam hat folgendes geschrieben::
This script is not for newbies at all - there is no reason for them to remove kernels without knowing what they do


But if they do install kernels, then at some point, they will have to run some sort of cleanup or their /boot or /usr partition will fill up w/ extra kernel source or headers (that's why I needed to use it). It's not a harmful script when used properly, and naming a script for what it does is one way to get them to use it properly IMHO Smilie
At any rate, I'm glad the script exists so I don't have to clean up all that kruft myself...
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007