Categories
Computing Linux Technology

Reformat Drives to 512 bytes / sector

Got some IBM NetApp drives? Or drives from some other big SAN? Operating system can’t see them? They might be low-level formatted to 520 byte sectors or some other oddball size. Many other drives you see on eBay (etc) have this same issue. These drives can be very affordable, but you can’t use them as-is.

This guy- https://youtu.be/BbtPPH3W7nU advises booting CentOS 6 and installing sg3utils, which I did. Under this regime, the drives are referred to as /dev/sgx where x is a number. Not the usual /dev/sdx or /dev/hdx.

  • dnf install sg3_utils
    • (or apt install for debian/ubuntu)
  • sg_scan -i
    • Look, it sees all my drives!
  • Format the drive:
    • sg_format --format --size=512 --fmtpinfo=0 /dev/sg3
    • Yup, sg3, not sdc
      • More recently, 2021-05-21, the syntax above worked perfectly,
      • Formatting two drives on the same controller (run from two different consoles) took 96m 16s
    • Sometimes this FAILED, so I did  this:
    • sg_format --FFF --size=512 --fmtpinfo=0 /dev/sg3
    • This forces the format, even if it can’t read the sense key properly.
    • If this completes without error, try it again without the -FFF, using just -F instead.
    • Using -FFF completes without error, but repeating with -F fails again.
    • So upon further research, I tried this:
    • sg_format --F --size=512 --six --fmtpinfo=0 /dev/sg3
    • The six option can be used in case the drive cannot be formatted with default 10 byte MODE SENSE/SELECT
    • Works much better (but no faster.) Eventually finished, 140m, 16s later, or 2 hours, 20 minutes, 16 seconds.
    • The drives work fine now, as do all drives I tried this on.

Categories
Life

I Got Shot

Hey, my friend Becky just got her COVID-19 vaccine, and it’s only been available for a few days. Good for you, Becky. It’s December 19, 2020, and I think she got it yesterday.

I’m waiting for my opportunity to get mine. I want to be part of the solution, not part of the problem.

Meanwhile, put the stupid mask on, OK? I know it’s uncomfortable, hot, and a nuisance. Wear it anyway, as a favor to me.

Thanks.

Categories
Electronics Ham Technology

Ham Radio

Amateur Radio Tower

CQ CQ CQ de N9QQB… Say what?

“CQ” is the ham radio signal meaning “I’m looking for someone to talk to.” and N9QQB is my FCC-assigned callsign, for ham radio. So it means, hey, let’s talk. My wife has her own callsign.

Amateur Radio is an exciting hobby with a huge array of modes and bands to explore. You can chat with others around town from your home or vehicle, or converse with people in other countries. Voice modes are popular, with a variety of types available. Morse code enthusiasts abound- there’s no better way to punch a signal through huge distances and difficult atmospheric conditions. But the requirement to learn Morse code to get a ham license was done away with years ago. Many hams use various digital modes, which also travel very far, and even digital voice modes. Hams are also allowed to transmit images and video too.

Are you a volunteer? Several organizations specialize in assisting public service, law enforcement, and disaster relief organizations, providing communications support in impacted areas.

Amateur Radio is a hobby, but one that requires a license. Amateur radio is regulated under FCC Rules Part 97. Getting a license requires passing a multiple-choice test, but you find the questions (and the answers) online, so you can study. There are hundreds of study guides available for the various license classes. Each class requires its own exam, and each entitles you to more privileges on the air.

  • Technician Class: This is the entry-level license type. There is a pool of 650 questions in the exam, and when you take it, you will be asked 35 of those questions. The entire pool is published, and available to study. The fees associated with the licensing process are small. The bands and modes available to the Technician Class licensee are used mostly for local, statewide, and regional communications, and under good band conditions, can cross the continent.
  • General Class: This next level license allows a lot of privileges on bands well suited to world-wide communications, as well as the Technician Class ones. You must hold a Technician Class license first, then take an additional 35 question exam. All possible questions are published and freely available.
  • Amateur Extra Class: This license class conveys all available U.S. Amateur Radio operating privileges on all bands and all modes. Holders of a General Class and Technician Class license and take a 50 question exam, and if passed, receive the Amateur Extra license. The entire question pool is published.

More information: The American Radio Relay League is the education and advocacy resource for Amateur Radio, and is a vast trove of information. Their Licensing, Education & Training section is an excellent place to start.

Categories
Computing Electronics Technology

USB3 Extension Box

