Klaus Knopper answers your Linux questions
Ask Klaus
Klaus solves problems with slow boots, Windows print shares, device detection, and clock synchronization.
Lin Hearts Win?
Dear Klaus: Thank you for the explicit answers. I am waiting to read your answers in every magazine.
My Asus K53SV laptop behaves strangely. SUSE Linux 12.3 boots in 13 seconds after restart from Windows 7, always, but it takes 27 seconds after a direct boot. Restarting Linux after Linux does not speed up the boot time. Maybe Linux has warm feelings for Windows?
Both OSs are 64 bit. The bootloader is GRUB. Original HDD was replaced with SSD – Mushkin Chronos 480GB. BIOS is American Megatrends v.320. Do you see a way to make Linux boot directly in 13 seconds?
Best regards, Jukka
Answer: I have seen this happening when working with Realtek network cards that need special firmware in order to operate at full speed. When Linux loads the network cards module, it waits for a firmware file to be transferred to the card. If this does not happen, a timeout occurs and the card operates in a working, but somewhat "degraded" mode with less efficient bandwidth use from its internal firmware. It may be these additional 10 seconds of timeout waiting for firmware to appear that delays the boot process in the case of a "cold boot."
But booting Windows, having been installed with the appropriate drivers, may already have uploaded the accelerated firmware. After a warm start without power loss, the network card is activated immediately by Linux and the driver will not ask for additional firmware.
The same may be the case with other devices that ask for binary firmware files.
You can check your logs for an entry that says requesting firmware or similar, to find out the name of the file you need. Most binary firmware is included in the linux-firmware package in Debian and Ubuntu; the firmware for Realtek network cards is included in firmware-realtek, so it may be that the boot process speeds up after installing those packages on your system. However, if the device in question is activated during the early boot phase in the initial ramdisk, you may also have to copy the firmware into /lib/firmware
inside the initrd to take advantage of it.
There is another option: If you can identify the boot script that causes the delay, you could reassign it after the regular desktop startup, where a delay because of missing firmware would not matter that much.
Windows Print Share
Hi Klaus: I am running Knoppix 7.2 installed on the hard drive of a 1GB (RAM) laptop. Everything is fine, but I cannot get the printer setup to find/connect a Windows print share. The Browse option is simply greyed out. I am able to access Windows shares on the same machine as the printer via Konqueror without any problem.
Please advise. Thanks, Neil
Answer: Knoppix does not run any client-side NetBIOS discovery services because of security and performance reasons, so programs have to send a network broadcast for print services on their own.
The CUPS server is currently also set up to avoid too much network traffic, so the greyed out button just means that the option of scanning the network for printers shared over SMB is simply not available. I may reconsider this option in future versions.
Possible solutions:
Open a shell, run the command
sudo cupsctl 'BrowseLocalProtocols="cups dnssd lpd smb"'
(watch out for the correct quoting here) to allow scanning SMB network services for printers from CUPS configuration website http://localhost:631 in this session.
Shut down CUPS with
sudo /etc/init.d/cups stop
Edit /etc/cups/cupsd.conf
and add smb
to the BrowseLocalProtocols
directive, then restart CUPS with
sudo /etc/init.d/cups start
and retry automatic network printer detection.
Add a windows printer manually by entering the URI
smb://username:password@workgroup/server/printer_name
in the CUPS "add printer" configuration GUI, which, if the printer does not require a login, can be shortened to smb:/server/printer_name
.
Device Detection
Hi Klaus: I got [Knoppix] version 7.3 CeBIT Edition with issue 161 of Linux Magazine, and I read your article about creating a flash boot medium. After I chose Allow installation only on removable devices, I got an error message to the effect that my flash drive (a SanDisk Cruzer Facet, 8GB) was not detected. When I opened the file manager the flash drive was mounted.
However, when I tried version 7.2 from issue 154, it worked like a charm. Is there an issue with device detection in version 7.3?
Regards, Con
Answer: There should be no issue detecting flash drives in general, however, Knoppix 7.3 has a new option to only show "removable devices" in the list, meaning devices that have a flag set that identifies them as being "detachable," as opposed to a standard USB hard drive. Now, even during CeBIT, I met some flash drives that have this flag unset, meaning they only show up in the list when you select Allow installation also on fixed hard disks. Otherwise, flash-knoppix will just skip those devices that, incorrectly or not, identify themselves as a fixed hard disk.
Linux makes no difference in handling USB media, whether it is a hard disk, a digital camera, a smartphone external SD card connected via USB cable, or a flash pen drive. If the device is not listed under the "removable device" section, it may help to try the "fixed disk" setting to find it.
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
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.