Ask Klaus
Ask Klaus
Klaus Knopper answers your Linux questions.
Hi Klaus, my Linux PC is "off the road." Is it possible to offer follow-up disks after installing your Knoppix OS, for people that do not have Internet access capable of downloading files off the OS server?
Regards, Cy O'Hara
Like most distros, there are independent providers of DVDs or USB flash disks for Knoppix, too. Most of their addresses are listed on the "Knoppix Vendors" website [1]. Because the main feature of Knoppix is NOT having to get installed in the first place, but running Live from DVD or USB, new versions are not meant to be used as an update to a hard disk installation. However, the flash-knoppix installer allows you to update flash disks already containing a Knoppix installation (Figure 1). This process lets you overwrite files on the FAT32-formatted system partition but keep your personal data and settings on the second partition intact.
![](/var/linux_magazin/storage/images/issues/2016/183/ask-klaus/figure-1/663710-1-eng-US/Figure-1_large.png)
Hi Klaus, I noticed that you replied to my email about compiling and linking 64-bit code in issue 166 of Linux Magazine last year [2]. Thank you so much! I also noticed that you installed gcc-multilib in Knoppix now. Thanks again! Would you consider including g++-multilib in Knoppix in the future as well?
If I may be so bold, I have another question for you. Knoppix is the best distro I have found by far for USB flash drives. If I install another distro, such as Ubuntu, directly to a USB flash drive like I would to an HDD, it can pause and be unresponsive often. How come USB flash drives are more restrictive than a normal SSD drive? What steps does Knoppix take to get around the USB flash drive limitations? I have tried moving, for example, /tmp
and /var/log
to tmpfs
but that's not enough. Does Knoppix move /home
directly to the ramdisk and start up and sync it on shutdown?
Kind Regards, Chad
Unfortunately, multiarch can be somewhat heavy concerning dependencies, so I'd rather like to keep run-time and development files for multiple architectures at a minimal level.
About USB speed: Reducing write cycles and finding a well-balanced scheme for parallel writes and reads is a challenge for hardware and software and depends greatly on the USB flash drive hardware design. SSDs are more optimized for asynchronous writes than most USB flash pens, so no latencies should occur when writing a large amount of data to disk. However, some flash internal controllers block read access during writes, so you might experience noticeable delays or "freezes" during the drive's internal data reorganization, which can be quite annoying.
You'll have to figure out which brand supports quicker parallel read/writes. Knoppix delays writes somewhat in order to write larger chunks of data at once, which is more efficient and enhances the lifetime of most flash pens. However, on slow drives, this can cause longer freezes during a write cycle, so these optimizations are not always efficient. Avoiding frequent writes by putting /tmp
, /var/tmp
, and other locations for often-written volatile data on a ramdisk can help as a workaround for slow writes.
Also, the filesystem RAM cache can be helpful. I have experimented with moving /home
to ram and back to disk, but it has a huge disadvantage: Your RAM could get filled up with huge amounts of temporary data and thus crash the system. And, if you don't shut down the computer properly or are impatient, data may not get written back in time. Thus, I prefer to use buffered filesystem writes on an AuFS overlay with a second partition, so that reading from the read-only system overlay and writing on the read-write flash partition overlay can go in parallel. Apparently, this works pretty well in most cases.
The fact that the main system data is stored in compressed form (files KNOPPIX
and KNOPPIX*
) is also helpful for performance, because it speeds up the physical read speed by the compression factor – usually between one and five times the uncompressed read speed. Decompressing data in memory is much quicker than waiting for read response of magnetic, optical, or flash physical media.
Check to see what's mounted where in Knoppix with the df
command after booting from a USB flash disk (Figure 2).
![](/var/linux_magazin/storage/images/issues/2016/183/ask-klaus/figure-2/663713-1-eng-US/Figure-2_large.png)
The /KNOPPIX
mountpoint(s) are constructed from read-only compressed data, whereas /KNOPPIX-DATA
is the read/write partition on the flash disk installation. Optimally, the controller managing NAND flash should handle parallelized read and write operations to different segments of the flash memory, but most often with cheap drives, it's implementation is busy waiting for any pending operation to complete in a sequential order, which makes data throughput much slower than necessary.
Infos
- Knoppix vendors: http://knopper.net/knoppix-vendors/
- "Ask Klaus!" by Klaus Knopper. Linux Magazine, issue 166, September 2014, pg. 50: http://www.linux-magazine.com/Issues/2014/166
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.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.