Klaus Knopper answers your Linux questions
Ask Klaus
Klaus Knopper is the creator of Knoppix and co-founder of LinuxTag expo. He works as a teacher, programmer, and consultant. If you have a configuration problem, or if you just want to learn more about how Linux works, send your questions to: klaus@linux-magazine.com
bootonly Image
Hi Klaus: I think Knoppix is a very good product and like using it, but I am missing the boot-only version .iso
for 7.0.5 – like KNOPPIX_V7.0.5bootonly-2012-12-21-EN
. It is not on any of the mirrors I have checked. (I am aware that it should be possible to create a boot-only ISO, like when running in a virtual box).
My BIOS Fujitsu Siemens // Phoenix Technologies Ltd version 4.06 Rev. 1.05.1527, date: 03/12/2003, does not allow booting from a USB. It seems it is not possible to boot the 7.0.5 USB version from the CD KNOPPIX_V7.0.4bootonly-2012-08-20-EN
without losing some setup. (It works fine, of course, with 7.0.4 USB.)
Hope you will take the time to answer.
Kind Regards, Hans Kurt Ibsen
You can find the "bootonly" image, which is also valid for the full DVD installation, in the CD directory on the mirrors, for example, here:
ftp://ftp.uni-kl.de/pub/linux/knoppix/
The bootonly
image contains just the boot
folder containing the isolinux bootloader and the kernel matching the kernel modules on the DVD (i.e., you cannot boot an older bootonly
CD for a newer version of Knoppix, and if you do, most drivers will not work because of mismatching modules).
To create the bootonly
version yourself, you can do the following:
- Create an empty folder (e.g.,
bootonly-cd
). Copy the content of theboot
folder of your Knoppix DVD there. If you already have an installed USB flash disk version ready, you need to rename some files and folders in the target directory (bootonly-cd
):
- Rename
bootonly-cd/boot/syslinux
tobootonly-cd/boot/isolinux
. - Rename
bootonly-cd/boot/isolinux/syslinux.cfg
tobootonly-cd/boot/isolinux/isolinux.cfg
. - Copy the isolinux bootloader from
/usr/lib/syslinux/isolinux.bin
to thebootonly-cd/boot/isolinux/
folder.
- Make sure the directory is writable with:
chmod -R u+w bootonly-cd
. Create the ISO:
mkisofs -input-charset ISO-8859-1 \ -pad -l -r -J -V "KNOPPIX_BOOT" \ -A "KNOPPIX_BOOT" \ -no-emul-boot \ -boot-load-size 4 \ -boot-info-table \ -b boot/isolinux/isolinux.bin \ -c boot/isolinux/boot.cat \ -hide-rr-moved \ -o bootonly-cd.iso bootonly-cd
You can then burn the bootable image bootonly-cd.iso
to a fresh CD medium.
Data Partitions
Hi Klaus: Just a quick one. I have two partitions on my hard drive. The first (formatted with ReiserFS) has the Knoppix OS, while the other (formatted with ext4) is supposed to be the data drive. However, I cannot write to the data drive. What do I do?
Blondie
I suppose you mount the data partition to a specific location, for example /opt
. This is just an example using the shell, assuming that the disk in question is the first one; /dev/sda1
is the system partition, and /dev/sda2
is the ext4 (data) partition:
sudo mkdir -p /opt sudo mount -t ext4 /dev/sda2 /opt
or (usually, Linux can determine the filesystem without the -t
option):
sudo mount /dev/sda2 /opt
I assume that this part still works for you, so the filesystem is OK.
Now, ext4 (like all Unix-based file systems) supports permissions that apply to read/write/execute operations. You can check for the current permission set of the mounted partition's root directory by doing:
ls -ld /opt/
If the output looks like this:
drwx--- 12 root root 344 9. Nov 00:58 /opt/
then only the system administrator can access the filesystem. This may be the (secure) default when creating the partition's filesystem.
If you want to change permissions to allow read/write/execution or to change the directory for everyone, you should change the partition's root directory permissions like this:
sudo chmod 777 /opt/
or "give away" the partition's root directory to the user who is supposed to use it:
sudo chown username /opt/
The new permissions are permanently stored on the hard disk partition. If there are already subdirectories on the disk that you want to open for read/write as well, you can add option -R
(capital R!) to chmod
or chown
for directory recursion.
Cooling Mayah
Klaus: I run Linux Mint Mayah (13) on an old laptop for my daughter. Periodically, the computer will freeze, and when I feel the bottom it's extremely hot. (It's in a docking station, so I have to remove it from the docking station to feel how hot it is.) I suspect that's causing it to lock up. It will not reboot when it's in that state, but if we wait a while for it to cool, it will restart.
What are the best Linux utilities I can use to get a handle on cooling? Is it possible there's something wrong with the way Linux is controlling the fan(s)? How can I tell?
Regards, Kurt
Your assumption is probably correct: There is a cooling problem. It can have several causes and several solutions.
- If the notebook is very old, the fan and heat sinks may simply be clogged with dirt and dust. Turn off the notebook and use a strong vacuum cleaner on the air holes of your notebook, but only in short intervals, to clean out the air channels.
Warning: This can break cooling fans if their gear is severely worn out, so do this at your own risk. In many cases, however, it can save you the effort of taking your notebook apart for cleaning.
If you notice a significantly cooler case and less noise and fan speed after cleaning the fan and switching the computer back on, the procedure was successful.
- It may be a software problem. Is the load displayed with
uptime
(the three floating point numbers at the end) more than 1? It should be close to zero if the computer isn't doing anything. You can check withtop
for potential processes that consume CPU time for no apparent reason and try stopping those processes to see if it helps reduce CPU usage.
For example, you can temporarily suspend all Java processes that may have been spawned by browser plugins with:
killall -STOP java
and re-activate them using:
killall -CONT java
- Your graphics card might not be clocked correctly, set to run at maximum power always, or is running inefficiently. Solution: When using an NVidia+Intel dual graphics chipset, disable the most power-consuming NVidia chip and only use the Intel onboard chipset.
- Usually, ACPI should take care of power management, but for some notebooks, it fails to detect the optimal settings. In this case, you can help your kernel decide on better settings by using the acpi_osi kernel boot option, like acpi_iso=Linux or acpi_osi='!Windows 2009' (="Not Windows"). If this changes the fan behavior for the better, you can add the option to your bootloader configuration permanently. Using acpi_osi=… can also fix issues with backlight control and function keys of various notebooks.
Try to tune power consumption of devices using PowerTOP (Figure 1):
sudo powertop
The PowerTOP [1] package is available in many Debian-based distributions. The power management settings that can be tuned for hardware drivers are present in the Tunables tab.
Infos
- PowerTOP: https://01.org/powertop/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.