Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
6
Impact
~10k people reached

Mar
9
answered Create symlinks recursively for a whole tree
Nov
20
comment Linux: obtain current # of jiffies since reboot
I get 75409.1301 so that does not seem stable in general case. uname -a reports Linux semyol-329-b 3.19.0-33-lowlatency #38~14.04.1-Ubuntu SMP PREEMPT Fri Nov 6 19:30:45 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux.
Sep
4
comment How can I fix an inconsistent NTFS file system without Windows?
I would claim that trusting any single device to keep your data is a dangerous endeavor. I agree that a device with even a single remapped bad block has higher probability of failing than a device with zero bad blocks. However, due to nature of these devices, any single device may fail at any moment without any issues beforehand. Always keep a backup on an another device.
Sep
4
comment How to delete all files in a directory except some?
@sparkie: not defining the directory (first parameter) for find is a GNU extension of find command. The same applies for -regextype option. In addition, your command will delete files in subdirectories, too, whereas the original question clearly asked about files in a directory.
Sep
2
comment How can I fix an inconsistent NTFS file system without Windows?
I wrote "suitable data" because sometimes the bad block may have only a bit error (e.g. one bit in 4096B physical sector is always zero) and if the data to be written happens to contain suitable bit for that error, the problem is never seen. This is very similar to RAM problems where only some very specific bit pattern fails.
Sep
2
comment How can I fix an inconsistent NTFS file system without Windows?
Bad blocks do show up because not even the disk firmware can know that a block is bad before suitable data is written to it and later a read command follows to read the same block back. I know because I had just that situation for one HDD. That disk had a single bad block that got remapped once I overwrote that sector with new data. The way HDD detects a bad block is that after reading a block, it checks the internal checksum for that block and if the checksum does not match, the read is automatically retried a few times. Read error is reported if repeated read cannot get the checksum to match
Sep
1
comment How can I fix an inconsistent NTFS file system without Windows?
It's possible that a disk contains one or two bad blocks because of manufacturing errors. In that case the disk is okay and remapping is the correct fix. This is no different from an LCD display with a dead pixel. However, I do agree that if new bad blocks appear after using the disk, it should be thrown away.
Aug
31
comment How can I fix an inconsistent NTFS file system without Windows?
2.5. Overwrite the whole partition with bad blocks with something (e.g. dd if=/dev/zero of=... bs=1M or at last dd bs=4K). That will fix the bad blocks if the HDD still has internal physical reserve blocks available. If not, do not use that drive to store any data you want to keep. The smartctl -x may allow checking the remapped sector count.
Aug
31
revised How to quickly format a HDD with bad sectors (in linux)?
fix some typos
Aug
31
answered How to quickly format a HDD with bad sectors (in linux)?
Aug
19
answered How to provide “reverse ssh” to a shell?
Jun
5
answered Chrome: waiting for available socket
Sep
24
awarded  Autobiographer
Jul
14
answered AA doesn't work due to monitor?
Jul
14
answered Can I use aliasing (e.g. “4xAA”, etc.) provided by 3D graphic cards to make my desktop look better?
Mar
31
comment Can I get an alternative browser (Firefox/Chrome) on Win8 RT?
@Michael care to point to source that claims that Metro IE plays under the same rules as everyone else?
Mar
31
comment Can I get an alternative browser (Firefox/Chrome) on Win8 RT?
@yms: Yeah, I currently believe that one can use C/C++ with Windows RT (WinRT API) as long as one uses toolchain by Microsoft to compile the code. And the interface between raw C/C++ and WinRT still does not look nice. However, WinRT APIs do not allow writing a JIT compiler for JavaScript, which is a requirement for decent performance on nowadays JavaScript heavy web sites; the missing part is the ability to create region of executable and writable memory. This is the same reason (in addition to political problems) preventing alternative browsers on iOS, too.
Oct
17
comment What tools to test the reliability and stability of a newly built PC?
Computers are designed to run software and to test the stability of the system, running some demanding software is a great way to verify that the system works as designed. Make sure to use some software that really pushes the hardware and checks the results. Prime95 (or mprime) would be once choice for CPU and RAM testing.
Oct
17
comment What tools to test the reliability and stability of a newly built PC?
Memtest86 is usually not enough to test RAM for real. In most cases, the motherboard can supply stable enough voltage to the RAM that even a bit flaky RAM chips do work. Prime95 (or mprime) is a better choice because it puts serious CPU load in the same time. I'd suggest running some very demanding HDD benchmark in paraller to maximize the system load.
Oct
17
comment BSODs and Prime95 failures
My personal experience is that memtest86 can detect only very serious memory problems. I would suggest running Prime95 or mprime to test CPU and memory, instead. I once had broken memory that would cause incorrect SHA-1 sums for huge files (too big to fully fit in RAM and multiple in paraller). My best guess is that the memory was super sensitive to slight voltage changes cause by full CPU load and high multiple HDD IO usage. The problem was fixed by using pair of RAM.