3 ms·
One benefit of learning old technology from youth... I've got tons of cruft in my head, and this "old technology" has been continually rebuilt the entire time I
by klyrs 6y ago
One benefit of learning old technology from youth... I've got tons of cruft in my head, and this "old technology" has been continually rebuilt the entire time I've been using it. Kids these days aren't gonna, I dunno, fry their hard drives because the IDE cable doesn't have a notch. One guy I learned Linux from was proud that he still shut down his computer with `sync;sync;halt` because of some nasty race condition or something that bit him once in the 80s. And despite using Linux since the last millenium, I'm still a total noob! So bring on that fresh knowledge!
- avaron 6y agoHa! this is specific to Solaris in the old days where a reboot command can in cases, corrupts the OS. This has long been fixed but personally use sync;sync;halt for Solaris as a matter of habit. It even spills over to Linux on my part because of kernel upgrades and just because of muscle memory, plus it's a good idea to run sync anyways. Now i feel old! :)
- steerablesafe 6y agoI recently saw a comment that the advice `sync;sync;halt` is actually wrong and the correct one was: sync sync halt typed out manually, to give enough time for the first sync. https://lwn.net/Articles/843269/ https://lwn.net/Articles/843269/
- oilbagz 6y agoShould be: $ sync && sync && sync && halt BTW, the 'sync;sync;sync' thing was a necessary command given, mosty during the late 70's and early 80's, to park the tape head. Unix didn't have a 'rewind tape' command, so many manufacturers instead decided that three rapid syncs in a row meant 'rewind tape'. Disclaimer: had that muscle memory burned into me for decades, I still do it ...
- klyrs 6y agoTo be perfectly honest, I inserted the semicolons because I wanted it to make at least a little sense... I wasn't paying close enough attention to the old-timer reminiscing to recall his precise keystrokes. But thanks for the link!
- nineteen999 6y agoI've been doing this so long that it's sometimes what I type on the terminal when I'm just thinking about something else completely, planning my next piece of work or whatever. Like an idle or holding pattern.
- zz865 6y agoDid that park the heads of the hd before you powered off? I remember doing that in the 80s.