Newer computer cases often have all the USB connections on the back. That’s fine for some, but I have a very crowded lab, and it’s a pain to reach back there and fumble around trying to plug/unplug equipment. So I created this USB 3.1 capable extender box.

I started with a search of Tiger Direct, Amazon, eBay, and several other of the usual suspects. I was looking for a relatively high density way to mount female USB jacks. They had to be mounted in something with some mass to it, so it won’t skitter around when I try to plug things in, and it needs non-skid rubber feet too. Ultimately, I took the guts out of an old 2400 baud modem. Remember those? You’re dating yourself. That provided the box to mount the USB jacks into. A little aluminum plate, some machining with a drill, punch, and file, and some specialty USB jacks, and Bob’s yer uncle.

Back of that old modem
An old 2400 baud modem
Shuck the modem of its guts…
Leaving a usable case.

BATIGE Dual Ports Square USB 3.0 Panel Flush Mount Extension Cable

These are what the panel-mount USB cables look like; Amazon has them in both 3 and 6 foot lengths.

This is what I used:
https://www.amazon.com/gp/product/B078LXX3MD.

After considerable machining (by hand) of some scrap aluminum…

The final product looks like the photos below.

Categories
Humor?

Shai Hulud is a good garbage collector

The fierce sandworms of the high desert of Arakis, known as “Shai Hulud” by the inhabitants of the region, are greatly feared. There are legends whispered that the Fremen of the deep desert worship the sandworms, and may even climb on them at times, though this is widely dismissed as a myth. Given the immense destructive power of the sandworms, it’s hard to credit such rumors.

Categories
Electronics Technology

Power Supplies 1

Inexpensive Chinese Smart Power Supply Modules

I’ve been playing with small power supply modules you can get from BangGood.com and other Asian retailers. What I’ve found is that you can build a bench power supply that’s lightyears more advanced than my old Elenco Precision Dual Power Supply, for an affordable cost, provided you understand their limitations and use them accordingly. Here’s a once-over on the RD6012. I’ll post another article about operating a little later. I also have a DPS8005, a much less expensive ($35), much smaller 5 amp model. I’ll write that one up too.

The Riden RD6012 is an upgraded version of their RD6006 model. The former is the 60 volt / 12 amp version of the 60 volt / 6 amp product, and now there’s an 18 amp version, the RD6018. Like most of these modules and boards, they feature DC-to-DC conversion, switching regulation, and require a voltage source. This means that they don’t plug into a wall outlet and accept 120 volts AC. A power supply brick designed for LED lighting makes a good voltage source. I have one that produces 60 volts DC at 17 amps, and another that does 60V/10A.

It comes in two flavors, the base unit pictured above, the same thing with a USB connectivity and Bluetooth module included. I bought mine that way, and paid about $90 for. I see it on sale now for $64 in places, You can also buy a custom-desgined housing for it for about $35.

The unit is about 6.5″ wide, 3.35″ high, and 2″ deep, but of course you’ll need a lot more clearance than that at the back. It’s got a cooling fan, so you need air space behind it to keep it cool, and you need some cable clearance.

In the photo above, the WiFi/Bluetooth module is at the lower right. It’s supplied, if you buy it that way, but you have to finagle it into the tiny space allotted for it. I have yet to get the cooling fan to run, even at heavy load, something others have reported too. There’s an input and output fuse soldered in, each next to an empty fuse socket. If you fry one, you can install the provided spare. The input terminal provides two plus and two ground wires, to enhance current carrying capability, and a screw terminal block is included with the kit. The black wire exiting from the top in the photo has a thermistor on the end of it. The unit has a battery charging circuit (that’s what the green binding post on the front is for) but I don’t know if the thermistor is for sensing battery temps while charging, or if it’s an ambient temp sensor. Either way, the temperature is shown in the display.

In any event, you’ll need a DC source, that can supply the current you want, and has an output voltage just above maximum voltage you want to supply. I bought a 10 amp, 60 volt unit under $40 and a 17 amp / 60 volt one for a different project, $65 or so. Look around, there’s hundreds of sellers on eBay selling this kind of thing.

17 amp: https://www.ebay.com/itm/AC-110V-220V-To-DC-60V-17A-Switch-Power-Supply-Driver-Adapter-LED-Strip-Light/333786254482?hash=item4db7360c92:g:BdoAAOSwunJfq63d

10 amp: https://www.ebay.com/itm/AC-110V-220V-TO-DC-60V-Switch-Power-Supply-Driver-Adapter-For-LED-Strip-Light-3D/333783376357?hash=item4db70a21e5:g:ebgAAOSwNNFfqS4o

