Anon
  • Member for 8 years, 3 months
  • Last seen more than a week ago
  • United Kingdom
How to debug systemd-networkd?
Accepted answer
28 votes

From https://coreos.com/os/docs/latest/network-config-with-networkd.html : Enable debugging manually mkdir -p /etc/systemd/system/systemd-networkd.service.d/ Create Drop-In /etc/systemd/system/...

View answer
How to stop an automatic redirect from “http://” to “https://” in Chrome
22 votes

https://www.3rdrevolution.com sends the Strict-Transport-Security header so accessing it over https once will make browsers like Chrome/Firefox redirect http requests to https until some specified ...

View answer
How can I achieve the best, standard ZIP compression?
10 votes

The best deflate (the compression format used by standard ZIP) compressors that I know of are: Zopfli KZip 7-zip - 7­zip ­mm=Deflate ­mx=9 Deflate file compressed file size comparison from Data ...

View answer
Are all USB flash drives capable of being booted from?
Accepted answer
5 votes

(Question originally said "USB pen drive" but has been edited by @JakeGould to say "USB flash drive". This edit "moves the goalposts" a touch but I'll try my best to provide one update to accommodate ...

View answer
Why 512 behaves worse than 4096 when NVMe configured with 512 sector size?
5 votes

With SSDs, the block size presented to upper layers is nowhere near the erase page size but 4096 bytes IS closer to the erase page size than 512 bytes. Further, if you send data down in "clumps" of ...

View answer
How to correctly partition usb flash drive and which filesystem to choose considering wear leveling?
4 votes

These days most Linux partitioning and filesystem creation tools default to values that align data on 4K boundaries and will even use the underlying block size if the disk exposes it so things aren't ...

View answer
Clear a Linux storage device with sgdisk
Accepted answer
4 votes

I know this is changing the question but is it possible for you to use wipefs (which comes as part of the util-linux package)? wipefs understands how to clear all sorts of partition(ing) metadata and ...

View answer
Remove the padding spaces in the `ls` result on macOS
3 votes

From looking at the man ls on macOS you might like the -m option that just separates entries with commas or the -1 option if you are OK with each entry on a new line. I suppose you could also do ls -C ...

View answer
Best method to stream multimedia content from Linux to iPhone/iPod/iPad?
3 votes

There is a server called forked-daap (the original has become moribund here's the most active fork of the forked-daap) that can stream to iTunes on OSX or iOS devices. The active version requires hand ...

View answer
How can I use one lvmcache "cache pool LV" for multiple origin LVs?
3 votes

On a mainline kernel using the same cache for multiple origin devices is NOT supported by dm-cache (which is what lvmcache uses underneath) due to races accessing metadata. See Re: [dm-devel] dm-cache:...

View answer
Give regular user permission to access physical drive on Windows
3 votes

In short you can't easily. Here's why: Using PowerShell we can get the ACLs for a physical "raw" disk drive: PS C:\> [io.directory]::GetAccessControl("\\.\PHYSICALDRIVE1") | Format-List Path : ...

View answer
SSD write amplification and endurance
Accepted answer
2 votes

In an Anandtech SSD review there is a section titled Endurance Ratings: How They Are Calculated. Within it, the following calculation is given: So when you see "host writes" that's a reference to ...

View answer
Does a small partition with lot of re-writes on a small or large SDD make it wear out quickly?
2 votes

So, Over an SSD, Does small partitions with lot of re-writes (say - swap partition on linux) cause a week point on the drive and let it wear out quickly. No it won't wear out quicker just because the ...

View answer
MD Raid 1 read balancing algorithm
2 votes

If you only have a single stream of sequential I/O the md RAID1 algorithm will keep picking the same disk. From the mdadm man page: [On md RAID1] a single stream of sequential input will not be ...

View answer
Why does VMware VM believe its disk usage is larger than it is?
1 votes

Perhaps something made a file within the filesystem that actually consists of lots of zeros? If this were the case then the inner filesystem's usage may be bigger than that of the outer VMDK ...

View answer
Maximum amount of hard drives in 64-bit Linux?
1 votes

The RHEL technology capabilities and limits page suggests at least 10000 with a recent enough kernel (see the 'Maximum number of device paths ("sd" devices)' row). This amount is greater than that ...

View answer
How to make MinTTY close gracefully on Ctrl-C?
1 votes

You're a victim of the infamous mintty issue #56 - Improve support for native console programs. The mintty wiki entry "Input/Output interaction with alien programs" points out you can work around the ...

View answer
How to politely kill windows process from cygwin
Accepted answer
1 votes

Assuming your cygwin console is mintty, it sounds like you're hitting the mintty "Input/Output interaction with alien programs" problem (aka mintty issue #56). In your case this is manifesting as Ctrl-...

View answer
Show HTTP error details in Google Chrome
1 votes

These days (post January 2012) Chrome will only show a friendly error page if the server returns an error page without a body: Now we only assume error pages without any body at all (content-length:...

View answer
How do I remove a delay created using dm-delay?
0 votes

You need to put back the original linear mapping(s) that were presumably at that point or rewrite your delay to be 0. In short look at your delay entry using dmsetup table delayed and think about how ...

View answer
Disk sometimes high io wait,low io write speed
0 votes

Are you sure you aren't suffering from your SSDs becoming busy doing garbage collection? Basically if you have gone through your SSD's stock of spare empty pages and you continue to write data then ...

View answer
how do i convert a file + offset in ext4 to a block device number?
0 votes

This is answered over on https://serverfault.com/questions/309641/how-can-i-find-out-where-a-file-is-physically-located-on-the-disk-block-numbers which says debugfs can be used for this purpose. For ...

View answer
git - Does cloning without pack resume when interrupted?
0 votes

This is nicely covered in the answers to the How to complete a git clone for a big project on an unstable connection? Stack Overflow question. git - Does cloning without pack resume when ...

View answer
Using ssh to forward a remote machine's localhost ports
0 votes

Your explanation is a bit strange and your example should still work because what you're saying is: "when traffic on my local machine is directed at TCP port 1234 send it through this tunnel and make ...

View answer
Chrome suggests/predicts search results in the omnibox while incognito
0 votes

Since Chrome 76 there is an experimental offline prediction model that allows it to create search suggestions locally. In Chrome 87 if I go to chrome://flags/ and search for "incognito" the ...

View answer
Redhat Linux enterprise kernel source code location?
0 votes

In the intervening years this has changed every so slightly. With RHEL 7 there's now a README: Current sources for Red Hat Enterprise Linux 7 have been moved to the following location: https://git....

View answer
Run EFI files/scripts from [boot, virtual media] ISO
0 votes

Perhaps you could build the firmware updates as PXE boot images (although care would need to be taken not to end up in a reflash loop). Most servers with EFI are also able to fallback to PXE BIOS boot ...

View answer
Can I force a specific unit of measure for sync percentiles in fio output?
0 votes

Is there a way to force fio to always adopt a specific unit of measure? Not really for fio's human readable output but the units ARE a fixed size for its machine readable output formats. Fio's human ...

View answer
How can I recreate CrystalDiskMark's disk benchmark on Linux?
0 votes

(fio doesn't have a --jobs option so I assume you meant --numjobs? It may also be kind to reference the original question over on https://unix.stackexchange.com/q/93791/109111 ...) The thing I never ...

View answer
Blktrace missing I/O events
Accepted answer
0 votes

Unfortunately you didn't include your blktrace summary output - does it mention a non-zero number of dropped events? If so, the likelihood is the ring buffer that holds events until they can be read ...

View answer