10 amp: https://smile.amazon.com/gp/product/B079D9KTF7/ref=ppx_yo_dt_b_asin_title_o05_s01?ie=UTF8&psc=1

Categories
Culture Faith

Faith, and Me

The High Cross of Clonmacnoise https://en.wikipedia.org/wiki/Clonmacnoise

This High Cross is an ancient monument to faith at a monastery situated in County Offaly, Ireland on the River Shannon south of Athlone. The monastery was founded in 544 by St. Ciarán, a young man from Rathcroghan, County Roscommon. The cross was made between 800 and 900 AD, roughly. There are a number of High Crosses at this site, and I’m not entirely sure which one this is. But it’s probably the Cross of the Scriptures.

Why am I writing about it? Good question. It’s a beautiful example of early faith art, wonderfully representative of the touchstones of the faith, with panels depicting the crucifixion of Christ, Christ in the tomb, and the last judgement. It’s without a doubt, a cultural treasure.

But that’s not why. I’m writing about it because it’s stood the test of time. We still have this original piece of art (a replica stands at the actual site) that records a moment in time, an era, really.

I’m a little like it. My early years were characterized by a stubborn, independent streak, not to mention a strong anti-supernaturalist streak. I believed in what I could touch, taste, smell, measure, analyze.

L’essentiel est invisible pour les yeux.

That which is essential is invisible to the eye.

Antoine de Saint-Exupery, The Little Prince 

This led to a strong bias against religion, or faith of any kind. As Bill Murray’s character in Ghostbusters said, “Back Off Man I’m A Scientist.”

It got better. The story of my faith journey is long and might be told elsewhere, someday. Suffice to say here that the jaundiced and limited view of the universe I held has been updated, expanded to allow for a new viewpoint, namely that there’s more to existence that what we can analyze by scientific means. My faith is at this late date something about me that has remained part of me for a long, long time. It’s stood the test of time, and other tests as well.

I’ll write more about this later. For now, your understanding of me as a man of faith should include:

  • There are some pretty rabid folks out there, that seem to use their faith as a club (as in a blunt implement) and an extension of their politics. I (mostly) do not, and strive to keep that under control, and prune it out when I find it in myself.
  • There are folks out there that seem to use their faith as a club (as in a group with membership) and consequently a method to sort the “us” from the “them.” This allows them to devalue “them” and justify certain attitudes and actions. Again, I try not to be like that. Operative word: “Try.”
  • My faith is important to me. I don’t expect it to be important to each and every person I interact with, but if you’re interested in me as a person, then it’s fair that you accept that I am a person of faith, though I don’t demand that you accept my faith itself. I would hope that you would seek to discover what it’s about, and see if it’s helpful to you, but of course, that’s up to you.

Thanks for reading.

Categories
Computing Linux Technology

Linux

Linux is an operating system, like Windows is an operating system, but they are not the same.

  • Windows is a for-profit product of Microsoft
  • Linux is Free and Open Source Software (FOSS) https://itsfoss.com/what-is-foss which is available for download at no cost. However, people and companies can and do charge for support contracts and other services, for those who feel they need it.
  • Windows is proprietary. The code/programming used to create it is (by and large) a closely guarded secret, and even if it did get out, it’s protected by copyright/patents/other legal guards.
  • Linux is open-source, which means that the code for it can be examined by anyone. This has a number of implications. Linux is known not to contain nefarious phone-home, tattle on the user, security-challenged features, because anyone can take it apart line-by-line and determine exactly what each line of code does.
  • Windows is known to “phone home” and report on what you’re doing, etc.
  • Windows, starting with Windows 10, forces users to accept all updates from Microsoft, even if it breaks things.
  • Linux leaves updates and version upgrades to the user, though performing them is very easy.
  • Windows requires an ever-increasing amount of hardware horsepower to run.
  • Linux makes excellent use of high-powered CPUs, memory, and other components, but also runs well on lower-powered equipment. It can often breath new life into older PCs and laptops that would otherwise hit the scrap heap.

Stay tuned for future posts on Linux and other FOSS technology.

Categories
Culture Humor?

Happiness

Felicitas est parvus canis calidus.

(“Happiness is a warm puppy.”)

–C. Schultz

Categories
Culture Humor?

2020: One star. Would not recommend

I though briefly about boycotting the time change this fall, at the end of daylight saving time. Getting an extra hour of 2020 is like getting a bonus track on a Yoko Ono CD.

No offense.